/* ══════════════════════════════════════
   Landing Page Campagne — Cofran
   Scopé sous .lp-campagne
   ══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400&display=swap');

/* ── Reset scopé ── */
.lp-campagne,
.lp-campagne *,
.lp-campagne *::before,
.lp-campagne *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.lp-campagne {
  font-family: 'Poppins', sans-serif;
  background: #002a6a;
  color: #1a1e2e;
  overflow-x: hidden;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --blue: #003B8E;
  --blue-dark: #002a6a;
  --blue-light: #0055CC;
  --red: #E63027;
  --white: #ffffff;
  --gray-light: #f4f6fa;
  --gray: #e0e4ec;
  --text: #1a1e2e;
  --text-muted: #5a6278;
}

/* Override WP defaults */
.lp-campagne #site-content {
  padding: 0;
  margin: 0;
}

.lp-campagne img {
  max-width: 100%;
  height: auto;
  border: none;
}

/* ── LP HEADER ── */
.lp-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px clamp(16px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lp-header img {
  height: 36px;
  width: auto;
}

.lp-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lp-header-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ── WPML Language Switcher — même logique que le header du site ── */
.lp-lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
}

/* Reset container WPML */
.lp-lang-switcher .wpml-ls-statics-shortcode_actions {
  width: fit-content !important;
}

.lp-lang-switcher .wpml-ls-statics-shortcode_actions > ul {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.lp-lang-switcher .wpml-ls-statics-shortcode_actions > ul > li {
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  position: relative !important;
}

/* Drapeau dans un rond semi-transparent */
.lp-lang-switcher .wpml-ls-statics-shortcode_actions .wpml-ls-flag {
  width: 28px !important;
  height: 20px !important;
  min-width: 28px !important;
  min-height: 20px !important;
  padding: 0 !important;
  object-fit: cover !important;
  border-radius: 3px !important;
  background-color: rgba(255,255,255,0.15) !important;
  box-shadow: 0 0 10px 0 rgba(0,0,0,0.2) !important;
  cursor: pointer !important;
  display: block !important;
  transition: background-color 0.2s ease !important;
}

.lp-lang-switcher .wpml-ls-statics-shortcode_actions .wpml-ls-flag:hover {
  background-color: rgba(255,255,255,0.2) !important;
}

/* Liens — reset complet */
.lp-lang-switcher .wpml-ls-statics-shortcode_actions a {
  padding: 0 !important;
  border: none !important;
  width: fit-content !important;
  background: none !important;
  text-decoration: none !important;
}

.lp-lang-switcher .wpml-ls-statics-shortcode_actions a:focus,
.lp-lang-switcher .wpml-ls-statics-shortcode_actions a:hover {
  background: none !important;
}

/* Tuer le chevron */
.lp-lang-switcher .wpml-ls-statics-shortcode_actions a::after {
  display: none !important;
}

/* Cacher le texte, garder que le drapeau */
.lp-lang-switcher .wpml-ls-statics-shortcode_actions .wpml-ls-native,
.lp-lang-switcher .wpml-ls-statics-shortcode_actions .wpml-ls-display {
  display: none !important;
}

/* Sous-menu dropdown */
.lp-lang-switcher .wpml-ls-statics-shortcode_actions ul.js-wpml-ls-sub-menu,
.lp-lang-switcher .wpml-ls-statics-shortcode_actions .wpml-ls-sub-menu {
  display: flex !important;
  flex-direction: column !important;
  position: absolute !important;
  top: calc(100% + 4px) !important;
  right: 0 !important;
  left: auto !important;
  background: rgba(0, 32, 96, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important;
  padding: 4px !important;
  z-index: 200 !important;
}

.lp-lang-switcher .wpml-ls-statics-shortcode_actions .wpml-ls-sub-menu li {
  padding: 0 !important;
  height: fit-content !important;
  width: 100% !important;
  background: none !important;
}

.lp-lang-switcher .wpml-ls-statics-shortcode_actions .wpml-ls-sub-menu a {
  width: 100% !important;
}

.lp-lang-switcher .wpml-ls-statics-shortcode_actions .wpml-ls-sub-menu .wpml-ls-flag {
  width: 28px !important;
  height: 20px !important;
  min-width: 28px !important;
  min-height: 20px !important;
  padding: 0 !important;
  object-fit: cover !important;
  border-radius: 3px !important;
  background-color: rgba(255,255,255,0.08) !important;
}

.lp-lang-switcher .wpml-ls-statics-shortcode_actions .wpml-ls-sub-menu .wpml-ls-flag:hover {
  background-color: rgba(255,255,255,0.18) !important;
}

/* ── HERO ──
   Key fix: flex-direction: column so hero-inner stacks ABOVE trust-bar.
   On desktop, min-height: 100vh + justify-content: flex-end pins trust-bar
   at the bottom naturally without position: absolute.
   ────────────────────────────────────────── */
.lp-hero {
  min-height: 100vh;
  background: linear-gradient(115deg, #002060 0%, #003B8E 45%, #0059cc 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Big C decorative */
.lp-hero::before {
  content: 'C';
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Poppins', sans-serif;
  font-size: clamp(300px, 50vw, 720px);
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Diagonal separator */
.lp-hero::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 48%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.12) 30%, rgba(255,255,255,0.12) 70%, transparent);
  transform: rotate(6deg) scaleY(1.3);
  pointer-events: none;
}

.lp-hero-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px clamp(16px, 4vw, 56px) 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
}

/* ── FORM SIDE (left) ── */
.lp-form-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lp-form-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-form-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.lp-form-card {
  background: rgba(255,255,255,0.97);
  border-radius: 4px;
  padding: 36px clamp(16px, 3vw, 36px) 32px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

.lp-form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--red) 100%);
}

.lp-form-title {
  font-size: clamp(16px, 3.5vw, 22px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue-dark);
  margin-bottom: 6px;
  line-height: 1.15;
}

.lp-form-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 400;
  line-height: 1.5;
}

/* ── CF7 Form Styling ── */

/* Reset CF7 auto-generated <p> and <br> */
.lp-form-card .wpcf7-form p {
  margin: 0;
  padding: 0;
}

.lp-form-card .wpcf7-form > p > br {
  display: none;
}

.lp-form-card .wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  margin-top: 4px;
}

.lp-form-card .wpcf7-form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 4px;
  line-height: 1;
}

.lp-form-card .wpcf7-form input[type="text"],
.lp-form-card .wpcf7-form input[type="email"],
.lp-form-card .wpcf7-form input[type="tel"],
.lp-form-card .wpcf7-form select {
  width: 100%;
  height: 42px;
  border: 1.5px solid var(--gray);
  border-radius: 3px;
  padding: 0 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  margin: 0;
}

.lp-form-card .wpcf7-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23003B8E' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.lp-form-card .wpcf7-form input:focus,
.lp-form-card .wpcf7-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,59,142,0.1);
}

.lp-form-card .wpcf7-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lp-form-card .wpcf7-form .form-group {
  margin-bottom: 14px;
}

.lp-form-card .wpcf7-form input[type="submit"] {
  width: 100%;
  height: 50px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, transform 0.15s;
}

.lp-form-card .wpcf7-form input[type="submit"]:hover {
  background: #c2201a;
  transform: translateY(-1px);
}

.lp-form-card .wpcf7-form .wpcf7-response-output {
  margin: 12px 0 0 !important;
  padding: 10px 14px;
  font-size: 13px;
  border-radius: 3px;
}

.lp-form-card .wpcf7-form .wpcf7-not-valid-tip {
  font-size: 11px;
  color: var(--red);
  margin-top: 4px;
  display: block;
}

.lp-form-card .wpcf7-form .wpcf7-spinner {
  display: none;
}

.lp-form-legal {
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ── CONTENT SIDE (right) ── */
.lp-content-col {
  color: #fff;
  padding-left: 24px;
  min-width: 0;
}

.lp-content-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-content-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: rgba(255,255,255,0.4);
  flex-shrink: 0;
}

.lp-content-headline {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(24px, 3.2vw, 46px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  color: #fff;
  overflow-wrap: break-word;
  word-break: break-word;
}

.lp-content-headline em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.4);
}

.lp-content-headline span {
  color: var(--red);
}

.lp-content-lead {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
  max-width: 420px;
  margin-bottom: 36px;
  border-left: 2px solid rgba(255,255,255,0.15);
  padding-left: 18px;
}

/* ── Benefits ── */
.lp-benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.lp-benefit {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.lp-benefit-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lp-benefit-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.lp-benefit-text {
  min-width: 0;
}

.lp-benefit-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.lp-benefit-text p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.45;
  font-weight: 300;
}

/* ── Stats ── */
.lp-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}

@media (max-width: 480px) {
  .lp-stats-row {
    grid-template-columns: 1fr;
  }
}

.lp-stat {
  background: rgba(255,255,255,0.05);
  padding: 18px 16px;
  text-align: center;
}

.lp-stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.lp-stat-num sup {
  font-size: 16px;
  font-weight: 600;
  color: var(--red);
}

.lp-stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* ── Trust Bar ──
   Now in normal document flow inside the column flex layout.
   flex: 0 0 auto keeps it at natural height, mt-auto pushes it
   to the bottom when hero > 100vh doesn't apply.
   ────────────────────────────────────────── */
.lp-trust-bar {
  background: rgba(255,255,255,0.05);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px clamp(16px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  margin-top: auto;
  width: 100%;
}

.lp-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

.lp-trust-item img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.25;
}

.lp-trust-sep {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* ── Animations ── */
@keyframes lpFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lp-form-col    { animation: lpFadeUp 0.6s ease both; }
.lp-content-col { animation: lpFadeUp 0.7s 0.1s ease both; }
.lp-trust-bar   { animation: lpFadeUp 0.6s 0.2s ease both; }

/* ══════════════════════════════════════
   Responsive
   ══════════════════════════════════════ */

@media (max-width: 1100px) {
  .lp-hero-inner {
    gap: 36px;
  }

  .lp-content-col {
    padding-left: 12px;
  }

  .lp-trust-bar {
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .lp-hero {
    min-height: auto;
  }

  .lp-hero-inner {
    grid-template-columns: 1fr;
    padding-top: 90px;
    padding-bottom: 40px;
    gap: 40px;
  }

  .lp-hero::after {
    display: none;
  }

  .lp-content-col {
    padding-left: 0;
    order: -1;
  }

  .lp-content-lead {
    max-width: 100%;
  }

  .lp-trust-bar {
    gap: 16px;
  }

  .lp-trust-item {
    font-size: 11px;
  }

  .lp-form-card .wpcf7-form .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .lp-hero-inner {
    padding-top: 76px;
    padding-bottom: 32px;
    gap: 28px;
  }

  .lp-header img {
    height: 28px;
  }

  .lp-header-badge {
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .lp-form-card {
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .lp-form-subtitle {
    font-size: 12px;
    margin-bottom: 18px;
  }

  .lp-content-lead {
    font-size: 14px;
    margin-bottom: 28px;
    padding-left: 14px;
  }

  .lp-benefits {
    gap: 14px;
    margin-bottom: 28px;
  }

  .lp-benefit {
    gap: 12px;
  }

  .lp-benefit-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .lp-benefit-text strong {
    font-size: 13px;
  }

  .lp-benefit-text p {
    font-size: 12px;
  }

  .lp-stat-num {
    font-size: 24px;
  }

  .lp-trust-sep {
    display: none;
  }

  .lp-trust-item {
    font-size: 10px;
    gap: 6px;
  }

  .lp-form-card .wpcf7-form input[type="text"],
  .lp-form-card .wpcf7-form input[type="email"],
  .lp-form-card .wpcf7-form input[type="tel"],
  .lp-form-card .wpcf7-form select {
    height: 40px;
    font-size: 13px;
  }

  .lp-form-card .wpcf7-form input[type="submit"] {
    height: 46px;
    font-size: 13px;
    letter-spacing: 0.08em;
  }

  .lp-form-card .wpcf7-form .form-group {
    margin-bottom: 12px;
  }
}

@media (max-width: 380px) {
  .lp-header-badge {
    display: none;
  }

  .lp-hero-inner {
    padding-top: 64px;
    padding-bottom: 24px;
    gap: 24px;
  }

  .lp-form-card {
    padding-top: 22px;
    padding-bottom: 18px;
  }

  .lp-form-card .wpcf7-form label {
    font-size: 10px;
  }

  .lp-form-card .wpcf7-form input[type="text"],
  .lp-form-card .wpcf7-form input[type="email"],
  .lp-form-card .wpcf7-form input[type="tel"],
  .lp-form-card .wpcf7-form select {
    height: 38px;
    padding: 0 10px;
  }

  .lp-form-card .wpcf7-form input[type="submit"] {
    height: 42px;
    font-size: 12px;
  }

  .lp-form-card .wpcf7-form .form-group {
    margin-bottom: 10px;
  }

  .lp-trust-item {
    font-size: 9px;
    gap: 4px;
  }
}
