/* =====================================================================================
   Pages publiques Lovebook 2026 : accueil (index.php) et inscription (ar-inscription1/2/3.php)
   ===================================================================================== */
body.lb-accueil-page { margin: 0; min-height: 100vh; background: linear-gradient(160deg, #ff4f8b 0%, #e6216f 38%, #5b1e5f 100%) fixed; font-family: 'Quicksand', sans-serif; }
.lb-accueil { box-sizing: border-box; min-height: 100vh; max-width: 1100px; margin: 0 auto; padding: 22px 16px 28px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.lb-accueil * { box-sizing: border-box; }
.lb-accueil-marque { display: flex; align-items: center; gap: 8px; color: #fff; font: 700 30px/1 'Quicksand', sans-serif; letter-spacing: .5px; text-decoration: none; }
.lb-accueil-marque i { font-size: 34px; }
.lb-accueil-hero { text-align: center; color: #fff; }
.lb-accueil-hero h1 { margin: 6px 0 6px; font: 700 28px/1.2 'Quicksand', sans-serif; color: #fff; }
.lb-accueil-hero h2 { margin: 0 0 16px; font: 500 17px/1.3 'Quicksand', sans-serif; color: rgba(255,255,255,.9); }
.lb-atouts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lb-atouts li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font: 600 14px/1 'Quicksand', sans-serif; }
.lb-atouts li i { font-size: 18px; }
.lb-carte { width: 100%; max-width: 420px; padding: 22px 20px; border-radius: 22px; background: #fff; box-shadow: 0 18px 50px rgba(40,0,30,.35); }
.lb-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 16px; border: 0; border-radius: 14px; font: 700 16px/1 'Quicksand', sans-serif; text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.lb-btn:active { transform: scale(.98); }
.lb-btn-principal { background: linear-gradient(135deg, #ff4f8b, #e6216f); color: #fff; box-shadow: 0 8px 20px rgba(230,33,111,.35); }
.lb-btn-principal:hover { color: #fff; text-decoration: none; box-shadow: 0 10px 24px rgba(230,33,111,.45); }
.lb-btn-second { background: #2b2b33; color: #fff; }
.lb-separateur { display: flex; align-items: center; gap: 10px; margin: 20px 0 16px; color: #8a8a95; font: 600 14px/1 'Quicksand', sans-serif; }
.lb-separateur::before, .lb-separateur::after { content: ''; flex: 1; height: 1px; background: #ececf2; }
.lb-champ { position: relative; margin-bottom: 12px; }
.lb-champ i.lb-icone { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 20px; color: #b0b0ba; pointer-events: none; }
.lb-champ input { display: block; width: 100%; margin: 0; padding: 14px 44px 14px 42px; border: 1.5px solid #ececf2; border-radius: 12px; background: #f6f6f9; color: #2b2b33; font: 600 16px 'Quicksand', sans-serif; outline: none; -webkit-appearance: none; appearance: none; }
.lb-champ input:focus { border-color: #e6216f; background: #fff; }
.lb-champ input:focus + i.lb-icone, .lb-champ input:focus ~ i.lb-icone { color: #e6216f; }
.lb-voir { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #8a8a95; cursor: pointer; }
.lb-voir:hover { background: #fde7f0; color: #e6216f; }
.lb-oubli { display: block; margin: 2px 2px 16px; text-align: right; font: 600 14px 'Quicksand', sans-serif; color: #e6216f; text-decoration: none; }
.lb-oubli:hover { text-decoration: underline; color: #e6216f; }
.lb-alerte { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 11px 12px; border-radius: 12px; font: 600 14px/1.35 'Quicksand', sans-serif; }
.lb-alerte i { font-size: 20px; }
.lb-alerte-erreur { background: #fdecef; color: #c0183f; }
.lb-alerte-info { background: #eef7f0; color: #1e7e34; }
.lb-accueil-pied { margin-top: auto; text-align: center; font: 500 14px 'Quicksand', sans-serif; color: rgba(255,255,255,.85); }
.lb-accueil-pied a { color: #fff; text-decoration: none; }
.lb-accueil-pied a:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .lb-accueil { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 70px; padding-top: 40px; }
  .lb-accueil-entete { width: 100%; display: flex; justify-content: center; }
  .lb-accueil-hero { flex: 0 1 440px; text-align: left; }
  .lb-accueil-hero h1 { font-size: 40px; }
  .lb-accueil-hero h2 { font-size: 20px; }
  .lb-atouts { justify-content: flex-start; }
  .lb-accueil-pied { width: 100%; }
}

/* ---------- Inscription ---------- */
.lb-inscription .lb-carte { max-width: 460px; animation: lb-monte .45s ease both; }
@keyframes lb-monte { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.lb-accueil-marque:hover { color: #fff; text-decoration: none; }
.lb-etapes { display: flex; margin: 0 0 20px; padding: 0; list-style: none; counter-reset: etape; }
.lb-etapes li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; counter-increment: etape; font: 700 12px/1.2 'Quicksand', sans-serif; color: #b0b0ba; text-align: center; }
.lb-etapes li::before { content: counter(etape); position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #f0eff4; color: #8a8a95; font: 700 14px/1 'Quicksand', sans-serif; transition: all .3s ease; }
.lb-etapes li::after { content: ''; position: absolute; top: 14px; left: calc(50% + 20px); right: calc(-50% + 20px); height: 3px; border-radius: 2px; background: #f0eff4; }
.lb-etapes li:last-child::after { display: none; }
.lb-etapes li.fait { color: #16a34a; }
.lb-etapes li.fait::before { content: '\2713'; background: #22c55e; color: #fff; }
.lb-etapes li.fait::after { background: linear-gradient(90deg, #22c55e, #e6216f); }
.lb-etapes li.actif { color: #e6216f; }
.lb-etapes li.actif::before { background: linear-gradient(135deg, #ff4f8b, #e6216f); color: #fff; box-shadow: 0 4px 12px rgba(230, 33, 111, .35); transform: scale(1.08); }
.lb-titre-carte { margin: 0 0 4px; font: 700 23px/1.25 'Quicksand', sans-serif; color: #2b2b33; text-align: center; }
.lb-sous-titre { margin: 0 0 18px; font: 500 14.5px/1.45 'Quicksand', sans-serif; color: #8a8a95; text-align: center; }
.lb-libelle { display: block; margin: 16px 2px 8px; font: 700 12px/1 'Quicksand', sans-serif; letter-spacing: .05em; text-transform: uppercase; color: #8a8a95; }
.lb-champ select { display: block; width: 100%; margin: 0; padding: 14px 40px 14px 42px; border: 1.5px solid #ececf2; border-radius: 12px; background: #f6f6f9; color: #2b2b33; font: 600 16px 'Quicksand', sans-serif; outline: none; -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer; }
.lb-champ select:focus { border-color: #e6216f; background: #fff; }
.lb-champ select:focus ~ i.lb-icone { color: #e6216f; }
.lb-champ .lb-chevron { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 22px; color: #8a8a95; pointer-events: none; }
/* listes département / commune chargées à la demande (liresc1.php, liresc2.php) */
.lb-champ-dyn:not(:has(select)) { display: none; }
.lb-champ-dyn table, .lb-champ-dyn tr, .lb-champ-dyn td { display: block; width: 100%; padding: 0; border: 0; background: transparent !important; }
.lb-champ-dyn .surbrillance { animation: lb-monte .3s ease both; }
.lb-champ.lb-erreur input, .lb-champ.lb-erreur select, .lb-choix.lb-erreur label { border-color: #f43f5e; background: #fff5f7; }
.lb-aide { margin: -4px 4px 12px; font: 500 12.5px/1.35 'Quicksand', sans-serif; color: #8a8a95; }
.lb-aide.ok { color: #16a34a; }
.lb-aide.ko { color: #e11d48; }
.lb-choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 4px; }
.lb-choix label { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 76px; padding: 12px 8px; border: 1.5px solid #ececf2; border-radius: 14px; background: #f6f6f9; color: #4a4a55; font: 700 15px/1.2 'Quicksand', sans-serif; text-align: center; cursor: pointer; transition: all .18s ease; -webkit-tap-highlight-color: transparent; }
.lb-choix label:hover { border-color: rgba(230, 33, 111, .4); }
.lb-choix label i { font-size: 28px; color: #b0b0ba; transition: color .18s ease, transform .18s ease; }
.lb-choix input { position: absolute; width: 1px !important; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.lb-choix label:has(input:checked) { border-color: #e6216f; background: #fde7f0; color: #e6216f; box-shadow: 0 6px 16px rgba(230, 33, 111, .18); }
.lb-choix label:has(input:checked) i { color: #e6216f; transform: scale(1.12); }
.lb-choix label:has(input:focus-visible) { outline: 2px solid #e6216f; outline-offset: 2px; }
.lb-choix-petit { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.lb-choix-petit label { min-height: 48px; flex-direction: row; font-size: 14px; }
.lb-case { display: flex; align-items: flex-start; gap: 10px; margin: 18px 2px 18px; font: 500 14px/1.45 'Quicksand', sans-serif; color: #4a4a55; cursor: pointer; }
.lb-case input { flex: 0 0 22px; width: 22px !important; height: 22px; margin: 0; accent-color: #e6216f; cursor: pointer; }
.lb-case a { color: #e6216f; font-weight: 700; }
.lb-case.lb-erreur { color: #e11d48; }
.lb-lien-bas { margin: 16px 0 0; text-align: center; font: 600 14px/1.4 'Quicksand', sans-serif; color: #8a8a95; }
.lb-lien-bas a { color: #e6216f; font-weight: 700; text-decoration: none; }
.lb-inscription-pub { width: 100%; max-width: 760px; overflow: hidden; border-radius: 18px; background: #fff; }
.lb-inscription-texte { max-width: 760px; color: rgba(255, 255, 255, .88); font: 500 14.5px/1.6 'Quicksand', sans-serif; }
.lb-inscription-texte h2, .lb-inscription-texte h3 { margin: 18px 0 6px; font: 700 18px/1.3 'Quicksand', sans-serif; color: #fff; }
.lb-inscription-texte p { margin: 0 0 10px; }
@media (min-width: 900px) {
  .lb-inscription { flex-direction: column; flex-wrap: nowrap; }
}
.lb-btn:disabled { opacity: .8; cursor: default; }
.lb-tourne { animation: lb-tourne 1s linear infinite; }
@keyframes lb-tourne { to { transform: rotate(360deg); } }
.lb-champ:focus-within i.lb-icone { color: #e6216f; }
