/* Reset CSS de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #d7181c;
  --accent-contrast: #ffffff;
}

html {
  scroll-behavior: smooth;
  height:100%
}

body {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  line-height: 1.6;
  background-color: whitesmoke;
  color: #111111;
  padding: 0;
  margin: 0;
  min-height: 100%;
}

/* ==========================
   Homepage Landing (Hero)
   ========================== */
.section-homepage-landing {
  position: relative;
  min-height: 0; /* stop at content bottom (image) */
  display: grid;
  place-items: center;
  padding-top: 120px; /* offset fixed header */
  overflow: hidden;
  background: var(--accent); /* solid red background */
  /* Gentle opacity fade at the bottom of the landing */
  -webkit-mask-image: linear-gradient(to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 70%,
    rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 70%,
    rgba(0,0,0,0) 100%
  );
}
.section-homepage-landing::after { content: none; }
.section-homepage-landing .landing-inner {
  position: relative;
  width: min(1440px, 96vw);
  height: clamp(420px, 58vh, 870px); /* cap landing height to 870px */
  z-index: 1; /* above white halo */
}
/* removed red halo here; section now uses solid red + white bottom halo */

/* Floating clouds layer (behind hero image) */
.landing-clouds {
  position: absolute;
  inset: 0;
  z-index: 1; /* below hero image */
  overflow: hidden;
  pointer-events: none;
}
.landing-clouds .cloud {
  position: absolute;
  bottom: -2vh; /* start closer to viewport */
  width: 240px;
  height: 140px;
  background-image: var(--cloud-image);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0; /* hidden until animation starts (prevents frozen clouds at bottom) */
  transform: translateY(0) scale(var(--cloud-scale, 1));
  will-change: transform, opacity;
  filter: blur(0.4px);
  animation: cloudRise var(--cloud-duration, 36s) linear var(--cloud-delay, 0s) infinite;
}

@keyframes cloudRise {
  0%   { transform: translateY(0)  scale(var(--cloud-scale, 1)); opacity: 0; }
  8%   { opacity: var(--cloud-opacity, 0.35); }
  92%  { opacity: var(--cloud-opacity, 0.35); }
  100% { transform: translateY(-120vh) scale(var(--cloud-scale, 1)); opacity: 0; }
}

/* Foreground hero image */
.landing-hero {
  position: absolute;
  bottom: 0; /* anchor hero to bottom */
  left: 0;
  right: 0;
  height: 62%; /* keep similar visible area */
  display: grid;
  place-items: center;
  z-index: 2; /* below clouds */
}
.landing-hero img {
  width: 110%; /* slightly wider look */
  height: 100%;
  object-fit: cover; /* fill width/height, crop as needed */
  object-position: center 100%; /* stick to bottom */
  opacity: 0; /* fade to 1 (no transparency at rest) */
  transform: translateY(24px);
  animation: heroEnter 900ms cubic-bezier(.2,.75,.2,1) 150ms forwards; /* no upward pan */
}
/* On large screens, nudge the visible area slightly upward */
@media (min-width: 1200px) {
  .landing-hero img {
    object-position: center 96%; /* still anchored close to bottom */
    animation: heroEnterUp 900ms cubic-bezier(.2,.75,.2,1) 150ms forwards;
  }
}

@keyframes heroEnterUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(-40px); }
}

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

/* Copy and badges above the image */
.landing-copy {
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: #fff;
  width: 100%;
  max-width: min(960px, 92%);
  text-align: center;
}
.landing-copy h1 {
  font-size: clamp(24px, 3.8vw, 46px);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 16px;
  white-space: nowrap; /* single line */
}
.badge-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.badge-list .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #0f172a;
  border: none;
  border-radius: 9999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  transition: transform 120ms ease, box-shadow 180ms ease, border-color 120ms ease;
}
.badge-list .badge .material-icons { font-size: 18px; color: var(--accent); line-height: 1; }
.badge-list .badge:hover {
  background: #fff7f7; /* soft red tint */
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(215,24,28,0.16);
}

@media (max-width: 900px) {
  .landing-copy h1 { white-space: normal; }
}
@media (max-width: 768px) {
  .landing-copy { top: 6%; max-width: 92%; }
  .landing-copy h1 { font-size: clamp(20px, 5vw, 34px); }
  .badge-list .badge { padding: 6px 10px; font-size: 13px; }
}

@media (max-width: 1024px) {
  .section-homepage-landing { padding-top: 100px; }
  .section-homepage-landing .landing-inner { height: clamp(380px, 52vh, 640px); }
  .landing-clouds .cloud { width: 200px; height: 116px; }
}
@media (min-width: 1024px) {
  /* Lower the landing title slightly on large screens */
  .landing-copy { top: 6%; }
}
@media (max-width: 768px) {
  .section-homepage-landing { padding-top: 90px; }
  .section-homepage-landing .landing-inner { width: 94vw; height: clamp(320px, 48vh, 560px); }
  .landing-clouds .cloud { width: 160px; height: 92px; }
}

/* ==========================
   Features Timeline Section
   ========================== */
.features-timeline {
  background: #fff;
  padding: 72px 24px 96px; /* more vertical space */
}
.features-container {
  max-width: 1440px; /* wider container */
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 80px 1.2fr; /* left | wider timeline | right */
  row-gap: 32px; /* much closer for strong overlap */
  position: relative;
}
.features-container::before {
  /* vertical timeline line */
  content: "";
  position: absolute;
  left: calc(50% - 1px);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #e5e7eb, #cbd5e1);
  z-index: 0; /* ensure line stays behind dots */
}
.feature-row {
  display: contents; /* let children map to grid cells */
}
.feature-row.left > .feature-wrap { grid-column: 1; }
.feature-row.left > .feature-dot  { grid-column: 2; }
.feature-row.right > .feature-dot { grid-column: 2; }
.feature-row.right > .feature-wrap{ grid-column: 3; }
.feature-dot { align-self: start; }
/* actions now inside wrap; no explicit grid placement needed */

.feature-dot {
  position: relative;
  width: 80px;
  height: 100%;
}
.feature-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 56px; /* lower to match overlapped card start */
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 4px 10px rgba(215,24,28,0.15);
}
/* Non-first rows: dots 50px lower to align with overlapped starts */
.features-container .feature-row:not(:first-of-type) > .feature-dot::after { top: 106px; }

/* Keep dots aligned with overlapped card start */
.features-container .feature-row:not(:first-of-type) > .feature-dot { margin-top: -72px; }

.feature-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(320px, 45%) 1fr;
  gap: 24px;
  align-items: center;
  box-shadow: 0 8px 18px rgba(0,0,0,0.05);
  position: relative;
  z-index: 1;
}
.features-container .feature-row:not(:first-of-type) > .feature-wrap { transform: translateY(-72px); will-change: transform; }
.features-container .feature-row:not(:first-of-type) > .feature-dot { transform: translateY(-72px); }
.feature-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* default 16:9 (mobile / narrow) */
  border-radius: 12px;
  overflow: hidden;
  background: #fff7f7;
  border: 1px solid #ffe3e3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-media img {
  height:100%;
}
.feature-media .mdi { font-size: 56px; color: var(--accent); line-height: 1; }
.feature-body { display: flex; flex-direction: column; gap: 10px; }
.feature-body h3 { font-size: 22px; line-height: 1.2; margin: 4px 0 8px; color: #0f172a; }
.feature-body p  { margin: 0 0 16px; color: #475569; font-size: 15.5px; line-height: 1.6; }
.feature-cta {
  display: inline-block;
  background: linear-gradient(90deg, #fbd337, #fcbd2b);
  color: black;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
  transition: filter 180ms ease, box-shadow 180ms ease, transform 80ms ease;
}
.feature-actions { margin-top: 10px; }
.feature-actions .feature-cta { display: inline-block; }
.feature-cta:hover { filter: brightness(0.98); box-shadow: 0 8px 18px rgba(245,158,11,0.22); }
/* reverted extra golden glow */
.feature-cta:active { transform: translateY(1px); box-shadow: 0 6px 14px rgba(245,158,11,0.24); }
.features-timeline .feature-cta { position: relative; padding-right: 18px; }
/* revert arrow adornment */

@media (max-width: 1250px) {
  /* Timeline moves left; all cards on the right */
  .features-container { grid-template-columns: 60px 1fr; row-gap: 48px; }
  .features-container::before { display: block; left: 30px; }
  .feature-dot { display: block; width: 60px; }
  /* Override higher-specificity base placements */
  .feature-row.left > .feature-wrap,
  .feature-row.right > .feature-wrap { grid-column: 2; }
  .feature-row.left > .feature-dot,
  .feature-row.right > .feature-dot  { grid-column: 1; }
  /* Row-level grid with explicit rows: row1=card, row2=actions */
  .feature-row {
    display: grid;
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
    grid-column: 1 / -1;
    align-items: center;
  }
  /* Place dot and card on row 1, actions on row 2 */
  .feature-row > .feature-dot     { grid-column: 1; grid-row: 1; position: relative; height: 100%; }
  .feature-row > .feature-wrap    { grid-column: 2; grid-row: 1; }
  .feature-row > .feature-actions { grid-column: 2; grid-row: 2; }
  .feature-card { grid-template-columns: 1fr; padding: 22px; gap: 18px; }

  /* Remove desktop overlaps and normalize dot positions for mobile */
  .features-container .feature-row > .feature-wrap { transform: none !important; }
  .features-container .feature-row > .feature-dot { transform: none !important; margin-top: 0 !important; }
  /* Center dot absolutely and keep above vertical line */
  .features-container .feature-row > .feature-dot::after {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -52%);
    z-index: 2;
  }
}

/* Desktop: keep red card style and soften image size */
@media (min-width: 961px) {
  /* Desktop: restore 16:9 media without hard cap, soften image size */
  .feature-media { aspect-ratio: 16 / 9; overflow: hidden; background: #fff7f7; border: 1px solid #ffe3e3; }
}

/* Very wide screens: make icon/media area taller (3/4) */
@media (min-width: 1250px) {
  .feature-media { aspect-ratio: 4 / 3; }
}

/* Small IA badge inside feature titles (legacy) */
.feature-body .badge-ia { margin-left: 8px; gap: 4px; padding: 2px 6px; font-size: 11px; }
.feature-body .badge-ia .mdi { font-size: 14px; line-height: 1; }
/* Bigger IA badge above titles on index cards */
.feature-body .feature-ai-badge { display:inline-flex; align-items:center; gap:6px; background:var(--accent); color:#fff; border-radius:9999px; padding:6px 10px; font-weight:800; font-size:14px; margin-bottom:6px; align-self:flex-start; width:auto; }
.feature-body .feature-ai-badge .mdi { font-size:18px; line-height:1; }

/* ==========================
   Partners Section
   ========================== */
.section-partners {
  position: relative;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 64px 24px 84px;
  overflow: hidden;
}
.section-partners::before {
  /* subtle texture/halo */
  content: "";
  position: absolute;
  inset: -10% -10% -30% -10%;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(255,255,255,0.25), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0));
  pointer-events: none;
}
.partners-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.partners-title {
  text-align: center;
  color: var(--accent-contrast);
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 32px;
}
.partners-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px 24px;
  align-items: stretch;
}
.partner-logo {
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 14px;
  padding: 16px 18px;
  min-height: 110px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  transition: transform 120ms ease, box-shadow 160ms ease, background-color 160ms ease;
  text-decoration: none;
}
.partner-logo:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,0.18); }
.partner-logo img {
  max-width: 100px;
  max-height: 60px; /* uniform vertical size */
  width:auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 640px) {
  .partners-logos { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .partner-logo { min-height: 96px; padding: 14px; }
  .partner-logo img { height: 48px; }
}

/* ==========================
   Contact Section
   ========================== */
.section-contact {
  background: #fff;
  padding: 64px 24px 84px;
}
.contact-inner {
  max-width: 960px;
  margin: 0 auto;
}
.contact-required-note { margin: 6px 0 14px; color: #6b7280; font-size: 14px; }
.required-star { color: var(--accent); font-weight: 800; }
.contact-head { text-align: center; margin-bottom: 22px; }
.contact-head h2 { font-size: clamp(24px, 3.2vw, 36px); margin-bottom: 6px; }
.contact-head p { color: #475569; }

.contact-alert { border-radius: 12px; padding: 12px 14px; margin: 12px 0 18px; }
.contact-alert.error { background: #fff1f1; color: #8a0e11; border: 1px solid #ffd3d5; }
.contact-alert.success { background: #effaf0; color: #1b5e20; border: 1px solid #cde9d2; }
.contact-success { border-left: 6px solid #16a34a; box-shadow: 0 8px 20px rgba(22,163,74,0.10); }
.contact-success .cs-title { font-weight: 800; margin-bottom: 6px; color: #14532d; }
.contact-success .cs-sub { color: #166534; }

.contact-form { background: #ffffff; border: 1px solid #eee; border-radius: 14px; padding: 18px; box-shadow: 0 8px 18px rgba(0,0,0,0.05); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field-full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; color: #0f172a; font-size: 14px; }
.form-field input, .form-field textarea {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.form-field select {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
  min-height: 160px;
}
.form-field textarea { resize: none; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(215,24,28,0.15); }
.form-field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(215,24,28,0.15); }
.form-turnstile { margin: 10px 0; }
.form-actions { margin-top: 8px; display: flex; justify-content: flex-end; }
.btn-primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 10px; padding: 10px 16px; font-weight: 700; cursor: pointer; }
.btn-primary:hover { filter: brightness(0.98); box-shadow: 0 8px 18px rgba(215,24,28,0.22); }

/* Small inline spinner for submit buttons */
.btn-spinner {
  width: 14px; height: 14px; margin-right: 8px; display: none;
  border: 2px solid rgba(255,255,255,0.7); border-top-color: #fff;
  border-radius: 50%; animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

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

/* ==========================
   Footer
   ========================== */
.site-footer {
  position: relative;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 48px 24px;
  overflow: hidden;
}
.site-footer .footer-bg {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 50% -10%, rgba(255,255,255,0.20), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0));
  pointer-events: none;
}
.site-footer .footer-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 28px;
}
.footer-links .footer-credit a { color: #fff; opacity: 0.6; font-size: 12px; text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,0.3); }
.footer-links .footer-credit a:hover { opacity: 0.85; border-bottom-color: rgba(255,255,255,0.6); }
.site-footer .footer-col.brand { padding: 0 10%; }
.site-footer .footer-col h4 { margin-bottom: 12px; font-size: 16px; letter-spacing: .3px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a {
  color: #fff;
  text-decoration: none;
  opacity: 0.95;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 160ms ease, color 160ms ease, transform 120ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.footer-links a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  opacity: 1;
  transform: translateX(2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.footer-links a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Brand column */
.footer-logo img { width: 60%; max-width:200px; height: auto; display: block; margin: 0 auto; transition: none; }
.footer-powered { display: block; width: 100%; text-align: center;  }
.footer-powered img { width:100%; max-width:200px; display: block; margin: 0 auto; background: #fff; border-radius: 14px; padding: 6px 14px; margin-top: 24px; border: 1px solid rgba(255,255,255,0.6); box-shadow: 0 10px 22px rgba(0,0,0,0.14); }

/* Features column */
.footer-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 40px;
  background: linear-gradient(90deg, #fbd337, #fcbd2b);
  color: #111;
  border: none;
  border-radius: 9999px;
  padding: 10px 16px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(252,189,43,0.22);
  transition: transform 120ms ease, box-shadow 160ms ease, filter 140ms ease;
}
.footer-contact-btn::after { content: '›'; font-weight: 900; line-height: 1; transform: translateY(1px); transition: transform 120ms ease; }
.footer-contact-btn:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(252,189,43,0.26);
}
.footer-contact-btn:active { transform: translateY(0); box-shadow: 0 8px 18px rgba(252,189,43,0.22); }
.footer-contact-btn:focus-visible { outline: 3px solid rgba(255,255,255,0.6); outline-offset: 2px; }

@media (max-width: 900px) {
  .site-footer .footer-inner { grid-template-columns: 1fr; }
  .site-footer .footer-col.brand { padding: 0 8%; }
  .site-footer .footer-col { text-align: center; }
}

/* ==========================
   MetaSearch/MetaCharts page
   ========================== */
body.page-template-page-analyse-diffusion,
body.page-template-page-analyse-diffusion-php { background: #fff; }
.page-metasearch-hero {
  position: relative;
  background: #fff;
  color: #111;
  padding: 150px 32px 54px; /* more air under fixed header */
  overflow: hidden;
  border-bottom: 1px solid #eee; /* subtle bottom divider */
}
.page-metasearch-hero::before,
.page-metasearch-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
/* Soft abstract blobs using theme accent, very low opacity */
.page-metasearch-hero::before {
  background:
    radial-gradient(320px 210px at 8% 18%, rgba(215,24,28,0.08), rgba(215,24,28,0.00) 62%),
    radial-gradient(420px 280px at 92% 10%, rgba(215,24,28,0.06), rgba(215,24,28,0.00) 64%),
    radial-gradient(520px 340px at 85% 86%, rgba(215,24,28,0.045), rgba(215,24,28,0.00) 68%);
  filter: blur(2px);
}
/* Subtle dotted pattern tinted with accent, fading to transparent */
.page-metasearch-hero::after {
  background-image: radial-gradient(rgba(215,24,28,0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0));
}
.page-metasearch-hero .ms-hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.ms-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
.ms-hero-text h1 { font-size: clamp(28px, 4.6vw, 56px); line-height: 1.1; font-weight: 900; color: var(--accent); }
.ms-hero-text .lead { max-width: 720px; margin-top: 12px; color: #475569; }
.ms-hero-image { display: flex; justify-content: center; }
.ms-hero-image img { width: 80%; max-width: 640px; height: auto; display: block; }
.page-metasearch-hero .ms-hero-bg, .page-metasearch-hero .ms-hero-clouds { display: none; }
@keyframes msFloat { from { transform: translateY(0); opacity:.4; } to { transform: translateY(-120vh); opacity:0; } }

.page-metasearch-block { background:#fff; padding: 72px 32px; }
.page-metasearch-block.alt { background: #fff; border-top: 1px solid #eee; }
.page-metasearch-block:last-of-type { padding-bottom: 110px; }
.ms-block-inner { max-width: 1100px; margin: 0 auto; }
.ms-copy h2 { font-size: 28px; margin-bottom: 10px; }
.ms-copy h2 { color: var(--accent); position: relative; }
.ms-copy h2::after { content: ""; display: block; width: 60px; height: 4px; background: var(--accent); border-radius: 9999px; margin-top: 8px; }
.ms-copy p { color:#475569; margin: 14px 0 20px; }
.ms-features-title { margin-top: 14px; font-size: 18px; color: #0f172a; }
.ms-bullets { margin: 10px 0 12px; padding: 0; list-style: none; }
.ms-bullets li {
  margin: 14px 0;
  color: #0f172a;
  background: #fff7f7;
  border: 1px solid #ffd6d6;
  border-left: 6px solid var(--accent);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 10px 20px rgba(215,24,28,0.10);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.ms-bullets li .mdi { color: var(--accent); font-size: 20px; line-height: 1; margin-top: 2px; }
.ms-bullets.bullets-rich { margin-top: 16px; }
.ms-bullets.bullets-rich li { padding: 16px 18px; }
.ms-bullets.bullets-rich .bullet-text { display: flex; flex-direction: column; gap: 6px; }
.ms-bullets.bullets-rich .bullet-title { font-weight: 800; color: #0f172a; }
.ms-bullets.bullets-rich .bullet-desc { color: #374151; }
.ms-bullets.colorful li:nth-child(2n) {
  /* Très clair jaune, dans l'esprit des cartes rouges */
  background: #fffdf3; /* very light yellow */
  border-color: #ffeaca; /* soft yellow border */
  border-left-color: #f59e0b; /* golden left accent */
  box-shadow: 0 8px 18px rgba(245,158,11,0.08);
}
.ms-bullets.colorful li:nth-child(3n) { background: #f7fff9; border-color: #d6ffd9; border-left-color: #16a34a; box-shadow: 0 8px 18px rgba(22,163,74,0.08); }
.ms-bullets.colorful li:nth-child(4n) { background: #fffbf7; border-color: #ffe7c7; border-left-color: #f59e0b; box-shadow: 0 8px 18px rgba(245,158,11,0.08); }
.ms-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin: 28px 0; }
.ms-feature-grid .mock { margin: 6px; }
.ms-feature-grid .mock { width: 100%; height: auto; display: block; }
.ms-feature-grid .ms-bullets { margin: 0; }

@media (max-width: 980px){
  .ms-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .ms-hero-image { order: -1; margin-bottom: 12px; }
  .ms-hero-image img { width: 65%; max-width: 420px; }
  .ms-hero-text .lead { margin-left: auto; margin-right: auto; }
  .ms-feature-grid { grid-template-columns: 1fr; }
  .ms-feature-grid .mock { order: 1; justify-self: center; max-width: min(520px, 92vw); }
  .ms-feature-grid .ms-bullets { order: 2; }
}

/* ==========================
   Radio Features (Pige Radio)
   ========================== */
.rf-section { margin-top: 32px; }
.rf-item { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin: 64px 0; }
.rf-item.reverse { grid-template-columns: 1fr 1fr; }
.rf-item .rf-image img { width: 100%; height: auto; display: block; border-radius: 12px; border: none; }
.rf-item .rf-text .rf-title { color: var(--accent); font-weight: 900; font-size: 22px; margin-bottom: 12px; }
.rf-item .rf-text .rf-desc { color: #374151; margin: 10px 0 0; }

.rf-card { display: flex; align-items: flex-start; gap: 12px; margin: 56px 0; background: #fff7f7; border: 1px solid #ffd6d6; border-left: 6px solid var(--accent); border-radius: 12px; padding: 22px 24px; box-shadow: 0 14px 28px rgba(215,24,28,0.08); }
.rf-card > .mdi { color: var(--accent); font-size: 22px; line-height: 1; margin-top: 2px; }
.rf-card .rf-title { color: #0f172a; font-weight: 900; font-size: 20px; margin-bottom: 8px; }
.rf-card .rf-desc { color: #374151; }
/* revert rf-card hover golden accent */

@media (max-width: 980px){
  .rf-item { grid-template-columns: 1fr; }
}

header {
  background-color:white;
  position:fixed;
  top:0;
  width:100%;
  z-index:99;
  border-bottom:1px solid whitesmoke;
}

header .header-wrapper {
  display:flex;
  margin:auto;
  justify-content: space-between;
  max-width:1440px;
  height:100px;
  transition: height 200ms ease;
}

.header-branding {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin:1em;
  position: relative;
  flex-shrink: 0; /* prevent logo from squashing */
}

.header-branding::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(180px, 140%, 360px);
  height: clamp(100px, 140%, 240px);
  background: radial-gradient(60% 60% at 50% 50%,
    rgba(215, 24, 28, 0.35) 0%,
    rgba(215, 24, 28, 0.22) 35%,
    rgba(215, 24, 28, 0.08) 70%,
    rgba(215, 24, 28, 0.00) 95%
  );
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}

.header-branding .site-title {
  margin: 0;
}

.header-branding img {
  max-width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

header .header-branding img {
  height:60px;
  margin:auto;  
  transition: height 200ms ease;
}

/* Shrink on scroll */
body.header-shrunk header .header-wrapper { height: 64px; }
body.header-shrunk header .header-branding img { height: 42px; }
/* Subtle golden emphasis when header shrinks */
/* revert golden header emphasis */

/* Header right menu */
.header-right-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 16px;
  position: relative;
}

/* Group wrapper for Fonctionnalités trigger + submenu */
.header-functions {
  position: relative;
  padding-bottom: 14px; /* extends hover area */
}

.header-right-menu a {
  color: #111111;
  text-decoration: none;
  font-weight: 500;
}

/* "Fonctionnalités" trigger */
.header-button-functions {
  margin-top:10px;
  position: relative;
  padding: 10px 12px;
  border-radius: 10px;
  top: 2px; /* nudge down slightly for visual centering */
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.header-button-functions::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--accent);
  vertical-align: middle;
  transition: transform 0.15s ease;
}
.header-button-functions:hover {
  background: #f5f5f5;
}
.header-button-functions:hover::after {
  transform: translateY(1px);
}

/* Dropdown submenu */
.header-functions-submenu {
  display: flex;
  list-style: none;
  position: absolute;
  top: 100%;
  left: 50%; /* center under trigger to avoid left clipping */
  right: auto;
  width: min(880px, calc(100vw - 24px));
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  z-index: 1000;
  /* Single row of vertical cards scrolling horizontally */
  flex-wrap: nowrap;
  gap: 10px;
  overflow: visible; /* no scroll */
  /* Smooth open */
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}
/* Bridge the hover gap between trigger and submenu */
.header-functions-submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -6px;
  height: 6px;
}

/* Show submenu when hovering the whole group */
.header-functions:hover .header-functions-submenu,
.header-functions-submenu:hover {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
  transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 0s;
}

.header-functions-submenu li {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  background: #fff;
  flex: 1 1 0; /* fill available width evenly */
  display: flex; /* ensure child fills height */
}

/* Taller card body */
.header-fsb-a {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.header-fsb-a {
  padding: 14px 16px;
  border-radius: 12px;
  transition: background 0.15s ease;
  display: flex; /* full-height clickable */
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.header-fsb-a:hover { background: #fff7f7; }
.header-fsb-a.ai-card { position: relative; border-top: 3px solid var(--accent); }
.header-fsb-a.ai-card .ai-star { position: absolute; top: 8px; right: 8px; color: var(--accent); font-size: 18px; line-height: 1; }
.header-fsb-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #0f172a;
}
.badge-ia {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 9999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
}
.page-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  border-radius: 9999px;
  padding: 6px 10px;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
}
.page-ai-badge .mdi { font-size: 18px; line-height: 1; }

/* Use yellow gradient for AI badge on MetaSearch/Transcribe heroes */
.page-metasearch-hero .page-ai-badge {
  background: linear-gradient(90deg, #fbd337, #fcbd2b);
  color: #111;
}

/* KPI badge (neutral) */
.page-kpi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  border-radius: 9999px;
  padding: 6px 10px;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
}
.page-kpi-badge .mdi { font-size: 18px; line-height: 1; }

/* Radio page: use the same warm yellow gradient as AI badge */
.page-metasearch-hero .page-kpi-badge {
  background: linear-gradient(90deg, #fbd337, #fcbd2b);
  color: #111;
}
.header-fsb-description {
  margin-top: 6px;
  color: #475569;
  font-size: 14px;
  line-height: 1.4;
}

/* Bottom AI row inside cards */
.header-fsb-bottom {
  margin-top: 10px;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid #f0f0f0;
}
.header-fsb-bottom .mdi { color: var(--accent); font-size: 16px; line-height: 1; }
.header-fsb-bottom .ai-label { color: var(--accent); font-weight: 800; font-size: 12px; letter-spacing: .2px; }

/* Icons in functions submenu */
.header-fsb-icon {
  font-size: 20px;
  line-height: 1;
  color: var(--accent);
}

/* Subtle red theming like contact button */
.header-functions-submenu li:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(215, 24, 28, 0.12);
}
.header-fsb-a:hover {
  background: #fff7f7;
}

/* Primary connect button */
.header-button-connect {
  background: #ffffff;
  color: var(--accent) !important;
  padding: 10px 16px;
  border-radius: 9999px; /* très arrondi */
  font-weight: 700;
  border: 2px solid var(--accent);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 80ms ease;
}
.header-button-connect:hover {
  background: #fff4f4;
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(215, 24, 28, 0.15);
}
.header-button-connect:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(215, 24, 28, 0.18);
}

/* Bouton plein pour "Contactez-nous" */
.header-button-contact {
  background: var(--accent);
  color: var(--accent-contrast) !important;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid var(--accent);
  transition: filter 180ms ease, box-shadow 180ms ease, transform 80ms ease;
}
.header-button-contact:hover {
  filter: brightness(0.98);
  box-shadow: 0 8px 18px rgba(215, 24, 28, 0.25);
}
.header-button-contact:active {
  transform: translateY(1px);
  box-shadow: 0 6px 14px rgba(215, 24, 28, 0.28);
}

/* Languages pill */
.header-button-lang {
  display: inline-flex;
  gap: 0;
  align-items: stretch;
  position: relative;
}
.header-button-lang::after {
  content: "";
  display: inline-block;
  align-self: center;
  margin-left: 8px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--accent);
  transition: transform 0.15s ease;
}
.header-button-lang:hover::after {
  transform: translateY(1px);
}
.header-lang-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111;
}
.header-lang-current .lang-flag { font-size: 18px; line-height: 1; }
.header-lang-current .lang-label { display: none; }

.header-lang-submenu {
  display: none;
  list-style: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  border-radius: 12px;
  border: 1px solid #eee;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  white-space: nowrap;
  padding: 8px;
  min-width: 180px;
  z-index: 1000;
}
.header-lang-submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
.header-button-lang:hover .header-lang-submenu { display: block; }
.header-lang-submenu li { margin: 2px 0; }
.header-lang-submenu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #111;
}
.header-lang-submenu a:hover { background: #f5f5f5; }
.header-lang-submenu a.active { background: #fff7f7; color: var(--accent); font-weight: 700; }

/* Responsiveness */
@media (max-width: 1024px) {
  header .header-wrapper {
    height: 80px;
    padding: 0 12px;
  }
  body.header-shrunk header .header-wrapper { height: 64px; }
  body.header-shrunk header .header-branding img { height: 40px; }
  .header-right-menu {
    gap: 12px;
  }
  .header-button-connect {
    padding: 8px 12px;
  }
}

@media (max-width: 768px) {
  .header-right-menu {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .header-functions-submenu {
    right: 0;
    width: calc(100vw - 24px);
  }
}

/* Mobile menu toggle (burger) */
.mobile-menu-toggle { display: none; position: fixed; right: 12px; top: 14px; width: 38px; height: 32px; z-index: 1001; cursor: pointer; }
.mobile-menu-toggle span { display: block; height: 3px; background: var(--accent); margin: 6px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.mobile-menu-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu { display: none; position: fixed; inset: 0; background: rgba(255,255,255,0.98); z-index: 1000; padding: 90px 18px 18px; overflow-y: auto; }
.mobile-menu.mobile-visible { display: block; }
.mobile-menu .mobile-section { margin: 10px 0 18px; }
.mobile-menu .mobile-title { font-weight: 900; color: #0f172a; margin-bottom: 8px; }
.mobile-menu .mobile-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mobile-menu .mobile-links a { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; border: 1px solid #eee; border-radius: 12px; background: #fff; text-decoration: none; color: #111; }
.mobile-menu .mobile-lang-links a { flex-direction: row; align-items: center; gap: 8px; }
.mobile-menu .mobile-lang-links a.active { background: #fff7f7; color: var(--accent); font-weight: 800; }
.mobile-menu .mobile-title-row { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #0f172a; }
.mobile-menu .mobile-desc { color: #475569; font-size: 14px; line-height: 1.4; margin: 0; }
.mobile-menu .mobile-bottom { margin-top: 6px; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; border-top: 1px solid #f0f0f0; }
.mobile-menu .mobile-bottom .mdi { color: var(--accent); font-size: 16px; }
.ai-label { color: var(--accent); font-weight: 800; font-size: 12px; letter-spacing: .2px; }
.mobile-menu .mobile-links a .mdi { color: var(--accent); font-size: 20px; }
.mobile-menu .mobile-actions { display: grid; gap: 10px; margin-top: 14px; }
.mobile-menu .mobile-contact { display: inline-block; padding: 12px 14px; border-radius: 12px; background: var(--accent); color: #fff; text-align: center; text-decoration: none; font-weight: 800; }
.mobile-menu .mobile-connect { display: inline-block; padding: 10px 14px; border-radius: 9999px; border: 2px solid var(--accent); color: var(--accent); text-align: center; text-decoration: none; font-weight: 800; }

@media (max-width: 900px) {
  .header-right-menu { display: none; }
  .mobile-menu-toggle { display: block; }
  /* Always reduced header on mobile, no scroll-based resize */
  header .header-wrapper { height: 64px; padding: 0 12px; }
  header .header-branding img { height: 42px; }
}

/* Reduce top spacing on hero sections with illustration on mobile */
@media (max-width: 900px) {
  .page-metasearch-hero { padding-top: 100px; padding-bottom: 40px; }
}

/* ==========================
   Legal/Policy Pages
   ========================== */
.page-title {
  /* Offset fixed header and align with global container */
  padding: 120px 20px 10px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-title.page-title-support { padding-top: 130px; }
.page-title h1 {
  color: var(--accent);
  font-weight: 900;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.1;
}
.page-title img {
  width: 26px;
  height: 26px;
  display: inline-block;
}

.page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 90px;
}

.page-content {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.05);
  padding: 24px;
}

/* Optional larger padding helper if used */
.page-content.bigpadding { padding: 28px; }

/* Typography */
.page-content p { color: #374151; margin: 12px 0 16px; }
.page-content h2 { color: #0f172a; font-size: 22px; margin: 18px 0 8px; }
.page-content h3 { color: #0f172a; font-size: 18px; margin: 16px 0 8px; }
.page-content a { color: var(--accent); text-decoration: none; }
.page-content a:hover { text-decoration: underline; }
.page-content strong { color: #0f172a; }

/* Lists */
.page-content ul { padding-left: 18px; margin: 10px 0 16px; }
.page-content ol { padding-left: 20px; margin: 10px 0 16px; }
.page-content li { margin: 6px 0; color: #374151; }

@media (max-width: 900px) {
  .page-title { padding-top: 100px; }
  .page-content { padding: 18px; }
}

/* CTA bottom on feature pages */
.cta-bottom .ms-copy { text-align: center; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.cta-buttons .feature-cta { min-width: 220px; text-align: center; }
