/* ==========================================================================
   Landing page « Optimisation de page SEO et GEO » (/pages/optimisation)
   ========================================================================== */

.optim {
  --optim-primary: #337ab7;      /* = btn-primary de Bootstrap 3 */
  --optim-primary-dark: #286090; /* = hover btn-primary */
  --optim-ink: #1a2233;
  --optim-muted: #667085;
  --optim-border: #e4e7ec;
  --optim-bg-soft: #f7f8fa;
  --optim-radius: 12px;

  color: var(--optim-ink);
  font-size: 16px;
  line-height: 1.55;
}

.optim__wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 0 60px;
}

.optim section,
.optim .optim-formbox,
.optim .optim-hero {
  margin-top: 40px;
}

/* --- Bloc 1 : accroche --------------------------------------------------- */
.optim-hero {
  text-align: center;
  margin-top: 24px;
}
.optim-badge {
  display: inline-block;
  background: #fbe8c0;
  color: #8a6d1f;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.optim-hero__title {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--optim-ink);
}
.optim-hero__subtitle {
  font-size: 18px;
  color: var(--optim-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* --- Formulaire ---------------------------------------------------------- */
.optim-formbox {
  border: 1px solid var(--optim-primary);
  background: #fff;
  border-radius: var(--optim-radius);
  padding: 26px 26px 22px;
  box-shadow: 0 6px 22px rgba(51, 122, 183, 0.10);
}
.optim-formbox--bas {
  margin-top: 44px;
}
.optim-form__accroche {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 18px;
}
.optim-form__accroche-sec {
  display: inline-block;
  font-size: 15px;
  font-weight: 400;
  color: var(--optim-muted);
  margin-top: 2px;
}
.optim-form__row { display: block; margin: 0; }
.optim-form__email {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  font-size: 16px;
  border: 1px solid #cfd4dc;
  border-radius: 8px;
  color: var(--optim-ink);
}
.optim-form__email:focus {
  outline: none;
  border-color: var(--optim-primary);
  box-shadow: 0 0 0 3px rgba(51, 122, 183, 0.15);
}
/* Le bouton est stylé par Bootstrap (btn btn-primary btn-lg btn-block) ;
   on ajoute juste l'espacement avec le champ email. */
.optim-form__submit { margin-top: 12px; }
.optim-form__reassurance {
  text-align: center;
  color: var(--optim-muted);
  font-size: 14px;
  margin: 14px 0 0;
}
.optim-form__login {
  text-align: center;
  font-size: 14px;
  margin: 6px 0 0;
}
.optim-form__error {
  background: #fdecec;
  border: 1px solid #f5c2c2;
  color: #b42318;
  font-size: 14px;
  padding: 9px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}
.optim-form__confirm {
  text-align: center;
  font-size: 17px;
  color: #2e7d46;
  font-weight: 600;
  padding: 8px 4px;
}

/* Honeypot : hors écran, invisible pour les humains (mais pas display:none,
   pour rester atteignable par certains bots). */
.optim-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Sections génériques ------------------------------------------------- */
.optim-section__title {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 4px;
}
.optim-section__subtitle {
  color: var(--optim-muted);
  font-size: 16px;
  margin: 0 0 24px;
}

/* --- Bloc 3 : cartes bénéfices ------------------------------------------ */
.optim-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.optim-card {
  border: 1px solid var(--optim-border);
  border-radius: var(--optim-radius);
  background: #fff;
  padding: 22px;
}
.optim-card__icon {
  font-size: 22px;
  color: var(--optim-primary);
  margin-bottom: 12px;
  display: inline-block;
}
.optim-card__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}
.optim-card__text {
  color: var(--optim-muted);
  font-size: 15px;
  margin: 0;
}

/* --- Bloc 4 : cadeau ----------------------------------------------------- */
.optim-gift {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #e3f5e8;
  border: 1px solid #b9e3c4;
  border-radius: var(--optim-radius);
  padding: 22px 24px;
}
.optim-gift__icon {
  font-size: 30px;
  color: #2e7d46;
  flex: 0 0 auto;
}
.optim-gift__title {
  font-size: 20px;
  font-weight: 800;
  color: #1f6b38;
  margin: 0 0 4px;
}
.optim-gift__text {
  color: #2f6b45;
  margin: 0;
  font-size: 15px;
}

/* --- Bloc 5 : réassurance ------------------------------------------------ */
.optim-trust {
  text-align: center;
  border: 1px solid var(--optim-border);
  border-radius: var(--optim-radius);
  background: var(--optim-bg-soft);
  padding: 26px 24px;
}
.optim-trust__main {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 6px;
}
.optim-trust__sec {
  color: var(--optim-muted);
  font-size: 15px;
  margin: 0 0 22px;
}
.optim-trust__logos-intro {
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 12px;
  font-weight: 600;
  color: var(--optim-muted);
  margin: 0 0 16px;
}
.optim-logos__row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 18px;
}
.optim-logos__row:last-child { margin-bottom: 0; }
.optim-logos__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 150px;
}
.optim-logos__item img {
  max-height: 48px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .8;
  transition: filter .2s ease, opacity .2s ease;
}
.optim-logos__item img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* --- Bloc 6 : étapes ----------------------------------------------------- */
.optim-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.optim-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
}
.optim-step__num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e7effe;
  color: var(--optim-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.optim-step__text { margin: 4px 0 0; }
.optim-step__detail { color: var(--optim-muted); }

/* --- Bloc 7 : CTA démo secondaire --------------------------------------- */
.optim-demo {
  text-align: center;
  border: 1px dashed #cfd4dc;
  border-radius: var(--optim-radius);
  padding: 26px 24px;
}
.optim-demo__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
}
.optim-demo__text {
  color: var(--optim-muted);
  margin: 0 0 18px;
}
/* Le bouton « Demander une démo » est un bouton Bootstrap secondaire
   (btn btn-default btn-lg), en retrait par rapport au CTA principal. */

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 600px) {
  .optim-hero__title { font-size: 27px; }
  .optim-hero__subtitle { font-size: 16px; }
  .optim-cards { grid-template-columns: 1fr; }
  .optim-section__title { font-size: 22px; }

  /* Logos : 2 par ligne sur mobile, réorganisation propre. */
  .optim-logos__row {
    flex-wrap: wrap;
    gap: 24px 30px;
  }
  .optim-logos__item {
    width: 42%;
    height: 40px;
  }
  .optim-logos__item img { max-height: 40px; }
}
