/* ==========================================================================
   Agesis — feuille de style commune
   Palette alignée sur le logo officiel : navy + turquoise + orange,
   touches vert/rouge du logo réservées aux accents de la bande de marque.
   ========================================================================== */

:root {
  --navy-950: #0b2038;
  --navy-900: #10304f;
  --navy-800: #163f66;
  --navy-700: #1f5280;
  --navy-100: #e7edf4;
  --sage-600: #1f8f88;
  --sage-500: #2fa89f;
  --sage-100: #e2f4f2;
  --gold-500: #ef7f1a;
  --gold-100: #fdead2;
  --brand-green: #6d9e1e;
  --brand-red: #e63f23;
  --ink-900: #1b232c;
  --ink-600: #4c5a68;
  --ink-400: #7c8994;
  --paper: #ffffff;
  --paper-alt: #f6f8fa;
  --line: #e3e8ec;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(11, 32, 56, 0.18);
  --shadow-sm: 0 4px 14px -6px rgba(11, 32, 56, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans Pro", "Segoe UI", Arial, sans-serif;
  color: var(--ink-900);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
  color: var(--navy-950);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.05rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-600); }

a { color: var(--navy-800); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- Bandeau info ---------- */
.top-bar {
  background: var(--navy-950);
  color: #cfe0f0;
  font-size: 0.85rem;
}
.top-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  justify-content: flex-end;
  padding-top: 8px;
  padding-bottom: 8px;
}
.top-bar a { color: #cfe0f0; text-decoration: none; }
.top-bar span { opacity: 0.85; }

/* ---------- Entête / navigation ---------- */
header.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}
.brand-text { line-height: 1.1; }
.brand-text small {
  display: block;
  color: var(--ink-400);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  max-width: 210px;
  line-height: 1.3;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-600);
  font-size: 0.94rem;
  font-weight: 600;
  white-space: nowrap;
}
nav.main-nav a:hover { background: var(--navy-100); color: var(--navy-900); }
nav.main-nav a.active { background: var(--navy-900); color: #fff; }
nav.main-nav a.is-new::after {
  content: "48h";
  margin-left: 6px;
  background: var(--gold-500);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  vertical-align: middle;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--sage-600); color: #fff; }
.btn-primary:hover { background: var(--sage-500); }
.btn-ghost { border-color: var(--navy-900); color: var(--navy-900); background: transparent; }
.btn-ghost:hover { background: var(--navy-100); }
.btn-gold { background: var(--gold-500); color: #fff; }
.btn-gold:hover { background: #d16d0f; }
.btn-on-dark.btn-ghost { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-on-dark.btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 88% 12%, rgba(31,143,136,0.10), transparent 42%),
    radial-gradient(circle at 8% 85%, rgba(239,127,26,0.08), transparent 45%),
    linear-gradient(180deg, var(--sage-100) 0%, var(--paper) 62%);
  background-repeat: no-repeat;
  color: var(--ink-900);
  padding: 72px 0 84px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gold-500), var(--sage-600), var(--navy-800), var(--brand-green));
}
.hero-media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 42%;
  background-size: cover;
  background-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  opacity: 0.9;
}
.hero .eyebrow {
  display: inline-block;
  background: var(--sage-100);
  color: var(--sage-600);
  border: 1px solid rgba(31,143,136,0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 { max-width: 760px; position: relative; }
.hero p.lead {
  color: var(--ink-600);
  font-size: 1.12rem;
  max-width: 620px;
  position: relative;
}
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; position: relative; }
.hero-stats {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  max-width: 780px;
  position: relative;
}
.hero-stats div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.hero-stats strong { display: block; font-size: 1.5rem; color: var(--navy-950); font-family: "Merriweather", serif; }
.hero-stats span { font-size: 0.82rem; color: var(--ink-400); }

/* ---------- Sections génériques ---------- */
section { padding: 72px 0; }
section.alt { background: var(--paper-alt); }
.section-head { max-width: 700px; margin: 0 auto 42px; text-align: center; }
.section-head .kicker {
  display: block;
  color: var(--sage-600);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ---------- Grilles de cartes ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card.featured {
  border: 2px solid var(--sage-600);
  position: relative;
}
.card .badge {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--gold-500);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}
.icon-tile {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--sage-100);
  color: var(--sage-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  font-weight: 700;
}
.card h3 { margin-bottom: 8px; }
.card a.card-link {
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--navy-800);
}

/* ---------- Étapes / process ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: flex-start;
}
.step .num {
  counter-increment: step;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Merriweather", serif;
  font-weight: 700;
  font-size: 1.2rem;
}
.step h4 { margin-bottom: 6px; color: var(--navy-950); }

/* ---------- Listes à coche ---------- */
ul.check { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
ul.check li { padding-left: 30px; position: relative; color: var(--ink-600); }
ul.check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sage-100);
  color: var(--sage-600);
  font-size: 0.72rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Bandeau citation / gagnant-gagnant ---------- */
.pledge {
  background: linear-gradient(135deg, var(--sage-600), var(--navy-800));
  color: #fff;
  border-radius: 20px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.pledge h2 { color: #fff; }
.pledge p { color: #e4eef0; }
.pledge .pledge-figures {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius);
  padding: 22px;
}
.pledge .pledge-figures strong { display: block; font-family: "Merriweather", serif; font-size: 1.6rem; }
.pledge .pledge-figures span { font-size: 0.85rem; color: #dcebe9; }

/* ---------- Table tarifs ---------- */
table.pricing {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
table.pricing th, table.pricing td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
table.pricing thead th {
  background: var(--navy-900);
  color: #fff;
  font-family: "Merriweather", serif;
  font-weight: 700;
}
table.pricing tbody tr:last-child td { border-bottom: none; }
table.pricing tbody tr:hover { background: var(--paper-alt); }

/* ---------- Témoignages ---------- */
.testimonial {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.testimonial p.quote { font-style: italic; color: var(--ink-900); }
.testimonial .who { font-weight: 700; color: var(--navy-900); font-size: 0.9rem; }

/* ---------- Bandeau CTA final ---------- */
.cta-band {
  background: var(--navy-950);
  color: #fff;
  border-radius: 20px;
  padding: 48px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c3d2e0; max-width: 560px; margin: 0 auto 24px; }
.cta-band .cta-row { justify-content: center; }

/* ---------- Pied de page ---------- */
footer.site-footer {
  background: var(--navy-950);
  color: #b7c6d6;
  padding: 52px 0 26px;
  margin-top: 40px;
}
footer.site-footer .grid { grid-template-columns: 2fr 1fr 1fr; margin-bottom: 34px; }
footer.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer-logo { height: 34px; width: auto; margin-bottom: 16px; }
.footer-acronym {
  font-size: 0.8rem;
  font-style: italic;
  color: #cfe0f0;
  margin-bottom: 12px;
}
.footer-acronym strong { color: #fff; font-style: normal; }
footer.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer.site-footer a { color: #b7c6d6; text-decoration: none; font-size: 0.92rem; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer p { color: #91a2b3; font-size: 0.85rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #7f92a4;
}
.footer-bottom a { color: #a9bacb; }

/* ---------- Fil d'ariane ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-400);
  margin-bottom: 14px;
  position: relative;
}
.breadcrumb a { color: var(--navy-800); text-decoration: none; }

/* ---------- Utilitaires ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.small-note { font-size: 0.85rem; color: var(--ink-400); }

@media (max-width: 880px) {
  .nav-wrap { flex-direction: column; align-items: flex-start; }
  nav.main-nav ul { gap: 2px; }
  .pledge { grid-template-columns: 1fr; }
  footer.site-footer .grid { grid-template-columns: 1fr; }
  .hero-media { display: none; }
}
