/* ============================================================
   MyBetty — habillage funnel FR (config / inscription)
   Décline le design de la home FR (index.html) sur les pages
   d'achat : palette bleu-blanc-rouge, Manrope, bandeau tricolore,
   header + footer identiques à la home.
   Miroir de mybetty-us-funnel.css pour le marché français.
   ============================================================ */

:root {
  --fr-navy: #071f46;
  --fr-navy-2: #123a70;
  --fr-blue: #1557b7;
  --fr-blue-2: #2774d4;
  --fr-red: #e53245;
  --fr-red-dark: #bd2035;
  --fr-gold: #c9a55a;
  --fr-gold-soft: #fbf3dd;
  --fr-ink: #102846;
  --fr-slate: #52677f;
  --fr-line: #dce6ef;
  --fr-powder: #f4f7fb;
  --fr-powder-2: #eaf0f8;
}

body.fr-funnel {
  /* Ponts vers les variables consommées par les <style> inline des pages */
  --bg: #f6f9fe;
  --text: var(--fr-ink);
  --muted: var(--fr-slate);
  --card: #fff;
  --border: var(--fr-line);
  --primary: var(--fr-blue);
  --primary2: var(--fr-gold);

  --cfg-bg: #f6f9fe;
  --cfg-bg2: var(--fr-powder);
  --cfg-surface: #fff;
  --cfg-surface-2: #f6f9fe;
  --cfg-border: rgba(7, 31, 70, .11);
  --cfg-border-strong: rgba(21, 87, 183, .34);
  --cfg-text: var(--fr-ink);
  --cfg-muted: var(--fr-slate);
  --cfg-accent: var(--fr-blue);
  --cfg-accent2: var(--fr-gold);
  --cfg-shadow: 0 22px 60px rgba(7, 31, 70, .12);

  --bb-bg: #f6f9fe;
  --bb-bg2: var(--fr-powder);
  --bb-surface: #fff;
  --bb-surface-2: #f6f9fe;
  --bb-border: rgba(7, 31, 70, .11);
  --bb-border-strong: rgba(21, 87, 183, .34);
  --bb-accent: var(--fr-blue);
  --bb-accent2: var(--fr-gold);
  --bb-text: var(--fr-ink);
  --bb-muted: var(--fr-slate);
  --bb-shadow: 0 22px 60px rgba(7, 31, 70, .12);

  /* Variables du chrome partagé (header/footer/boutons) */
  --fnl-nav: var(--fr-navy);
  --fnl-red: var(--fr-red);
  --fnl-line: var(--fr-line);
  --fnl-slate: var(--fr-slate);
  --fnl-muted: #7f8fa2;
  --fnl-btn: linear-gradient(135deg, var(--fr-blue), var(--fr-blue-2));
  --fnl-btn-hover: linear-gradient(135deg, #0c468f, var(--fr-blue));
  --fnl-btn-shadow: 0 12px 28px rgba(21, 87, 183, .24);

  min-height: 100%;
  background:
    radial-gradient(circle at 9% 8%, rgba(21, 87, 183, .07), transparent 28rem),
    linear-gradient(180deg, #fff 0, #f6f9fe 34rem, #fff 100%);
  color: var(--fr-ink);
  font-family: Manrope, Arial, sans-serif;
}

/* Bandeau drapeau français en haut (comme la home FR) */
body.fr-funnel::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  height: 4px;
  background: linear-gradient(90deg, var(--fr-blue) 0 33.333%, #fff 33.333% 66.666%, var(--fr-red) 66.666% 100%);
  box-shadow: 0 1px 0 rgba(7, 31, 70, .08);
  content: "";
}

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

.fr-funnel h1,
.fr-funnel h2,
.fr-funnel h3,
.fr-funnel h4,
.fr-funnel button,
.fr-funnel input,
.fr-funnel textarea,
.fr-funnel select {
  font-family: Manrope, Arial, sans-serif;
}

/* Le contenu du funnel vit dans <main class="container"> : on l'élargit */
.fr-funnel main.container {
  width: 100%;
  max-width: none;
  padding: 0;
}

.fr-funnel .page-wrap,
.fr-funnel .insc-wrap {
  width: min(1180px, calc(100% - 28px));
  margin-top: 24px;
}

/* Accents décoratifs alignés sur la home */
.fr-funnel .cfg-glow.g1,
.fr-funnel .insc-glow.g1 { background: rgba(21, 87, 183, .10); }
.fr-funnel .cfg-glow.g2,
.fr-funnel .insc-glow.g2 { background: rgba(201, 165, 90, .10); }

.fr-funnel .hero {
  position: relative;
  border-color: rgba(7, 31, 70, .11);
  background:
    linear-gradient(105deg, rgba(244, 247, 251, .98), rgba(255, 255, 255, .98)),
    #fff;
  box-shadow: 0 24px 70px rgba(7, 31, 70, .12);
}

/* Filet tricolore sur le hero du funnel (rappel du drapeau) */
.fr-funnel .hero::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 13%;
  height: 5px;
  background: var(--fr-blue);
  content: "";
}
.fr-funnel .hero::after {
  position: absolute;
  inset: 0 auto auto 13%;
  width: 8%;
  height: 5px;
  background: var(--fr-red);
  content: "";
}

.fr-funnel .hero-eyebrow {
  color: var(--fr-blue);
  background: #fff;
  border-color: rgba(21, 87, 183, .25);
}
.fr-funnel .hero-eyebrow::before { background: var(--fr-gold); }

.fr-funnel .hero-title { color: var(--fr-navy); }
.fr-funnel .hero-title em {
  color: var(--fr-blue);
  background: linear-gradient(135deg, var(--fr-blue), #3f7fd6 68%, var(--fr-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fr-funnel .proof-avatar { background: linear-gradient(135deg, var(--fr-blue), var(--fr-navy)); }
.fr-funnel .preview-bubble,
.fr-funnel .bot-bubble { background: var(--fr-blue); box-shadow: 0 10px 24px rgba(21, 87, 183, .18); }
.fr-funnel .thumb { border-color: var(--fr-blue); }
.fr-funnel .selected-metier-label strong { color: var(--fr-blue); }

.fr-funnel .btn.primary,
.fr-funnel .btn.primary.big {
  color: #fff;
  background: linear-gradient(135deg, var(--fr-blue), var(--fr-blue-2));
  border-color: transparent;
  box-shadow: 0 14px 32px rgba(21, 87, 183, .24);
}
.fr-funnel .btn.primary:hover,
.fr-funnel .btn.primary.big:hover {
  background: linear-gradient(135deg, #0c468f, var(--fr-blue));
  box-shadow: 0 18px 38px rgba(21, 87, 183, .3);
}

.fr-funnel .field input:focus,
.fr-funnel .field textarea:focus,
.fr-funnel .field select:focus {
  border-color: var(--fr-blue);
  box-shadow: 0 0 0 4px rgba(21, 87, 183, .1);
}

/* ============================================================
   CHROME PARTAGÉ — header + footer identiques à la home
   (bloc identique dans mybetty-us-funnel.css, variables --fnl-*)
   ============================================================ */
.site-header {
  position: sticky;
  top: 4px;
  z-index: 80;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 78px;
  padding: 0 clamp(24px, 4vw, 70px);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--fnl-line);
  backdrop-filter: blur(16px);
}
.site-header .brand {
  position: relative;
  color: var(--fnl-nav);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .17em;
  line-height: 1;
  text-decoration: none;
}
.site-header .brand::after {
  position: absolute;
  left: 0;
  bottom: -29px;
  width: 72px;
  height: 4px;
  background: var(--fnl-red);
  content: "";
}
.brand span { color: var(--fnl-red); letter-spacing: 0; }
.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 2.7vw, 43px);
}
.desktop-nav a, .header-link {
  color: var(--fnl-nav);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s;
}
.desktop-nav a:hover, .header-link:hover { color: var(--fnl-red); }
.header-actions { display: flex; align-items: center; gap: 21px; }
.lang-link { display: flex; align-items: center; gap: 7px; }
.lang-link img { width: 23px; border-radius: 2px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 43px; padding: 0 20px; font-size: 12px; }
.button-primary { color: #fff; background: var(--fnl-btn); box-shadow: var(--fnl-btn-shadow); }
.button-primary:hover { background: var(--fnl-btn-hover); }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
  padding: 58px clamp(24px, 6vw, 96px) 32px;
  background: #fff;
  border-top: 1px solid var(--fnl-line);
  text-align: left;
}
.site-footer .brand {
  position: relative;
  color: var(--fnl-nav);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .17em;
  text-decoration: none;
}
.site-footer .brand span { color: var(--fnl-red); }
.site-footer .brand::after { display: none; }
.site-footer > p { grid-column: 1; margin: 0; color: var(--fnl-slate); font-size: 13px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; grid-column: 2; grid-row: 1 / span 2; }
.site-footer nav a { color: var(--fnl-slate); font-size: 12px; text-decoration: none; }
.site-footer nav a:hover { color: var(--fnl-red); }
.site-footer > small { grid-column: 1 / -1; padding-top: 22px; color: var(--fnl-muted); border-top: 1px solid var(--fnl-line); }
.site-footer > small a { color: inherit; }

@media (max-width: 820px) {
  .site-header { grid-template-columns: auto auto; }
  .desktop-nav { display: none; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { grid-column: 1; grid-row: auto; }
}
