:root {
  --blue: #087fff;
  --navy: #061c3d;
  --lavender: #7c92ed;
  --muted: #64738a;
  --line: #dfe7f2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--navy);
  background: #f5f8fc;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid #d79a24;
  outline-offset: 5px;
}

.container {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}

.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 23px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.wordmark {
  color: var(--lavender);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 4px;
}

.brand-subtitle {
  margin: 7px 0 8px 6px;
  font-size: 11px;
  letter-spacing: 6px;
}

.suits {
  color: var(--lavender);
  font-size: 13px;
  letter-spacing: 3px;
}

.suits b {
  color: #18224e;
}

.header-note {
  color: var(--muted);
  font-size: 13px;
}

.welcome {
  padding: 46px 24px 40px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: #5978bd;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.3px;
}

h1 {
  margin: 0 0 25px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: -2px;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 165px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  transition: background-color 0.2s;
}

.button-outline {
  border-color: var(--blue);
  background: #fff;
  color: #0063cf;
}

.button-outline:hover {
  background: #e9f2ff;
}

.button-primary {
  background: var(--blue);
  color: #fff;
}

.button-primary:hover {
  background: #006bdc;
}

.hero-image {
  overflow: hidden;
  border-radius: 20px;
  background: #12243c;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.45;
  object-fit: cover;
  object-position: center 57%;
}

.content {
  padding: 18px 48px 48px;
  margin: 30px 0 48px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.text-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: start;
  gap: 48px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
}

.text-block p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.final-action {
  padding-top: 32px;
  text-align: center;
}

.final-action .button {
  min-width: 240px;
}

.footer {
  background: #041a38;
  color: #bdcbe1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 25px;
}

.footer p {
  margin: 0;
  font-size: 12px;
}

.age {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #66738e;
  border-radius: 50%;
  font-size: 14px;
}

@media (max-width: 700px) {
  .container {
    width: calc(100% - 32px);
  }

  .header-inner {
    justify-content: center;
    padding-block: 18px;
  }

  .header-note {
    display: none;
  }

  .wordmark {
    font-size: 33px;
  }

  .welcome {
    padding: 32px 0 28px;
  }

  h1 {
    letter-spacing: -1px;
  }

  .actions {
    gap: 10px;
  }

  .actions .button {
    flex: 1;
    min-width: 0;
    max-width: 210px;
    padding: 14px 12px;
    font-size: 15px;
  }

  .hero-image {
    border-radius: 14px;
  }

  .hero-image img {
    aspect-ratio: 1.25;
    object-position: center;
  }

  .content {
    padding: 0 22px 28px;
    margin: 22px 0 30px;
    border-radius: 14px;
  }

  .text-block {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 26px 0;
  }

  h2 {
    font-size: 23px;
  }

  .text-block p {
    font-size: 15px;
  }

  .final-action .button {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}

/* FAQ propre à la page fcert */
.fcert-faq {
  margin-bottom: 48px;
}

.fcert-faq > h2 {
  margin-bottom: 26px;
  font-size: clamp(26px, 4vw, 34px);
}

.fcert-faq-list {
  display: grid;
  gap: 16px;
}

.fcert-faq-item {
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.fcert-faq-item h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.fcert-faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

@media (max-width: 700px) {
  .fcert-faq {
    margin-bottom: 30px;
  }

  .fcert-faq-item {
    padding: 24px 22px;
    border-radius: 14px;
  }

  .fcert-faq-item h3 {
    font-size: 19px;
  }

  .fcert-faq-item p {
    font-size: 15px;
  }
}

/* Bouton principal : dégradé Azur */
.final-action .button-primary {
  background: linear-gradient(115deg, #006bdc 0%, #4155df 52%, #8738ce 100%);
  background-size: 160% 100%;
  box-shadow: 0 8px 22px rgba(76, 68, 207, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: background-position 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.final-action .button-primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 11px 28px rgba(76, 68, 207, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.final-action .button-primary:active {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .final-action .button-primary {
    transition: none;
  }

  .final-action .button-primary:hover {
    transform: none;
  }
}

/* Boutons d’entrée et d’inscription */
.welcome .button {
  background-size: 160% 100%;
  transition: background-position 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.welcome .button-outline,
.welcome .button-outline:hover {
  color: #2545a4;
  border-color: #a4b7fa;
  background-image: linear-gradient(115deg, #eef7ff 0%, #e2eaff 52%, #eadbff 100%);
  box-shadow: 0 6px 18px rgba(65, 85, 223, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.welcome .button-primary,
.welcome .button-primary:hover {
  background-image: linear-gradient(115deg, #006bdc 0%, #4155df 52%, #8738ce 100%);
  box-shadow: 0 8px 22px rgba(76, 68, 207, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.welcome .button:hover {
  background-position: 100% 50%;
  box-shadow: 0 11px 28px rgba(76, 68, 207, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.welcome .button:active {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .welcome .button {
    transition: none;
  }

  .welcome .button:hover {
    transform: none;
  }
}

/* Cartes de présentation Azur */
.content {
  padding: 0;
  border: 0;
  background: transparent;
}

.content .text-block {
  position: relative;
  grid-template-columns: 1fr;
  gap: 18px;
  overflow: hidden;
  padding: 30px 34px;
  margin-bottom: 20px;
  border: 1px solid #d7e2fa;
  border-radius: 20px;
  background: linear-gradient(120deg, #edf4ff 0%, #f8faff 60%, #eee6ff 100%);
  box-shadow: 0 8px 24px rgba(36, 63, 121, 0.07);
}

.content .text-block::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #2487ff, #9960df);
}

.content .text-block:nth-of-type(2) {
  background: linear-gradient(120deg, #f1edff 0%, #faf8ff 60%, #e9efff 100%);
  border-color: #e0d9f8;
}

.content .text-block:nth-of-type(2)::before {
  background: linear-gradient(180deg, #9460e2, #537de6);
}

.content .text-block:nth-of-type(3) {
  background: linear-gradient(120deg, #eaf7fc 0%, #f5fbff 60%, #e8efff 100%);
  border-color: #d2e7f3;
}

.content .text-block:nth-of-type(3)::before {
  background: linear-gradient(180deg, #17a0bb, #416fe8);
}

.content .text-block h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(22px, 2.5vw, 28px);
}

.content .text-block h2 > span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(44, 65, 120, 0.06);
  font-size: 28px;
}

.content .text-block p {
  color: #475b79;
}

.content .final-action {
  padding-top: 8px;
}

@media (max-width: 700px) {
  .content .text-block {
    padding: 24px;
    margin-bottom: 16px;
    border-radius: 16px;
  }

  .content .text-block h2 {
    display: block;
    line-height: 1.35;
  }

  .content .text-block h2 > span {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 14px;
    font-size: 26px;
  }
}

/* FAQ : une palette commune pour toutes les cartes */
.fcert-faq-item {
  position: relative;
  overflow: hidden;
  padding: 28px 32px;
  border: 1px solid #d7e2fa;
  border-radius: 20px;
  background: linear-gradient(120deg, #edf4ff 0%, #f8faff 60%, #eee6ff 100%);
  box-shadow: 0 8px 24px rgba(36, 63, 121, 0.07);
}

.fcert-faq-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #2487ff, #9960df);
}

.fcert-faq-item h3 {
  color: #162c55;
}

.fcert-faq-item p {
  color: #475b79;
}

@media (max-width: 700px) {
  .fcert-faq-item {
    padding: 24px;
    border-radius: 16px;
  }
}
