/* =====================================================================
   Formulaire avant-projet Google Ads — Agence Beecom'
   Charte reprise de la proposition commerciale (navy / dégradé / Poppins)
   ===================================================================== */

@font-face { font-family: 'Poppins'; font-weight: 300; font-style: normal; font-display: swap; src: url('../fonts/poppins-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/poppins-latin-700-normal.woff2') format('woff2'); }

:root {
  --navy: #0D1523;
  --navy-2: #182437;
  --ink: #1c2a38;
  --grey: #525d6b;
  --grey-2: #8a95a3;
  --line: #e6eaef;
  --bg-soft: #f7f8fa;
  --page: #eef0f3;
  --pink: #EA5B49;
  --red: #D82474;
  --orange: #F29159;
  --grad: linear-gradient(135deg, #F29159 0%, #D82474 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(13,21,35,.04), 0 10px 30px rgba(13,21,35,.06);
  --wrap: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Pictos */
.pic { width: 34px; height: 34px; display: block; flex-shrink: 0; }

/* ---------- Typo commune ---------- */
.sec-label {
  font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--pink); margin-bottom: 6px;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* =====================================================================
   HERO (repris de la couverture)
   ===================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff;
  padding: 44px 0 64px;
}
.hero .blob {
  position: absolute; border-radius: 50%; background: var(--grad); opacity: .14; pointer-events: none;
}
.hero .b1 { width: 520px; height: 520px; right: -160px; top: -220px; }
.hero .b2 { width: 260px; height: 260px; right: 18%; bottom: -170px; opacity: .09; }
.hero .wrap { position: relative; z-index: 1; }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 56px; }
.hero-top img.logo { height: 48px; width: auto; }
.hero-top .client-tag {
  font-size: 13px; font-weight: 500; color: #bfc9d4;
  border: 1px solid rgba(255,255,255,.18); border-radius: 100px; padding: 6px 16px;
}
.kicker {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: #fff; background: var(--grad); padding: 7px 20px; border-radius: 100px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.12; letter-spacing: -.6px; max-width: 760px; }
.hero h1 .t1 { font-weight: 500; display: block; }
.hero h1 .t2 { font-weight: 700; display: block; }
.hero p.lead { margin-top: 20px; font-size: 17px; font-weight: 300; color: #bfc9d4; max-width: 640px; }
.hero p.lead strong { color: #fff; font-weight: 500; }
.hero-meta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 13.5px; color: #8fa0b0; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; }

/* =====================================================================
   BARRE DE PROGRESSION / NAVIGATION
   ===================================================================== */
.stepbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.stepbar .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.stepbar ol { list-style: none; display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.stepbar ol::-webkit-scrollbar { display: none; }
.stepbar li a {
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  text-decoration: none; font-size: 13px; font-weight: 500; color: var(--grey);
  padding: 7px 12px; border-radius: 100px; transition: background .2s, color .2s;
}
.stepbar li a .n {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; background: var(--bg-soft); color: var(--grey); border: 1px solid var(--line);
}
.stepbar li a:hover { background: var(--bg-soft); color: var(--navy); }
.stepbar li a.active { background: var(--navy); color: #fff; }
.stepbar li a.active .n { background: rgba(255,255,255,.14); border-color: transparent; color: #fff; }
.stepbar li a.done .n { background: var(--grad); border-color: transparent; color: #fff; }
.stepbar li a .lbl { display: none; }
.stepbar li a.active .lbl { display: inline; }
@media (min-width: 1440px) { .stepbar li a .lbl { display: inline; } }
.progress { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.progress .track { width: 90px; height: 6px; border-radius: 100px; background: var(--line); overflow: hidden; }
.progress .bar { height: 100%; width: 0; background: var(--grad); border-radius: 100px; transition: width .4s ease; }

/* =====================================================================
   SECTIONS DU FORMULAIRE
   ===================================================================== */
main { padding: 40px 0 20px; }
.block {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px 44px 36px; margin-bottom: 24px;
}
.block-head { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.block-head .num {
  font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -1px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  min-width: 56px;
}
.block-head .txt { flex: 1; }
.block-head h2 { font-size: 26px; font-weight: 700; color: var(--navy); letter-spacing: -.4px; line-height: 1.2; }
.block-head .intro { color: var(--grey); font-weight: 400; font-size: 14.5px; margin-top: 8px; max-width: 720px; }
.block-head .intro strong { color: var(--ink); font-weight: 600; }
.block-head .pic { width: 42px; height: 42px; opacity: .95; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.field { grid-column: 1 / -1; min-width: 0; }
.field.half { grid-column: span 1; }

.flabel { display: block; font-size: 14.5px; font-weight: 600; color: var(--navy); margin-bottom: 4px; line-height: 1.4; }
.flabel .req { color: var(--red); margin-left: 2px; }
.fhelp { font-size: 13px; color: var(--grey-2); font-weight: 400; margin: -1px 0 10px; line-height: 1.5; }
.flabel + .ctrl, .flabel + .chips, .flabel + .repeat, .flabel + .drop { margin-top: 8px; }

/* Champs texte */
.ctrl { position: relative; }
.ctrl input, .ctrl select, .ctrl textarea, .repeat input, .other-input {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--bg-soft); border: 1.5px solid var(--bg-soft); border-radius: var(--radius-sm);
  padding: 12px 16px; outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.ctrl textarea { min-height: 104px; resize: vertical; line-height: 1.55; }
.ctrl input::placeholder, .ctrl textarea::placeholder, .repeat input::placeholder, .other-input::placeholder { color: #a7b0bc; font-weight: 300; }
.ctrl input:hover, .ctrl select:hover, .ctrl textarea:hover, .repeat input:hover, .other-input:hover { border-color: var(--line); }
.ctrl input:focus, .ctrl select:focus, .ctrl textarea:focus, .repeat input:focus, .other-input:focus {
  background: #fff; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(13,21,35,.06);
}
.ctrl select {
  cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23D82474' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.ctrl .suffix {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-weight: 600; color: var(--grey-2); pointer-events: none;
}
.ctrl.has-suffix input { padding-right: 42px; }
.ctrl input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }
.ctrl input[type=number] { -moz-appearance: textfield; }

/* Choix en pastilles (radio / checkbox) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 500; color: var(--ink);
  padding: 9px 18px 9px 14px; border-radius: 100px;
  background: #fff; border: 1.5px solid var(--line);
  transition: all .18s ease; line-height: 1.35;
}
.chip span::before {
  content: ''; width: 16px; height: 16px; flex-shrink: 0; border-radius: 5px;
  border: 1.5px solid #c5ccd5; background: #fff; transition: all .18s ease;
}
.chip input[type=radio] + span::before { border-radius: 50%; }
.chip:hover span { border-color: #c5ccd5; }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(216,36,116,.15); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:checked + span::before {
  border-color: transparent;
  background: var(--grad) ;
  box-shadow: inset 0 0 0 3px var(--navy);
}
.chip input[type=checkbox]:checked + span::before {
  box-shadow: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat,
    var(--grad);
}
.other-wrap { margin-top: 12px; display: none; }
.other-wrap.show { display: block; }

/* Répétition (concurrents) */
.repeat { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; counter-reset: rep; }
.repeat .ri { position: relative; }
.repeat .ri::before {
  counter-increment: rep; content: counter(rep);
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  font-size: 11px; font-weight: 600; color: var(--grey);
  display: flex; align-items: center; justify-content: center;
}
.repeat input { padding-left: 46px; }

/* Dépôt de fichiers */
.drop {
  position: relative; border: 1.5px dashed #c5ccd5; border-radius: var(--radius);
  background: var(--bg-soft); padding: 26px; text-align: center; transition: all .2s;
}
.drop.over { border-color: var(--red); background: #fdf4f7; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop .dz-title { font-weight: 600; color: var(--navy); font-size: 14.5px; }
.drop .dz-title u { text-decoration: none; border-bottom: 2px solid; border-image: var(--grad) 1; }
.drop .dz-sub { font-size: 12.5px; color: var(--grey-2); margin-top: 4px; }
.drop .pic { margin: 0 auto 10px; width: 30px; height: 30px; }
.files { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.files li {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 14px; font-size: 13.5px;
}
.files li .fn { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files li .fs { color: var(--grey-2); font-size: 12px; white-space: nowrap; }
.files li button { border: none; background: none; cursor: pointer; color: var(--grey-2); font-size: 18px; line-height: 1; padding: 2px 4px; }
.files li button:hover { color: var(--red); }

/* Erreurs */
.ferr { display: none; font-size: 13px; color: var(--red); font-weight: 500; margin-top: 8px; }
.field.invalid .ferr { display: block; }
.field.invalid .ctrl input, .field.invalid .ctrl select, .field.invalid .ctrl textarea { border-color: var(--red); background: #fff; }
.field.invalid .chip span { border-color: #f0b5cb; }
.field.invalid .drop { border-color: var(--red); }

/* =====================================================================
   ENVOI
   ===================================================================== */
.block.submit-block { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.submit-block .blob { position: absolute; border-radius: 50%; background: var(--grad); opacity: .16; width: 340px; height: 340px; right: -110px; top: -150px; pointer-events: none; }
.submit-block > * { position: relative; }
.submit-block h2 { font-size: 26px; font-weight: 700; letter-spacing: -.4px; }
.submit-block p.sub { color: #bfc9d4; font-weight: 300; margin-top: 6px; max-width: 640px; }
.consent { display: flex; gap: 14px; align-items: flex-start; margin-top: 26px; cursor: pointer; max-width: 760px; }
.consent input { position: absolute; opacity: 0; }
.consent .box {
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; margin-top: 1px;
  border: 1.5px solid rgba(255,255,255,.4); transition: all .2s;
}
.consent input:checked + .box {
  border-color: transparent;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat,
    var(--grad);
}
.consent input:focus-visible + .box { box-shadow: 0 0 0 4px rgba(242,145,89,.3); }
.consent .ctext { font-size: 13.5px; color: #dfe5ea; font-weight: 300; line-height: 1.55; }
.consent .ctext b { color: #fff; font-weight: 500; }
.submit-block .field.invalid .box { border-color: var(--pink); }
.submit-block .ferr { color: #ff9a8a; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600; color: #fff; text-decoration: none;
  background: var(--grad); border: none; border-radius: 100px; padding: 15px 34px;
  box-shadow: 0 10px 28px rgba(216,36,116,.35); transition: transform .15s, box-shadow .2s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(216,36,116,.45); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn svg { width: 18px; height: 18px; }
.btn .spin { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn.loading .spin { display: inline-block; }
.btn.loading .arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.draft-info { font-size: 12.5px; color: #8fa0b0; }
.draft-info button { background: none; border: none; color: #bfc9d4; font: inherit; text-decoration: underline; cursor: pointer; margin-left: 4px; }
.form-error {
  display: none; margin-top: 22px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: rgba(234,91,73,.14); border: 1px solid rgba(234,91,73,.45); color: #ffd6cf; font-size: 14px;
}
.form-error.show { display: block; }
.min-note { margin-top: 24px; padding-top: 18px; border-top: 1px dashed rgba(255,255,255,.18); font-size: 12.5px; font-style: italic; font-weight: 300; color: #8fa0b0; }

/* Pot de miel anti-robots */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* =====================================================================
   MERCI
   ===================================================================== */
.thanks { display: none; }
.thanks.show { display: block; }
.thanks .block { text-align: left; }
.thanks h2 { font-size: 30px; }
.steps-v { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; max-width: 640px; }
.steps-v .step { display: flex; gap: 16px; align-items: flex-start; }
.steps-v .sn { min-width: 26px; font-size: 15px; font-weight: 700; line-height: 1.6; flex-shrink: 0; }
.steps-v strong { font-size: 15px; font-weight: 600; color: #fff; }
.steps-v em { display: block; font-style: normal; font-size: 13.5px; font-weight: 300; color: #bfc9d4; margin-top: 2px; }

/* =====================================================================
   CONTACT (repris de la page de clôture)
   ===================================================================== */
.contact-zone { padding: 10px 0 56px; }
.contact-card {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 30px;
}
.contact-card img.jm { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.contact-card .who { flex: 1; min-width: 220px; }
.contact-card .clab { display: block; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 2px; }
.contact-card strong { display: block; font-size: 18px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.contact-card .role { font-size: 13px; font-weight: 300; color: var(--grey); }
.contact-card .lines { font-size: 14px; color: var(--ink); margin-top: 4px; }
.contact-card .lines b { font-weight: 600; }
.contact-card .lines a { text-decoration: none; }
.btn-ghost {
  display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--navy); text-decoration: none;
  padding: 10px 22px; border: 1.5px solid var(--navy); border-radius: 100px; transition: all .2s; white-space: nowrap;
}
.btn-ghost:hover { background: var(--navy); color: #fff; }

footer.foot {
  border-top: 1px solid var(--line); padding: 22px 0 30px;
  font-size: 12.5px; color: #9aa4b2; font-weight: 300;
}
footer.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
footer.foot a { text-decoration: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 26px 0 44px; }
  .hero-top { margin-bottom: 36px; }
  .hero-top img.logo { height: 36px; }
  .hero-top .client-tag { display: none; }
  .hero p.lead { font-size: 15.5px; }
  .stepbar .wrap { height: 56px; gap: 10px; }
  .progress .track { width: 54px; }
  main { padding: 20px 0 10px; }
  .block { padding: 26px 20px 24px; border-radius: 16px; margin-bottom: 16px; }
  .block-head { gap: 14px; margin-bottom: 22px; padding-bottom: 18px; }
  .block-head .num { font-size: 30px; min-width: 40px; }
  .block-head h2, .submit-block h2 { font-size: 21px; }
  .block-head .pic { display: none; }
  .fields { grid-template-columns: 1fr; gap: 22px; }
  .field.half { grid-column: 1 / -1; }
  .chip span { font-size: 13.5px; padding: 8px 14px 8px 12px; }
  .repeat { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .contact-card { padding: 22px 20px; }
}

@media print {
  .stepbar, .actions, .contact-zone, .drop { display: none !important; }
  body { background: #fff; }
  .block { box-shadow: none; border: 1px solid var(--line); break-inside: avoid; }
}
