/* ==========================================================================
   FRACTION EJECTION — page styles
   ========================================================================== */

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 80px;
  padding-bottom: 200px; /* TEMPORAIRE — à retirer une fois la mise en page terminée */
}

/* --- Back link --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  color: var(--gun-powder-950);
}

/* --- Hero title --- */
.hero-title {
  margin-top: 40px;
  margin-bottom: 45px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 40px;
  color: var(--gun-powder-950);
  text-align: center;
}

.hero-title em {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  color: var(--grandis-400);
}

.hero-title em.gun-powder {
  color: var(--gun-powder-500);
}

/* --- Meta row (Entreprise / Timeline / Équipe) --- */
.hero-meta {
  display: flex;
  justify-content: center;
  gap: 90px;
  margin-bottom: 45px;
}

.hero-meta__item {
  border-left: 1px solid var(--grandis-200);
  padding-left: 18px;
}

.hero-meta__label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--gun-powder-700);
}

.hero-meta__value {
  margin-top: 4px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  color: var(--gun-powder-950);
}

/* --- Hero image --- */
.hero-image img {
  width: 100%;
}

/* --- Context section --- */
.context {
  margin-top: 150px;
}

.context__eyebrow {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--tawny-port-600);
  text-transform: uppercase;
}

.context__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 32px;
  color: var(--gun-powder-950);
}

.context__title em {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  color: var(--tawny-port-600);
}

.context__grid {
  display: grid;
  gap: 24px;
  margin-top: 50px;
}

.context__grid--3 {
  grid-template-columns: 1fr 2fr 2fr;
}

.context__grid--2 {
  grid-template-columns: 1fr 1fr;
  margin-top: 24px;
}

.context__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Feature card (icon + title + bullet list) --- */
.feature-card {
  background-color: var(--tawny-port-100);
  padding: 28px;
  border-radius: 20px;
}

.feature-card__icon {
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
}

.feature-card__title {
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 22px;
  color: var(--tawny-port-950);
}

.feature-card__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-card__bullet {
  display: flex;
  padding-top: 3px;
}

.feature-card__bullet .material-symbols-rounded {
  font-size: 26px;
  color: var(--tawny-port-900);
}

.feature-card__list p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--tawny-port-900);
}

/* --- Definition section --- */
.definition {
  margin-top: 110px;
}

.definition__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 32px;
  color: var(--gun-powder-950);
  text-align: center;
}

.definition__title em {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  color: var(--gun-powder-500);
}

.definition__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.definition__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  background-color: var(--gun-powder-100);
  border-radius: 18px;
}

.definition__frame img {
  width: 260px;
  height: 200px;
  object-fit: contain;
}

.definition__item-title {
  margin-top: 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 22px;
  color: var(--gun-powder-950);
}

.definition__item-text {
  margin-top: 10px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  color: var(--gun-powder-900);
}

/* --- Objective section --- */
.objective {
  margin-top: 130px;
}

.objective__eyebrow {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--grandis-400);
  text-transform: uppercase;
}

.objective__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 32px;
  color: var(--gun-powder-950);
}

.objective__title em {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  color: var(--grandis-400);
}

.objective__grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 24px;
  margin-top: 50px;
}

.objective__block {
  margin-bottom: 30px;
}

.objective__block:last-child {
  margin-bottom: 0;
}

.objective__icon {
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
}

.objective__block-title {
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 22px;
  color: var(--gun-powder-950);
}

.objective__block-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--gun-powder-900);
}

.objective__steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 20px;
  list-style: decimal;
  list-style-position: outside;
}

.objective__steps li {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--gun-powder-900);
  padding-left: 4px;
}

.objective__media img {
  width: 100%;
}

.objective__note {
  margin-top: 40px;
  background-color: var(--grandis-50);
  border-radius: 18px;
  padding: 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.objective__note-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 22px;
  color: var(--gun-powder-950);
}

.objective__note-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  color: var(--gun-powder-900);
}

/* --- Methodology section --- */
.methodology {
  margin-top: 130px;
}

.methodology__eyebrow {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--tawny-port-600);
  text-transform: uppercase;
  text-align: center;
}

.methodology__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 32px;
  color: var(--gun-powder-950);
  text-align: center;
}

.methodology__title em {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  color: var(--tawny-port-600);
}

.methodology__panel {
  margin-top: 50px;
  background-color: var(--tawny-port-100);
  border-radius: 20px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

/* --- Accordion list --- */
.methodology__list {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
}

.accordion-item {
  border-bottom: 1px solid var(--gun-powder-100);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-item__header {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  text-align: left;
  cursor: pointer;
}

.accordion-item:first-child .accordion-item__header {
  padding-top: 0;
}

.accordion-item:last-child .accordion-item__header {
  padding-bottom: 0;
}

.accordion-item__icon-frame {
  flex-shrink: 0;
  padding-top: 5px;
}

.accordion-item__texts {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.accordion-item__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--gun-powder-950);
}

.accordion-item__body-wrap {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.35s ease;
}

.accordion-item.is-expanded .accordion-item__body-wrap {
  grid-template-rows: 1fr;
}

.accordion-item__body {
  min-height: 0;
  padding-top: 12px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--gun-powder-900);
}

.accordion-item__chevron {
  flex-shrink: 0;
  margin-left: 10px;
}

/* --- Media (right column, crossfade) --- */
.methodology__media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.methodology__media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.methodology__media-img.is-active {
  position: relative;
  opacity: 1;
}

/* --- Results section --- */
.results {
  margin-top: 130px;
}

.results__eyebrow {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--gun-powder-400);
  text-transform: uppercase;
}

.results__header {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  align-items: start;
}

.results__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 32px;
  color: var(--gun-powder-950);
}

.results__title em {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  color: var(--gun-powder-500);
}

.results__intro {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--gun-powder-900);
}

/* --- Carousel (déborde jusqu'au bord droit de l'écran) --- */
.carousel {
  margin-top: 40px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(0px, calc(50vw - 540px));
  padding-right: max(0px, calc(50vw - 540px));
  display: flex;
  gap: 14px;
  overflow-x: auto;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  scrollbar-width: none;
}

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

.carousel.is-dragging {
  cursor: grabbing;
}

.slide {
  flex: 0 0 360px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.slide img {
  width: 100%;
  height: auto;
  pointer-events: none;
}

.slide__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slide__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--gun-powder-950);
}

.slide__body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gun-powder-900);
}
/* --- CTA (closing) section --- */
.cta {
  margin-top: 120px;
}

.cta__grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  align-items: center;
  background-color: var(--gun-powder-100);
  border-radius: 24px;
  padding: 80px 90px;
}

.cta__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 32px;
  color: var(--gun-powder-950);
}

.cta__text {
  margin-top: 14px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  color: var(--gun-powder-900);
  line-height: 160%;
}

.cta__media img {
  width: 100%;
}

/* --- CTA button (identique à celui de l'accueil) --- */
.btn {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  border: 1px solid var(--gun-powder-100);
  border-radius: 12px;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  color: var(--gun-powder-900);
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: var(--gun-powder-50);
}