/* =============================================
   RESET & BASE
============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #123764;
  --blue-light: rgba(18, 55, 101, 0.08);
  --blue-mid: rgba(18, 55, 101, 0.7);
  --blue-border: rgba(18, 55, 101, 0.2);
  --black: #000000;
  --white: #ffffff;
  --grey-bg: #f7f8fc;
  --grey-text: #555e6e;
  --shadow-sm: 0 2px 8px rgba(18, 55, 101, 0.08);
  --shadow-md: 0 6px 24px rgba(18, 55, 101, 0.13);
  --shadow-lg: 0 12px 40px rgba(18, 55, 101, 0.18);
  --radius: 14px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--grey-bg);
  color: #1a1a2e;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* =============================================
   TYPOGRAPHY
============================================= */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--blue);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}
h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
}
h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

p {
  color: var(--grey-text);
}

/* =============================================
   LAYOUT HELPERS
============================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 72px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--grey-text);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   BADGE
============================================= */
.badge {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.badge-green {
  background: #1a7a4a;
}

/* =============================================
   BUTTONS
============================================= */
.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background 0.25s,
    box-shadow 0.25s,
    transform 0.2s;
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.02em;
}

.btn:hover {
  background: #0d2a50;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
}

/* =============================================
   HEADER
============================================= */
.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, #1e4d8c 100%);
  color: var(--white);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.logo img {
  height: 56px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.header-contact {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}

.header-hero {
  padding: 80px 0 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.header-hero .shield-icon {
  width: 68px;
  height: 68px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  backdrop-filter: blur(4px);
}

.header-hero h1 {
  color: var(--white);
  max-width: 700px;
}

.header-hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
  max-width: 560px;
}

/* =============================================
   OFFERS SECTION
============================================= */
#offres {
  background: var(--white);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.card {
  background: var(--white);
  border: 1.5px solid var(--blue-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  position: relative;
}

.card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-lg);
}

.card-featured {
  background: linear-gradient(160deg, var(--blue) 0%, #1b4f96 100%);
  border-color: transparent;
  color: var(--white);
  transform: scale(1.04);
  box-shadow: var(--shadow-lg);
}

.card-featured:hover {
  transform: scale(1.04) translateY(-6px);
  box-shadow: 0 20px 56px rgba(18, 55, 101, 0.3);
}

.card-featured h3,
.card-featured .price,
.card-featured .price-label {
  color: var(--white);
}

.card-featured p,
.card-featured .card-tagline {
  color: rgba(255, 255, 255, 0.8);
}

.card-featured li {
  color: rgba(255, 255, 255, 0.9);
}

.card-featured .check {
  color: #7dd3a8;
}

.card-header {
  margin-bottom: 24px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-featured .card-icon {
  background: rgba(255, 255, 255, 0.15);
}

.recommanded li {
  color: var(--white) !important;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-featured .card-icon svg {
  stroke: var(--white);
}

.price {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}

.price-label {
  font-size: 0.85rem;
  color: var(--grey-text);
  margin-top: 4px;
}

.card-features {
  list-style: none;
  margin: 24px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--grey-text);
}

.check {
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.card-tagline {
  font-size: 0.88rem;
  color: var(--grey-text);
  font-style: italic;
  border-top: 1px solid var(--blue-border);
  padding-top: 16px;
  margin-top: auto;
}

.card-featured .card-tagline {
  border-top-color: rgba(255, 255, 255, 0.2);
}

/* =============================================
   OPTIONS SECTION
============================================= */
#options {
  background: var(--grey-bg);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.option-card {
  background: var(--white);
  border: 1.5px solid var(--blue-border);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.option-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.option-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.option-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.option-name {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 6px;
}

.option-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue);
}

.option-note {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(18, 55, 101, 0.7);
  margin-top: 4px;
  line-height: 1.4;
}

/* =============================================
   SUBSCRIPTIONS SECTION
============================================= */
#abonnements {
  background: var(--white);
}

/* =============================================
   TRUST SECTION
============================================= */
#confiance {
  background: linear-gradient(135deg, var(--blue) 0%, #1b4f96 100%);
  color: var(--white);
  padding: 72px 0;
}

#confiance h2 {
  color: var(--white);
  text-align: center;
  margin-bottom: 40px;
}

.trust-intro {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
  padding: 0 8px;
}

.trust-intro p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.75;
  font-style: italic;
}

.trust-main {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 32px 40px;
  text-align: center;
  margin-bottom: 32px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.trust-main p {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.5;
}

.trust-main svg {
  width: 44px;
  height: 44px;
  stroke: rgba(255, 255, 255, 0.9);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 16px;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.trust-item svg {
  width: 22px;
  height: 22px;
  stroke: rgba(255, 255, 255, 0.85);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.trust-item p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  margin: 0;
}

/* =============================================
   FOOTER
============================================= */
footer {
  background: #0c2340;
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0;
  text-align: center;
}

.footer-logo img {
  height: 48px;
  filter: brightness(0) invert(1) opacity(0.7);
  margin-bottom: 24px;
}

.footer-cta {
  margin-bottom: 28px;
}

.footer-contact {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-mention {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  margin-top: 8px;
}

/* =============================================
   FEATURE DESCRIPTIONS
============================================= */
.feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature-title {
  font-weight: 600;
  color: #2d3748;
}

.card-featured .feature-title {
  color: var(--white);
}

.feature-desc {
  font-size: 0.79rem;
  line-height: 1.35;
  opacity: 0.68;
}

.card-duration {
  font-size: 0.8rem;
  color: var(--grey-text);
  margin-top: 8px;
}

.card-featured .card-duration {
  color: rgba(255, 255, 255, 0.65);
}

.card-deliverable {
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.84rem;
  color: var(--blue);
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
}

.card-featured .card-deliverable {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.deliverable-label {
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
}

/* =============================================
   DIVIDER
============================================= */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

/* =============================================
   PRINT / PDF COMPATIBILITY
============================================= */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body {
    font-size: 13px;
    background: white;
  }

  section {
    padding: 40px 0;
    page-break-inside: avoid;
  }

  .card:hover,
  .option-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }

  header {
    page-break-after: avoid;
  }

  .cards-grid {
    gap: 14px;
  }

  .card-featured {
    transform: scale(1.02);
  }

  .btn {
    box-shadow: none;
  }

  footer {
    page-break-before: avoid;
  }
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .card-featured {
    transform: none;
    order: -1;
  }

  .card-featured:hover {
    transform: translateY(-6px);
  }
}

@media (max-width: 600px) {
  section {
    padding: 52px 0;
  }

  .header-hero {
    padding: 56px 0 64px;
  }

  .trust-main {
    padding: 24px 20px;
  }

  .container {
    padding: 0 16px;
  }
}

/* =============================================
   TABLET PDF (768px range)
============================================= */
@media (min-width: 601px) and (max-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 680px;
  }

  .cards-grid .card:last-child {
    grid-column: 1 / -1;
    max-width: 360px;
    justify-self: center;
    width: 100%;
  }
}
