/* ═══════════════════════════════════════════════════════════════════════════
   CRÉDIT AGRICOLE - LANDING PAGE ASSURANCE AUTO
   Styles CSS - Production Ready
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── VARIABLES COULEURS ─── */
:root {
  --g: #00664b;
  --gm: #008c65;
  --gl: #e6f4f0;
  --tl: #008b92;
  --tll: #d9f0f1;
  --rd: #e30613;
  --dk: #1a2520;
  --tx: #2a3c34;
  --mt: #5a7068;
  --br: #d3e6de;
  --wh: #ffffff;
  --of: #f5f9f7;
}

/* ─── RESET GLOBAL ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', system-ui, sans-serif;
  background: #f2f5f3;
  color: var(--dk);
  margin: 0;
  line-height: 1.6;
}

/* ─── PAGE GRID ─── */
.pg {
  display: grid;
  grid-template-columns: 500px 1fr;
  min-height: 100vh;
  max-width: 1280px;
  margin: 0 auto;
  background: var(--wh);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
}

/* ─── LEFT PANEL ─── */
.lp {
  display: flex;
  flex-direction: column;
  background: var(--wh);
  border-right: 1px solid var(--br);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

/* ─── LOGO BAR ─── */
.logo-bar {
  background: var(--wh);
  border-bottom: 2px solid var(--g);
  padding: 16px 24px;
  display: flex;
  align-items: center;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-wrap svg {
  width: 48px;
  height: 48px;
}

.logo-lbl {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--g);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.4;
}

.logo-lbl span {
  display: block;
  font-weight: 500;
  color: var(--mt);
  text-transform: none;
  font-size: 0.62rem;
  letter-spacing: 0.01em;
}

/* ─── PROMO BADGE BAND ─── */
.promo-band {
  background: var(--g);
  padding: 18px 24px 18px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.promo-band::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.seal {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  background: var(--rd);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-7deg);
  box-shadow: 0 4px 18px rgba(227, 6, 19, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.22);
}

.seal-n {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 0.85;
}

.seal-t {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.56rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.3;
  margin-top: 3px;
}

.seal-s {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.52rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
}

.promo-copy {
  color: #fff;
}

.promo-copy .pbadge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 7px;
}

.promo-copy h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin-bottom: 5px;
}

.promo-copy p {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.promo-copy .mention {
  font-size: 0.68rem;
  font-weight: 400;
  opacity: 0.65;
  margin-top: 5px;
  font-style: italic;
}

/* ─── VISUEL "MON ASSURANCE AUTOMOBILE" ─── */
.vac-block {
  padding: 20px 18px 16px;
  background: var(--wh);
  flex-shrink: 0;
}

.vac-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f0f0f0;
  height: 180px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.vac-photo {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1580273916550-e323be2ae537?w=700&q=80') center / cover no-repeat;
}

.vac-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.85) 28%, rgba(255, 255, 255, 0.3) 55%, transparent 100%);
}

.vac-car-icon {
  position: absolute;
  top: 22px;
  left: 38%;
  width: 44px;
  height: 44px;
  background: var(--tl);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vac-car-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: white;
  stroke-width: 1.8;
}

.vac-check {
  position: absolute;
  top: 14px;
  right: 22%;
  width: 40px;
  height: 40px;
}

.vac-check-bg {
  width: 40px;
  height: 40px;
  background: var(--tl);
  border-radius: 50% 50% 50% 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-45deg);
  box-shadow: 0 2px 10px rgba(0, 139, 146, 0.35);
}

.vac-check-bg svg {
  transform: rotate(45deg);
  width: 20px;
  height: 20px;
  fill: none;
  stroke: white;
  stroke-width: 3;
}

.vac-label1 {
  position: absolute;
  bottom: 44px;
  left: 12px;
  background: var(--tl);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: 5px;
  white-space: nowrap;
}

.vac-label2 {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--g);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: 5px;
  white-space: nowrap;
}

/* ─── STATS BAND ─── */
.stat-band {
  background: var(--of);
  border-top: 1px solid var(--br);
  border-bottom: 1px solid var(--br);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 10px;
  flex-shrink: 0;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--g);
  line-height: 1;
}

.stat-lbl {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.57rem;
  font-weight: 600;
  color: var(--mt);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 2px;
}

.stat-sep {
  width: 1px;
  background: var(--br);
  height: 28px;
}

/* ─── FEATURES GRID ─── */
.feat-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.feat {
  background: var(--wh);
  border: 1px solid var(--br);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: 0.2s;
}

.feat:hover {
  background: var(--gl);
}

.feat-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--tll);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feat-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--tl);
  stroke-width: 1.8;
}

.feat-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--dk);
  line-height: 1.3;
}

.feat-desc {
  font-size: 0.71rem;
  color: var(--mt);
  line-height: 1.5;
}

/* ─── RIGHT PANEL ─── */
.rp {
  padding: 36px 44px 48px;
  background: var(--wh);
  overflow-y: auto;
}

.ph1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--dk);
  line-height: 1.2;
  margin-bottom: 10px;
}

.pint {
  font-size: 0.92rem;
  color: var(--mt);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 600px;
}

/* ─── FORM CARD ─── */
.fc {
  border: 1.5px solid var(--br);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: 0 4px 24px rgba(0, 102, 75, 0.08);
}

.fc-hdr {
  background: var(--g);
  padding: 15px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.fc-hdr svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  flex-shrink: 0;
}

.fc-hdr strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.fc-hdr span {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.82);
}

.fc-wrap {
  position: relative;
  min-height: 500px;
}

.fc-load {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  z-index: 2;
  transition: opacity 0.4s;
}

.fc-load.gone {
  opacity: 0;
  pointer-events: none;
}

.spin {
  width: 32px;
  height: 32px;
  border: 3px solid #cde8dc;
  border-top-color: var(--g);
  border-radius: 50%;
  animation: sp 0.75s linear infinite;
}

@keyframes sp {
  to {
    transform: rotate(360deg);
  }
}

.fc-load p {
  font-size: 0.8rem;
  color: var(--mt);
}

#ca-form {
  display: block;
  width: 100%;
  min-height: 500px;
  border: none;
}

.fc-ft {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  background: var(--gl);
  border-top: 1px solid var(--br);
  font-size: 0.72rem;
  color: var(--mt);
}

.fc-ft svg {
  width: 13px;
  height: 13px;
  stroke: var(--g);
  fill: none;
  stroke-width: 2.5;
  flex-shrink: 0;
}

/* ─── CHECKLIST ─── */
.sec-h {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dk);
  margin: 0 0 6px;
}

.sec-p {
  font-size: 0.88rem;
  color: var(--mt);
  line-height: 1.65;
  margin-bottom: 18px;
}

.ckl {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 24px;
}

.ck {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--of);
  border-radius: 10px;
  border: 1px solid var(--br);
  transition: 0.15s;
}

.ck:hover {
  background: var(--gl);
  border-color: var(--g);
}

.ck-ic {
  width: 34px;
  height: 34px;
  background: var(--tll);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ck-ic svg {
  width: 17px;
  height: 17px;
  stroke: var(--tl);
  fill: none;
  stroke-width: 2;
}

.ck-tx {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--dk);
  line-height: 1.3;
}

/* ─── BON À SAVOIR ─── */
.bas {
  border: 1.5px solid var(--tl);
  border-radius: 10px;
  padding: 15px 18px;
  margin-bottom: 28px;
}

.bas-t {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dk);
  margin-bottom: 6px;
}

.bas-t svg {
  width: 16px;
  height: 16px;
  stroke: var(--tl);
  fill: none;
  stroke-width: 2;
}

.bas p {
  font-size: 0.84rem;
  color: var(--tx);
  line-height: 1.6;
}

.bas strong {
  font-weight: 700;
}

/* ─── LIEN CONDITIONS ─── */
.conditions-link {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  color: var(--mt);
  margin-top: 28px;
  line-height: 1.6;
  padding-top: 20px;
  border-top: 1px solid var(--br);
}

.conditions-link a {
  color: var(--g);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-style: italic;
  transition: color 0.2s;
}

.conditions-link a:hover {
  color: var(--gm);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .pg {
    grid-template-columns: 1fr;
  }

  .lp {
    display: none;
  }

  .rp {
    padding: 24px 20px;
  }
}

@media (max-width: 640px) {
  .rp {
    padding: 16px 12px;
  }

  .ph1 {
    font-size: 1.2rem;
  }

  .pint {
    font-size: 0.85rem;
  }

  .fc-wrap {
    min-height: 400px;
  }
}
