
/* ============================================================
   PAGE DEVENIR FRANCHISÉ — Ma Literie Française
   Même ADN que les pages conseils (palette / typo / rythme).
   Namespace : fr-
   ============================================================ */

.fr-page {
  max-width: 100%;
  overflow: hidden;
}

/* ============================================================
   HERO
   ============================================================ */
.fr-hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 88% -10%, rgba(48,101,175,.34), transparent 60%),
    radial-gradient(700px 460px at 12% 120%, rgba(229,26,38,.20), transparent 55%),
    linear-gradient(125deg, var(--navy-800, #1a242b) 0%, var(--navy, #212f37) 55%, var(--navy-700, #2b3a44) 100%);
}
.fr-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 70% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 70% 40%, #000, transparent 75%);
}
.fr-hero__tricolour {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #002395 0 33.333%, #fff 33.333% 66.666%, #ed2939 66.666% 100%);
  z-index: 3;
}
.fr-hero__img-wrap { position: absolute; inset: 0; }
.fr-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: .32;
}
.fr-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,15,22,.55) 0%, rgba(10,15,22,.15) 60%, transparent 100%);
}
.fr-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 min(8vw, 80px);
  max-width: 720px;
}
.fr-hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.fr-hero__eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--red, #e51a26);
  display: inline-block;
}
.fr-hero__title {
  font-family: var(--ff-display, 'Fraunces', serif);
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 22px;
}
.fr-hero__desc {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,.78);
  margin: 0 0 32px;
  max-width: 540px;
}

.fr-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 4px;
}
.fr-hero__actions .fr-btn {
  font-size: 13.5px;
  padding: 14px 22px;
}

/* ---- BUTTONS ---- */
.fr-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  padding: 15px 28px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  color: #fff !important;
  transition: transform .25s var(--ease-out, cubic-bezier(.16,1,.3,1)), box-shadow .25s, background .2s, color .2s;
  font-family: inherit;
  line-height: 1;
}
.fr-btn--primary {
  background: var(--red, #e51a26);
  color: #fff !important;
  box-shadow: 0 10px 26px rgba(229,26,38,.28);
}
.fr-btn--primary:hover {
  background: var(--red-700, #c0141f);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(229,26,38,.34);
}
.fr-btn--ghost {
  background: rgba(255,255,255,.12);
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,.55);
  backdrop-filter: blur(4px);
}
.fr-btn--ghost:hover {
  background: #fff;
  color: var(--navy, #212f37) !important;
  border-color: #fff;
  transform: translateY(-2px);
}
.fr-btn--navy {
  background: var(--navy, #212f37);
  color: #fff !important;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(20,25,30,.05), 0 4px 14px rgba(20,25,30,.04));
}
.fr-btn--navy:hover {
  background: var(--navy-800, #1a242b);
  color: #fff !important;
  transform: translateY(-2px);
}
.fr-btn--block { display: flex; width: 100%; justify-content: center; }
.fr-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ============================================================
   BODY CONTAINER
   ============================================================ */
.fr-body {
  max-width: min(1140px, calc(100% - 64px));
  margin: 0 auto;
  padding: 72px 0 0;
}

/* ---- FULL-WIDTH IMAGE BANNER (full-bleed break) ---- */
.fr-banner {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  height: 360px;
  overflow: hidden;
  margin-bottom: 84px;
}
.fr-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.fr-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,15,22,.25) 0%, rgba(10,15,22,.55) 100%);
}
.fr-banner__caption {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 min(8vw, 80px) 36px;
  max-width: 1180px;
  margin: 0 auto;
}
.fr-banner__eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin: 0 0 8px;
}
.fr-banner__title {
  font-family: var(--ff-display, 'Fraunces', serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  color: #fff;
  margin: 0;
  letter-spacing: -.01em;
  max-width: 640px;
  line-height: 1.25;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.fr-section { margin-bottom: 84px; }
.fr-section__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 18px;
}
.fr-section__num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--red, #e51a26);
  font-variant-numeric: tabular-nums;
}
.fr-section__title {
  font-family: var(--ff-display, 'Fraunces', serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--navy, #212f37);
  margin: 0;
  line-height: 1.15;
}
.fr-section__lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft, #3a4049);
  margin: 0 0 8px;
  max-width: 760px;
}

/* ============================================================
   BLOC PROMESSE
   ============================================================ */
.fr-promise {
  background: var(--grey-50, #f5f5f5);
  border-radius: var(--rad-lg, 22px);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.fr-promise::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--red, #e51a26), var(--navy, #212f37));
}
.fr-promise__text {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft, #3a4049);
  margin: 0 0 18px;
}
.fr-promise__text:last-child {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--navy, #212f37);
}

/* ============================================================
   BLOC 3 BÉNÉFICES
   ============================================================ */
.fr-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 40px;
  max-width: 920px;
}
.fr-benefit {
  background: #fff;
  border: 1px solid var(--line, #e9e5dc);
  border-radius: var(--rad-lg, 22px);
  padding: 34px 28px 30px;
  position: relative;
  transition: transform .3s var(--ease-out, cubic-bezier(.16,1,.3,1)), box-shadow .3s;
}
.fr-benefit:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md, 0 6px 18px rgba(20,25,30,.08), 0 24px 48px rgba(20,25,30,.06));
}
.fr-benefit__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy, #212f37);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.fr-benefit__icon svg { width: 24px; height: 24px; }
.fr-benefit__kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red, #e51a26);
  margin: 0 0 6px;
}
.fr-benefit__title {
  font-family: var(--ff-display, 'Fraunces', serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy, #212f37);
  margin: 0 0 14px;
  line-height: 1.2;
}
.fr-benefit__text {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft, #3a4049);
  margin: 0;
}

/* ============================================================
   BLOC BROCHURE (bandeau + mini-formulaire)
   ============================================================ */
.fr-brochure {
  background: var(--navy, #212f37);
  border-radius: var(--rad-lg, 22px);
  padding: 44px 48px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.fr-brochure::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(229,26,38,.14);
}
.fr-brochure__kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin: 0 0 10px;
}
.fr-brochure__title {
  font-family: var(--ff-display, 'Fraunces', serif);
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.2;
}
.fr-brochure__text {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255,255,255,.72);
  margin: 0;
}
.fr-brochure__form { display: flex; flex-direction: column; gap: 12px; }
.fr-brochure__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fr-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fr-field > label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.fr-field > input,
.fr-field > textarea,
.fr-field > select {
  font-family: inherit;
  font-size: 15px;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: #fff;
  outline: none;
  transition: border-color .2s, background .2s;
  width: 100%;
}
.fr-field > input::placeholder,
.fr-field > textarea::placeholder { color: rgba(255,255,255,.45); }
.fr-field > input:focus,
.fr-field > textarea:focus,
.fr-field > select:focus {
  border-color: #fff;
  background: rgba(255,255,255,.14);
}
.fr-field > select option { color: #1a1f24; }

/* ============================================================
   BLOC PROFIL / QUALIFICATION
   ============================================================ */
.fr-profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 40px;
}
.fr-profile__intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft, #3a4049);
  margin: 0 0 28px;
}
.fr-profile__intro strong { color: var(--navy, #212f37); }
.fr-profile__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fr-profile__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft, #3a4049);
}
.fr-profile__list li::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--navy, #212f37);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 11l3.5 3.5L17 6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  margin-top: 1px;
}
.fr-profile__media {
  border-radius: var(--rad-lg, 22px);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.fr-profile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease-out, cubic-bezier(.16,1,.3,1));
}
.fr-profile__media:hover img { transform: scale(1.04); }

/* ============================================================
   BLOC FORMULAIRE PRINCIPAL
   ============================================================ */
.fr-contact {
  background: var(--grey-50, #f5f5f5);
  border-radius: var(--rad-xl, 32px);
  padding: 56px 56px 60px;
}
.fr-contact__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.fr-contact__intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft, #3a4049);
  margin: 0 0 24px;
}
.fr-contact__intro strong { color: var(--navy, #212f37); }
.fr-contact__point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft, #3a4049);
  margin-bottom: 14px;
}
.fr-contact__point svg { width: 20px; height: 20px; color: var(--red, #e51a26); flex-shrink: 0; margin-top: 1px; }
.fr-contact__form { display: flex; flex-direction: column; gap: 16px; }
.fr-contact__form .fr-field > label { color: var(--navy, #212f37); }
.fr-contact__form .fr-field > input,
.fr-contact__form .fr-field > textarea,
.fr-contact__form .fr-field > select {
  border: 1.5px solid var(--line, #e9e5dc);
  background: #fff;
  color: var(--ink, #1a1f24);
}
.fr-contact__form .fr-field > input:focus,
.fr-contact__form .fr-field > textarea:focus,
.fr-contact__form .fr-field > select:focus {
  border-color: var(--navy, #212f37);
  background: #fff;
}
.fr-contact__form .fr-field > input::placeholder,
.fr-contact__form .fr-field > textarea::placeholder { color: var(--muted-2, #b7bcc2); }
.fr-contact__form .fr-field > select option { color: #1a1f24; }
.fr-contact__grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fr-contact__textarea textarea { resize: vertical; min-height: 92px; }
.fr-form-note {
  font-size: 12.5px;
  color: var(--muted, #7c8088);
  margin: 4px 0 0;
  text-align: center;
  line-height: 1.5;
}
.fr-required { color: var(--red, #e51a26); }

/* ---- Success / error messages ---- */
.fr-msg {
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 4px;
}
.fr-msg--ok {
  background: #e8f5e9;
  border: 1px solid #bfe6c6;
  color: #1b5e20;
}
.fr-msg--err {
  background: #fdecea;
  border: 1px solid #f5c6c8;
  color: #b71c1c;
}

/* ============================================================
   BLOC RÉASSURANCE FINALE (dark, full-bleed)
   ============================================================ */
.fr-reassure {
  background: var(--navy, #212f37);
  border-radius: var(--rad-xl, 32px);
  padding: 60px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.fr-reassure::before,
.fr-reassure::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}
.fr-reassure::before {
  width: 320px; height: 320px;
  background: rgba(48,101,175,.16);
  top: -140px; left: -80px;
}
.fr-reassure::after {
  width: 260px; height: 260px;
  background: rgba(229,26,38,.12);
  bottom: -120px; right: -60px;
}
.fr-reassure__text {
  position: relative;
  z-index: 2;
  font-family: var(--ff-display, 'Fraunces', serif);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255,255,255,.9);
  margin: 0 auto;
  max-width: 720px;
  letter-spacing: -.01em;
}
.fr-reassure__text em {
  font-style: italic;
  color: #fff;
}

/* ============================================================
   TRICOLOUR RULE (signature française)
   ============================================================ */
.fr-tricolour {
  height: 4px;
  width: 64px;
  border-radius: 4px;
  background: linear-gradient(90deg, #002395 0 33.333%, #fff 33.333% 66.666%, #ed2939 66.666% 100%);
  margin: 0 auto 26px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .fr-benefits { grid-template-columns: 1fr; }
  .fr-brochure { grid-template-columns: 1fr; gap: 28px; padding: 36px 32px; }
  .fr-profile { grid-template-columns: 1fr; gap: 32px; }
  .fr-contact { padding: 40px 32px; }
  .fr-contact__inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .fr-hero { height: 460px; }
  .fr-hero__content { padding: 0 24px; }
  .fr-hero__desc { font-size: 16px; }
  .fr-body { max-width: calc(100% - 40px); padding: 48px 0 0; }
  .fr-section { margin-bottom: 56px; }
  .fr-banner { height: 240px; margin-bottom: 56px; }
  .fr-banner__caption { padding: 0 24px 24px; }
  .fr-promise { padding: 32px 26px; }
  .fr-brochure__row { grid-template-columns: 1fr; }
  .fr-contact__grid2 { grid-template-columns: 1fr; }
  .fr-reassure { padding: 44px 28px; }
  .fr-hero__actions { display: flex; flex-direction: column; }
  .fr-hero__actions .fr-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   FULL-WIDTH TREATMENT — keyed off cms-id-21 body class
   (même mécanisme + spécificité que les pages conseils)
   ============================================================ */
html body.cms-id-21 #main,
html body.cms-id-21 #content-wrapper,
html body.cms-id-21 #inner-wrapper.container,
body:is(.cms-id-21) #main,
body:is(.cms-id-21) #content-wrapper,
body:is(.cms-id-21) #inner-wrapper.container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.cms-id-21 .page-header { display: none !important; }
body.cms-id-21 #content-wrapper { padding-top: 0 !important; }
body.cms-id-21 #content,
body.cms-id-21 .page-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}
/* Re-constrain the body content to a readable width (centré) */
body.cms-id-21 .fr-body {
  max-width: min(1140px, calc(100% - 64px)) !important;
  margin: 0 auto !important;
  padding: 72px 0 88px !important;
}
/* Full-bleed reassurance + banner inside full-width #main */
body.cms-id-21 .fr-reassure {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  border-radius: 0 !important;
  padding: 80px min(8vw, 80px) !important;
}
/* Hide the empty page-header that the theme emits */
body.cms-id-21 header.page-header:first-of-type { display: none !important; }
.page-cms-21 { padding: 0 !important; max-width: 100% !important; width: 100% !important; }
