/* Styles spécifiques homepage */

/* --- Hero : responsivité complète --- */
/* Mobile / tablet (< 1100px) : hauteur auto (iPad Pro 1024px inclus) */
.section-hero {
  box-sizing: border-box;
  padding: var(--space-3xl) 0 var(--space-2xl);
  background-color: var(--neutral-900);
  color: var(--neutral-0);
  display: flex;
  align-items: center;
  min-height: auto;
  height: auto;
  overflow: clip;
}

.section-hero .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  width: 100%;
}

/* Photo en dessous : centrer le texte (mobile + tablet) */
@media (max-width: 1099px) {
  .section-hero__content {
    text-align: center;
  }

  .section-hero__ctas {
    justify-content: center;
  }
}

.section-hero__title {
  margin-bottom: var(--space-lg);
  color: var(--neutral-0);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  line-height: 1.15;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.section-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--neutral-300);
  margin-bottom: var(--space-2xl);
  max-width: none;
}

.section-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

.section-hero__img-wrap {
  width: 100%;
  max-width: var(--content-img-landscape-w);
  margin-inline: auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-sizing: border-box;
}

.section-hero__img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* Tablet (iPad) : titres et sous-titres plus grands */
@media (min-width: 481px) and (max-width: 1024px) {
  .section-hero__title {
    font-size: clamp(3rem, 10vw, var(--text-6xl));
  }
}

/* Mobile : titre hero bien plus grand que le sous-titre */
@media (max-width: 480px) {
  .section-hero__title {
    font-size: clamp(var(--text-3xl), 10vw, var(--text-5xl));
  }
}

/* Mobile : espacement réduit */
@media (max-width: 767px) {
  .section-hero {
    padding: var(--space-2xl) 0 var(--space-2xl);
  }

  .section-hero__subtitle {
    margin-bottom: var(--space-xl);
  }

  .section-hero__ctas {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
  }

  .section-hero__ctas .btn {
    justify-content: center;
  }

  .section-hero__img-wrap {
    max-height: min(75vh, 380px);
  }

  .section-hero__img-wrap img {
    width: 100%;
    height: auto;
    max-height: min(75vh, 380px);
    object-fit: cover;
    object-position: center top;
  }
}

/* Tablet (dont iPad Pro 1024px) : espacement confortable */
@media (min-width: 768px) and (max-width: 1099px) {
  .section-hero {
    padding: var(--space-4xl) 0 var(--space-3xl);
  }

  .section-hero__img-wrap {
    max-width: 28rem;
  }
}

/* Desktop (≥ 1100px) : mise en page côte à côte + hauteur fixe */
@media (min-width: 1100px) {
  .section-hero {
    min-height: var(--hero-min-height);
    height: var(--hero-min-height);
    padding: var(--space-4xl) 0 var(--space-3xl);
  }

  .section-hero .container {
    flex-direction: row;
    align-items: stretch;
    gap: var(--space-4xl);
    transform: translateY(-1rem);
  }

  /* Même répartition et centrage vertical que Manifeste / Méthode / Offres */
  .section-hero__content {
    flex: 0 0 55%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Colonne image flexible : elle rétrécit quand 55%+45%+gap dépasse 100% (ex. Nest Hub Max), l’image ne sera pas coupée */
  .section-hero__visual {
    flex: 1 1 45%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Cadre carré, image centrée */
  .section-hero__img-wrap {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
  }

  .section-hero__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .section-hero__ctas {
    gap: var(--space-xl);
  }
}

/* Grand écran : image plafonnée pour éviter déformation et trop d’espace vide */
@media (min-width: 1400px) {
  .section-hero__img-wrap {
    max-width: min(var(--content-img-landscape-w), 72vh);
  }
}

/* Transition nette entre hero et section suivante (évite que l’image empiète visuellement) */
.section-hero + .section {
  padding-top: var(--space-3xl);
}

@media (min-width: 768px) {
  .section-hero + .section {
    padding-top: calc(var(--space-section) / 2);
  }
}

.section-hero .btn--ghost {
  text-decoration: none;
  color: var(--neutral-300);
  font-weight: 600;
  border: 1px solid var(--neutral-500);
}

.section-hero .btn--ghost:hover {
  color: var(--neutral-0);
  border-color: var(--neutral-0);
}

.section-hero .btn--ghost .btn__arrow {
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-out);
}

.section-hero .btn--ghost:hover .btn__arrow {
  transform: translateX(4px);
}

/* Section Constat — header et grille responsive */
.section-constat .section__header {
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .section-constat .section__header {
    margin-bottom: var(--space-3xl);
  }
}

/* Section Constat — renvoi vers Méthode */
.constat-renvoi {
  margin-top: var(--space-sm);
}

.constat-renvoi a {
  display: inline-block;
  margin-top: var(--space-md);
  color: var(--accent-warm);
  font-weight: 600;
  text-decoration: none;
}

.constat-renvoi a:hover {
  text-decoration: underline;
  color: var(--accent-warm-hover);
}

/* Section Constat */
.section-constat .grid--4 {
  margin-bottom: 0;
}

/* Bandeau stats sous les stat cards */
.constat-bandeau {
  margin-top: var(--space-2xl);
  padding: var(--space-lg) var(--space-xl);
  background: var(--accent-warm-12);
  border-radius: var(--radius-lg);
  border-left: 6px solid var(--accent-warm);
  box-shadow: 0 2px 8px var(--accent-warm-08);
}

.constat-bandeau p {
  margin: 0;
  text-align: left;
  font-size: var(--text-sm);
  color: var(--neutral-700);
  max-width: none;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.constat-bandeau__icon {
  flex-shrink: 0;
  color: var(--accent-warm);
  margin-top: 2px;
}

/* Saut de ligne pour 2 lignes sur mobile (masqué sur desktop) */
.constat-bandeau__br {
  display: none;
}

@media (max-width: 767px) {
  .constat-bandeau__br {
    display: block;
  }
}

/* Constat — layout 60% texte / 40% image */
.constat-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  min-width: 0;
}

@media (min-width: 768px) {
  .constat-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-3xl);
    margin-top: var(--space-2xl);
  }

  .constat-layout__text {
    flex: 1;
    min-width: 0;
  }

  .constat-layout__img {
    flex: 0 0 40%;
    min-width: 0;
  }
}

.constat-img-wrap {
  width: 100%;
  max-width: var(--content-img-landscape-w);
  margin-inline: auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--neutral-50);
  box-shadow: var(--shadow-md);
}

.constat-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.constat-layout__title {
  margin: 0 0 var(--space-md);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--neutral-900);
}

.constat-intro {
  margin: 0;
  max-width: none;
}

.constat-layout__text {
  text-align: left;
}

.constat-citation {
  margin: var(--space-xl) 0 0;
  padding-left: var(--space-xl);
  border-left: 4px solid var(--accent-warm);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--neutral-700);
  line-height: var(--leading-normal);
}

.constat-citation p {
  margin: 0;
}

.constat-cta-wrapper {
  margin-top: var(--space-2xl);
  margin-left: 0;
  padding-left: 0;
  text-align: left;
  max-width: none;
}

.constat-cta-link {
  display: inline-block;
  text-decoration: none;
  color: var(--accent-warm);
  font-weight: 600;
}

.constat-cta-link:hover {
  color: var(--accent-warm-hover);
}

/* Section Solution — cards supports */
.section-solution__supports-title {
  display: block;
  margin: var(--space-xl) auto;
  padding: 0;
  width: 100%;
  max-width: 100%;
  text-align: center;
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.3;
  color: var(--neutral-700);
  box-sizing: border-box;
}

.section-solution__supports-title--steps {
  margin-top: var(--space-4xl);
  margin-bottom: var(--space-sm);
}

.grid--solution {
  align-items: stretch;
}

.card--support {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card--support__emoji {
  display: flex;
  justify-content: center;
  line-height: 1;
  margin-bottom: var(--space-md);
}

/* Les 3 cartes : même taille de carré (réduit), CoQuest = même taille que Kickstart et QuestLab */
.card--support__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-lg);
  width: 150px;
  height: 150px;
  margin-inline: auto;
  background-color: var(--neutral-0);
  padding: var(--space-sm);
  border-radius: var(--radius-xl);
  border: 1px solid var(--neutral-200);
}

.card--support__logo img {
  max-width: 130px;
  max-height: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Section Solution — stepper 5 étapes (même rendu que TPE/PME) */
.section-solution .offre-stepper {
  list-style: none;
  padding: var(--space-md) 0 var(--space-lg);
  margin: 0 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  position: relative;
}

.section-solution .offre-stepper__step {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.section-solution .offre-stepper__number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--neutral-0);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-solution .offre-stepper__label {
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--neutral-900);
}

@media (min-width: 768px) {
  .section-solution .offre-stepper {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    position: relative;
  }

  .section-solution .offre-stepper__step {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-lg);
    position: relative;
    padding-inline: var(--space-md);
  }

  .section-solution .offre-stepper__step::after {
    content: '';
    position: absolute;
    top: 22px;
    left: calc(50% + 28px);
    right: calc(-50% + 28px);
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent-warm));
    border-radius: 2px;
  }

  .section-solution .offre-stepper__step:last-child::after {
    display: none;
  }

  .section-solution .offre-stepper__label {
    font-size: var(--text-base);
  }
}

.section-solution .offre-steps-cta-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: var(--space-md) 0;
}

.section-solution .offre-steps-cta {
  margin: 0;
  text-align: center;
}

.section-solution .offre-steps-cta a {
  display: inline-block;
  font-weight: 600;
  color: var(--accent-warm);
}

.section-solution .offre-steps-cta a:hover {
  color: var(--accent-warm-hover);
  text-decoration: underline;
}

/* Section Solution — timeline 5 étapes (legacy, conservé si réutilisation) */
.timeline--horizontal {
  padding-left: 0;
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

.timeline--horizontal::before {
  display: none;
}

.timeline--horizontal .timeline__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--neutral-0);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.timeline--horizontal .timeline__item::before {
  display: none;
}

.timeline--horizontal .timeline__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  background: var(--color-step);
  color: var(--neutral-0);
  border-radius: 50%;
  font-size: var(--text-sm);
}

.timeline--horizontal .timeline__label {
  min-width: 0;
  overflow-wrap: break-word;
  font-size: var(--text-sm);
}

/* Timeline steps — mobile : colonne verticale, desktop : ligne horizontale */
.timeline--steps {
  position: relative;
  flex-direction: column;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.timeline--steps::before {
  display: none;
}

.timeline--steps .timeline__item {
  position: relative;
  z-index: 1;
  min-width: 0;
}

@media (min-width: 768px) {
  .timeline--steps {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
  }
}

@media (min-width: 1100px) {
  .timeline--steps {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: var(--space-md);
  }

  .timeline--steps::before {
    display: block;
    content: '';
    position: absolute;
    top: calc(var(--space-2xl) + 1rem);
    left: 0;
    right: 0;
    height: 2px;
    background: var(--neutral-200);
    z-index: 0;
  }

  .timeline--steps .timeline__item {
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-md);
  }

  .timeline--steps .timeline__step {
    order: -1;
  }

  .timeline--steps .timeline__label {
    text-align: center;
    font-size: var(--text-sm);
  }
}

/* CCC en bloc inline sous "1 méthode. 3 supports. 5 étapes." */
.section-ccc--inline {
  margin-top: var(--space-2xl);
  width: 100%;
}

.section-ccc--inline .section-solution__supports-title {
  text-align: center;
}

.section-ccc--inline .grid {
  margin-bottom: 0;
}

.section-ccc__quote {
  margin: var(--space-2xl) auto var(--space-3xl);
  padding-left: var(--space-xl);
  border-left: 4px solid var(--accent-warm);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  max-width: var(--max-width-narrow);
  color: var(--neutral-700);
}

/* Section Cibles — cards cliquables */
.section-cibles .grid--cibles {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.section-cibles .grid--cibles .card--cible {
  height: 100%;
}

@media (min-width: 768px) {
  .section-cibles .grid--cibles {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }
}

@media (min-width: 1100px) {
  .section-cibles .grid--cibles {
    grid-template-columns: repeat(4, minmax(200px, 1fr));
  }
}

.card--link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card--link:hover {
  border-color: var(--primary);
}

.card--cible {
  text-align: center;
}

.card--cible p {
  font-size: var(--text-sm);
  margin: var(--space-xs) 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card--cible__emoji {
  display: flex;
  justify-content: center;
  line-height: 1;
  margin-bottom: var(--space-md);
}

.card--cible .btn--ghost {
  margin-top: auto;
  padding-top: var(--space-md);
}

.card--cible .btn--cible-cta {
  text-decoration: none;
  color: var(--accent-warm);
  font-weight: 600;
  flex-shrink: 0;
  align-self: center;
}

@media (min-width: 768px) {
  .card--cible .btn--cible-cta {
    white-space: nowrap;
  }
}

.card--cible .btn--cible-cta:hover {
  color: var(--accent-warm-hover);
}

.btn--cible-cta .btn__arrow {
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn--cible-cta:hover .btn__arrow {
  transform: translateX(4px);
}

/* Section Témoignages */
.section-testimonials .grid--testimonials {
  align-items: stretch;
}

/* Mobile : afficher 3 témoignages, bouton "Voir plus" pour le reste */
.testimonials-toggle-wrap {
  text-align: center;
  margin-top: var(--space-lg);
  margin-bottom: 0;
}

/* Contraste WCAG AA : couleur assombrie sur fond clair */
.section-testimonials .testimonials-toggle {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
}

.section-testimonials .testimonials-toggle:hover {
  color: var(--accent-warm-hover);
}

.testimonials-toggle-wrap .btn__arrow {
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-out);
}

.testimonials-toggle:hover .btn__arrow {
  transform: translateX(4px);
}

@media (max-width: 767px) {
  .section-testimonials .grid--testimonials > *:nth-child(n+4) {
    display: none;
  }

  .section-testimonials--expanded .grid--testimonials > *:nth-child(n+4) {
    display: flex;
  }

  .section-testimonials--expanded .testimonials-toggle-wrap {
    display: none;
  }
}

@media (min-width: 768px) {
  .testimonials-toggle-wrap {
    display: none;
  }
}

.card--testimonial__deco {
  position: absolute;
  top: var(--space-md);
  left: var(--space-xl);
  font-size: var(--text-4xl);
  color: var(--neutral-200);
  z-index: -1;
  line-height: 1;
  font-family: var(--font-display);
}

@media (min-width: 768px) {
  .card--testimonial__deco {
    font-size: var(--text-6xl);
  }
}

/* Section Comparatif */

/* Mobile : une colonne, cartes empilées (pas de scroll horizontal) */
.comparison-cards {
  display: none;
}

.comparison-card {
  background-color: var(--neutral-0);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-md);
}

.comparison-card--highlight {
  border: 2px solid var(--primary);
  background-color: var(--color-highlight-bg);
}

.comparison-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--neutral-900);
}

.comparison-card--highlight .comparison-card__title {
  color: var(--primary);
}

.comparison-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comparison-card__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--neutral-200);
  font-size: var(--text-sm);
}

.comparison-card__list li:last-child {
  border-bottom: none;
}

.comparison-card__label {
  color: var(--neutral-700);
  flex-shrink: 1;
  min-width: 0;
}

/* Accordéon comparatif mobile */
.comparison-cards-accordion {
  margin-top: var(--space-md);
}

.comparison-cards-accordion summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
  color: var(--accent-warm);
  cursor: pointer;
  list-style: none;
  background: var(--neutral-0);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--duration-fast), color var(--duration-fast);
}

.comparison-cards-accordion summary:hover {
  background: var(--neutral-100);
  color: var(--accent-warm-hover);
}

.comparison-cards-accordion summary::-webkit-details-marker {
  display: none;
}

.comparison-cards-accordion summary::after {
  content: '+';
  font-size: var(--text-xl);
}

.comparison-cards-accordion[open] summary::after {
  content: '−';
}

.comparison-cards-accordion__content {
  margin-top: var(--space-md);
}

/* Desktop : tableau */
.comparison-table-wrapper {
  position: relative;
}

@media (max-width: 767px) {
  .comparison-cards {
    display: block;
  }

  .comparison-table-wrapper {
    display: none;
  }
}

@media (min-width: 768px) {
  .comparison-cards {
    display: none;
  }

  .comparison-table-wrapper {
    display: block;
  }
}

.section-comparatif .comparison-table__row > span:nth-child(7) {
  background-color: var(--color-step-06);
}

.section-comparatif .comparison-table__row--header span:nth-child(7) {
  color: var(--primary);
  font-weight: 700;
}

.section-comparatif .comparison-table__row--highlight span:nth-child(7) {
  color: var(--accent-warm);
  font-weight: 700;
}

.section-comparatif .comparison-table__row--highlight {
  border-color: var(--primary);
}

.section-comparatif .comparison-table__cell--check {
  font-size: var(--text-xl);
}

.section-comparatif .comparison-table__cell--cross {
  font-size: calc(1em + 2px);
}

/* Section FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
