/* BGFIEcout’ — page d’accueil (échelle adaptée écran desktop 100 %) */

:root {
  --navy: #0f2f5e;
  --navy-deep: #0b2953;
  --navy-mid: #133a6d;
  --navy-btn: #103a72;
  --navy-btn-hover: #16467f;
  --navy-btn-active: #0a2a55;
  --gold: #b8860b;
  --gold-btn: #bf9000;
  --gold-btn-hover: #a87e02;
  --gold-btn-active: #916d00;
  --text: #1b2735;
  --muted: #33465e;
  --muted-2: #4d5f77;
  --line: #e2e8f0;
  --white: #ffffff;
  --font: "Montserrat", "Segoe UI", sans-serif;
  --content: 980px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

::selection {
  background: #d7e5f6;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
}

/* Header */

.header {
  background: var(--white);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.header__logo img {
  width: 168px;
}

.header__certs {
  height: 36px;
  width: auto;
}

/* Main */

.main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* Hero — photo full-bleed sur toute la bande */

.hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  min-height: 280px;
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  overflow: hidden;
}

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

.hero__photo-fade {
  position: absolute;
  inset: 0;
  /* léger voile pour lisibilité du texte, sans masquer la photo */
  background: linear-gradient(
    180deg,
    rgba(10, 34, 71, 0.35) 0%,
    rgba(10, 34, 71, 0.45) 55%,
    rgba(10, 34, 71, 0.55) 100%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  padding: 40px 28px 88px;
}

.hero__inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  animation: riseIn 0.45s ease-out both;
}

.hero__kicker {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: #eaf1f9;
  letter-spacing: 0.005em;
}

.hero__title {
  margin: 2px 0 0;
  font-size: 42px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.018em;
  line-height: 1.08;
}

.hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 16px 0;
  border-radius: 50%;
  background: #16467f;
}

.hero__icon svg {
  width: 50%;
  height: 50%;
}

.hero__lead {
  margin: 0;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.55;
  color: #eaf1f9;
  text-wrap: pretty;
}

/* Action cards */

.actions-wrap {
  position: relative;
  z-index: 5;
  margin-top: -56px;
  padding: 0 28px;
}

.actions {
  max-width: var(--content);
  margin: 0 auto;
  background: var(--white);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 16px 40px rgba(10, 34, 71, 0.14);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 22px 24px;
  border-radius: 10px;
}

.card--rate {
  background: #eef4fb;
}

.card--claim {
  background: #fdf8ee;
}

.card__icon {
  width: 52px;
  height: auto;
}

.card__title {
  margin: 14px 0 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card__title--navy {
  font-size: 24px;
  color: var(--navy);
}

.card__title--gold {
  font-size: 22px;
  color: var(--gold);
}

.card__text {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  max-width: 280px;
}

.btn {
  margin-top: 18px;
  width: 100%;
  max-width: 320px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  border-radius: 5px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--white);
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}

.btn:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--navy {
  background: var(--navy-btn);
}

.btn--navy:hover {
  background: var(--navy-btn-hover);
  box-shadow: 0 8px 18px rgba(16, 58, 114, 0.26);
}

.btn--navy:active {
  background: var(--navy-btn-active);
}

.btn--gold {
  background: var(--gold-btn);
}

.btn--gold:hover {
  background: var(--gold-btn-hover);
  box-shadow: 0 8px 18px rgba(184, 134, 11, 0.28);
}

.btn--gold:active {
  background: var(--gold-btn-active);
}

/* Commitments */

.commitments {
  padding: 36px 28px 32px;
}

.commitments__title {
  margin: 0 0 24px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-btn);
}

.commitments__grid {
  max-width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 8px;
}

.commitment {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 14px;
}

.commitment + .commitment {
  border-left: 1px solid transparent;
}

.commitment svg {
  width: 32px;
  height: auto;
  flex-shrink: 0;
}

.commitment h3 {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-btn);
}

.commitment p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted-2);
}

/* Footer */

.footer {
  background: #0f2c58;
  color: #cfdcec;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
}

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

.footer__secure svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

/* Responsive */

@media (min-width: 900px) {
  .commitment + .commitment {
    border-left-color: var(--line);
  }
}

@media (max-width: 759px) {
  .header {
    padding: 12px 16px;
  }

  .header__logo img {
    width: 148px;
  }

  .header__certs {
    height: 30px;
  }

  .hero {
    min-height: 240px;
  }

  .hero__photo img {
    object-position: 70% center;
  }

  .hero__content {
    padding: 32px 16px 72px;
  }

  .hero__title {
    font-size: 34px;
  }

  .actions-wrap {
    margin-top: -44px;
    padding: 0 16px;
  }

  .commitments {
    padding: 28px 16px 24px;
  }

  .commitment + .commitment {
    border-left-color: transparent;
  }

  .footer {
    padding: 12px 16px;
  }
}
