/* ==========================================================================
   consenteer.com — feuille de style principale
   Charte : bleu #1274B6 (primaire), teal #23ABB4 (accent)
   Polices : Lato (titres) / Roboto (texte), auto-hébergées en woff2
   ========================================================================== */

/* --------------------------------------------------------------------------
   Polices locales
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Variables & reset
   -------------------------------------------------------------------------- */
:root {
  --blue: #1274b6;
  --blue-dark: #0e5d92;
  --blue-pale: #e8f2f9;
  --teal: #23abb4;
  --teal-pale: #e6f6f7;
  --ink: #16283a;
  --muted: #55677a;
  --border: #dde6ee;
  --bg: #ffffff;
  --bg-soft: #f5f9fc;
  --ok: #1e8e5a;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(22, 40, 58, 0.08);
  --font-title: "Lato", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover,
a:focus {
  text-decoration: underline;
}

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

code, pre {
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 0.9em;
}

.accent { color: var(--teal); }

/* Accessibilité : focus visible partout */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   Structure
   -------------------------------------------------------------------------- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}
.section--soft {
  background: var(--bg-soft);
}
.section-head {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover,
.btn:focus {
  text-decoration: none;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
}
.btn--primary:hover,
.btn--primary:focus {
  background: var(--blue-dark);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn--outline:hover,
.btn--outline:focus {
  background: var(--blue-pale);
}

.btn--lg {
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   En-tête / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.site-header__logo img {
  display: block;
  height: 40px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
}
.site-nav a:hover,
.site-nav a:focus {
  color: var(--blue);
  text-decoration: none;
}
.site-nav a[aria-current="page"] {
  color: var(--blue);
}
.site-nav .btn {
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
}
.site-nav a.btn--primary,
.site-nav a.btn--primary:hover,
.site-nav a.btn--primary:focus {
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
  }
  .site-nav .btn {
    margin-top: 1rem;
    border-bottom: none;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, var(--blue-pale) 0%, #ffffff 100%);
  padding: 5rem 0 4rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__text p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero__note {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Aperçu de bannière (démo statique)
   -------------------------------------------------------------------------- */
.cmp-demo {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(22, 40, 58, 0.14);
  padding: 1.5rem;
  max-width: 460px;
  margin: 0 auto;
}

.cmp-demo__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.cmp-demo__title img {
  width: 28px;
  height: 28px;
}

.cmp-demo__text {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.cmp-demo__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.cmp-demo__buttons span {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  white-space: nowrap;
}
.cmp-demo__btn-refuse {
  border: 2px solid var(--border);
  color: var(--ink);
}
.cmp-demo__btn-custom {
  border: 2px solid var(--blue);
  color: var(--blue);
}
.cmp-demo__btn-accept {
  background: var(--blue);
  border: 2px solid var(--blue);
  color: #fff;
}

.cmp-demo__hint {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Badges de conformité
   -------------------------------------------------------------------------- */
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.badges li {
  list-style: none;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue-dark);
  background: var(--blue-pale);
  border: 1px solid #cbe0ef;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
}
ul.badges {
  padding: 0;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Cartes
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 960px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--teal-pale);
  color: var(--teal);
  font-family: var(--font-title);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

/* --------------------------------------------------------------------------
   Sections fonctionnalités (alternance texte / liste)
   -------------------------------------------------------------------------- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.feature-block:last-child {
  border-bottom: none;
}
@media (max-width: 860px) {
  .feature-block {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
.feature-block h2 {
  font-size: 1.45rem;
}
.feature-block .kicker {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 0.4rem;
}
.feature-block p {
  color: var(--muted);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.7rem;
  color: var(--ink);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center/70% no-repeat;
}
.checklist .plan-tag {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-dark);
  background: var(--blue-pale);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  margin-left: 0.4rem;
  vertical-align: middle;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Tarifs
   -------------------------------------------------------------------------- */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
@media (max-width: 1020px) {
  .pricing-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }
}

.plan {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.plan--featured {
  border: 2px solid var(--blue);
  position: relative;
}
.plan__flag {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 0.2rem 0.9rem;
  white-space: nowrap;
}
.plan h3 {
  margin-bottom: 0.2rem;
}
.plan__price {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 2rem;
  margin: 0.4rem 0 0.1rem;
}
.plan__price small {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
}
.plan__period {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  font-size: 0.92rem;
  color: var(--muted);
  flex-grow: 1;
}
.plan ul li {
  padding: 0.3rem 0;
  border-bottom: 1px dashed var(--border);
}
.plan ul li:last-child {
  border-bottom: none;
}
.plan .btn {
  width: 100%;
}

/* Tableau comparatif complet */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: #fff;
  font-size: 0.93rem;
}
.compare th,
.compare td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.compare th {
  font-family: var(--font-title);
  background: var(--bg-soft);
}
.compare th:first-child,
.compare td:first-child {
  text-align: left;
  font-weight: 700;
  font-family: var(--font-title);
  color: var(--ink);
}
.compare td {
  color: var(--muted);
}
.compare .yes {
  color: var(--ok);
  font-weight: 700;
}
.compare .no {
  color: #b0bcc7;
}
.compare .col-featured {
  background: var(--blue-pale);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  padding: 0;
}
.faq summary {
  font-family: var(--font-title);
  font-weight: 700;
  cursor: pointer;
  padding: 1rem 1.25rem;
  list-style: none;
  position: relative;
  padding-right: 3rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--blue);
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq details > div {
  padding: 0 1.25rem 1.1rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Bloc code / snippet
   -------------------------------------------------------------------------- */
.code-block {
  position: relative;
  background: #12283b;
  color: #dbe9f5;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
}
.code-block pre {
  margin: 0;
  padding-right: 5.5rem;
  white-space: pre;
  line-height: 1.55;
}
.code-block .copy-btn {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
}
.code-block .copy-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* --------------------------------------------------------------------------
   Bandeau CTA final
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 3.5rem 0;
}
.cta-band h2 {
  color: #fff;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto 1.75rem;
}
.cta-band .btn--primary {
  background: #fff;
  color: var(--blue);
}
.cta-band .btn--primary:hover,
.cta-band .btn--primary:focus {
  background: var(--blue-pale);
  color: var(--blue-dark);
}

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #b9c6d2;
  padding: 3rem 0 1.5rem;
  font-size: 0.92rem;
}
.site-footer a {
  color: #dfe8f0;
}
.site-footer a:hover,
.site-footer a:focus {
  color: #fff;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.8rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer ul li {
  margin-bottom: 0.5rem;
}
.site-footer__brand img {
  height: 40px;
  width: auto;
  margin-bottom: 0.8rem;
}
.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #8fa1b3;
}

/* --------------------------------------------------------------------------
   Pages de contenu (légal, installation…)
   -------------------------------------------------------------------------- */
.page-head {
  background: var(--bg-soft);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.page-head p {
  color: var(--muted);
  max-width: 680px;
  margin: 0;
}

.prose {
  max-width: 760px;
}
.prose h2 {
  font-size: 1.35rem;
  margin-top: 2.2rem;
}
.prose h3 {
  font-size: 1.1rem;
  margin-top: 1.6rem;
}
.prose ul {
  padding-left: 1.3rem;
  color: var(--muted);
}
.prose p {
  color: var(--muted);
}

.notice {
  background: var(--teal-pale);
  border: 1px solid #bfe7ea;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.placeholder {
  background: #fff8e6;
  border: 1px dashed #e3c96a;
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  color: #8a6d1a;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Page 404
   -------------------------------------------------------------------------- */
.error-page {
  text-align: center;
  padding: 6rem 0;
}
.error-page .code {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 5rem;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.5rem;
}
