/* ============================================================
   JE RESILIE MA MUTUELLE — CSS Global
   Palette : #2176FF (bleu action), #112337 (texte foncé),
             #F5F8FF (fond clair), #FFFFFF, #E8EFF8 (séparateur)
   Police : Inter (Google Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #2176FF;
  --blue-dark: #1558CC;
  --blue-light: #EEF4FF;
  --dark: #112337;
  --text: #3D4F61;
  --muted: #6B7C8D;
  --bg: #F5F8FF;
  --white: #FFFFFF;
  --border: #D6E4F5;
  --green: #1DB87E;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(33,118,255,0.10);
  --shadow-sm: 0 2px 8px rgba(17,35,55,0.08);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; font-size: 16px; }

/* ---- LAYOUT ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ---- HEADER ---- */
.header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.header__logo img { height: 44px; width: auto; }
.header__nav { display: flex; align-items: center; gap: 28px; }
.header__nav a { text-decoration: none; color: var(--dark); font-weight: 500; font-size: 15px; transition: color .2s; }
.header__nav a:hover { color: var(--blue); }
.header__phone { display: flex; align-items: center; gap: 8px; background: var(--blue-light); color: var(--blue); font-weight: 700; font-size: 15px; padding: 8px 18px; border-radius: 50px; text-decoration: none; transition: background .2s; }
.header__phone:hover { background: var(--blue); color: var(--white); }
.header__phone svg { width: 16px; height: 16px; flex-shrink: 0; }

@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__phone span.label { display: none; }
  .header__phone { padding: 8px 14px; }
}

/* ---- HERO ---- */
.hero { background: linear-gradient(135deg, #EEF4FF 0%, #F5F8FF 60%, #FFFFFF 100%); padding: 64px 0 56px; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero__badge { display: inline-flex; align-items: center; gap: 6px; background: var(--green); color: var(--white); font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 50px; margin-bottom: 20px; }
.hero__badge::before { content: '✓'; }
.hero__title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; color: var(--dark); line-height: 1.2; margin-bottom: 16px; }
.hero__title span { color: var(--blue); }
.hero__text { font-size: 17px; color: var(--text); margin-bottom: 24px; line-height: 1.65; }
.hero__checks { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.hero__checks li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--dark); font-weight: 500; }
.hero__checks li::before { content: ''; width: 20px; height: 20px; background: var(--green); border-radius: 50%; flex-shrink: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 10l3.5 3.5L15 7' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: cover; }
.hero__social-proof { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.hero__social-proof img { height: 40px; }
.hero__social-proof p { font-size: 13px; color: var(--muted); font-weight: 500; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---- FORM CARD ---- */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 32px 28px; box-shadow: var(--shadow); }
.form-card__title { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.form-card__subtitle { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--dark); }
.form-group input { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 15px; color: var(--dark); background: #FAFCFF; transition: border-color .2s, box-shadow .2s; outline: none; }
.form-group input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(33,118,255,0.12); }
.form-group input.error { border-color: #E53935; }
.form-error { font-size: 12px; color: #E53935; display: none; }
.form-group.has-error .form-error { display: block; }
.form-group.has-error input { border-color: #E53935; }
.form-consent { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; margin-top: 4px; }
.form-consent input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex-shrink: 0; cursor: pointer; }
.form-consent label { font-size: 13px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.form-consent label a { color: var(--blue); }
.btn-submit { width: 100%; padding: 15px; background: var(--blue); color: var(--white); border: none; border-radius: 10px; font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 700; cursor: pointer; transition: background .2s, transform .1s; letter-spacing: -0.2px; }
.btn-submit:hover { background: var(--blue-dark); }
.btn-submit:active { transform: scale(0.99); }
.btn-submit:disabled { background: #A0B4C8; cursor: not-allowed; }
.form-secure { text-align: center; font-size: 12px; color: var(--muted); margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.form-secure::before { content: '🔒'; }

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; }
}

/* ---- HOW IT WORKS ---- */
.how { padding: 72px 0; background: var(--white); }
.section-title { font-size: clamp(22px, 3.5vw, 32px); font-weight: 800; color: var(--dark); text-align: center; margin-bottom: 8px; }
.section-title span { color: var(--blue); }
.section-sub { text-align: center; color: var(--muted); font-size: 16px; margin-bottom: 48px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { text-align: center; padding: 28px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.step__icon { width: 56px; height: 56px; margin: 0 auto 16px; }
.step__num { width: 28px; height: 28px; background: var(--blue); color: var(--white); border-radius: 50%; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.step__text { font-size: 14px; color: var(--text); line-height: 1.5; font-weight: 500; }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---- WHY SECTION ---- */
.why { padding: 72px 0; background: var(--bg); }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.why__img { width: 100%; border-radius: 16px; }
.why__title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.why__title span { color: var(--blue); }
.why__text { color: var(--text); line-height: 1.7; margin-bottom: 20px; }
.why__text strong { color: var(--dark); }
.btn-cta { display: inline-block; padding: 14px 28px; background: var(--blue); color: var(--white); border-radius: 10px; font-weight: 700; font-size: 16px; text-decoration: none; transition: background .2s; }
.btn-cta:hover { background: var(--blue-dark); }

@media (max-width: 860px) {
  .why__grid { grid-template-columns: 1fr; }
  .why__img { display: none; }
}

/* ---- ABOUT ---- */
.about { padding: 72px 0; background: var(--white); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__img { width: 100%; border-radius: 16px; }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__img { display: none; }
}

/* ---- FOOTER ---- */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 48px 0 24px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__brand img { height: 38px; filter: brightness(0) invert(1); margin-bottom: 12px; }
.footer__brand p { font-size: 13px; line-height: 1.6; }
.footer__col h4 { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer__col a { display: block; font-size: 14px; color: rgba(255,255,255,0.7); text-decoration: none; margin-bottom: 8px; transition: color .2s; }
.footer__col a:hover { color: var(--white); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.footer__bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }

@media (max-width: 700px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ---- CONFIRMATION PAGE ---- */
.confirm-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 60px 24px; background: var(--bg); }
.confirm-card { background: var(--white); border-radius: 16px; padding: 48px 40px; max-width: 600px; width: 100%; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border); }
.confirm-icon { width: 72px; height: 72px; background: #E8FBF3; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.confirm-icon svg { width: 36px; height: 36px; color: var(--green); }
.confirm-card h1 { font-size: 26px; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.confirm-card p { color: var(--text); line-height: 1.7; margin-bottom: 16px; }
.confirm-next { background: var(--bg); border-radius: var(--radius); padding: 20px 24px; margin-top: 24px; text-align: left; }
.confirm-next h3 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.confirm-next ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.confirm-next ul li { font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.confirm-next ul li::before { content: '→'; color: var(--blue); font-weight: 700; }

/* ---- PAGE LEGAL ---- */
.legal-content { padding: 60px 0 80px; }
.legal-content h1 { font-size: 32px; font-weight: 800; color: var(--dark); margin-bottom: 32px; }
.legal-content h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin: 28px 0 10px; }
.legal-content p { color: var(--text); line-height: 1.75; margin-bottom: 12px; }
.legal-content ul { padding-left: 20px; margin-bottom: 16px; }
.legal-content ul li { color: var(--text); line-height: 1.7; margin-bottom: 6px; }
.legal-content a { color: var(--blue); }

/* ---- LOI CHATEL SPECIFIC ---- */
.loi-hero { background: linear-gradient(135deg, #EEF4FF 0%, #F0F7FF 100%); }
.loi-info { background: #FFF8E7; border: 1px solid #FFD966; border-radius: var(--radius); padding: 20px 24px; margin-top: 32px; }
.loi-info p { font-size: 14px; color: #7A5A00; line-height: 1.6; margin: 0; }
.loi-info strong { color: #5A3E00; }

/* ---- UTILITIES ---- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
