:root{--brand-primary:#188fe8;--brand-secondary:#142b68;--bg:#f4f8fc;--text:#1f2733}
*{box-sizing:border-box}
body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text)}
a{color:var(--brand-primary);text-decoration:none}
.landing{min-height:100vh;display:grid;place-items:center}.landing main{text-align:center;background:#fff;padding:48px;border-radius:24px;box-shadow:0 12px 35px rgba(0,0,0,.08)}
.logo,.admin-logo{max-width:140px;max-height:80px;object-fit:contain;margin-bottom:12px}.btn,button{display:inline-block;border:0;background:var(--brand-primary);color:#fff;padding:11px 16px;border-radius:10px;font-weight:700;cursor:pointer}
.verify-wrap{max-width:760px;margin:40px auto;padding:20px}.brand-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}.brand-head strong{display:block;font-size:24px;color:var(--brand-secondary)}.brand-head span{display:block;color:var(--brand-primary)}.brand-logo{max-width:90px;max-height:60px}.verify-card{background:#fff;border-radius:24px;padding:28px 28px 20px;box-shadow:0 12px 35px rgba(0,0,0,.08)}.verify-grid{display:grid;grid-template-columns:180px 1fr;gap:30px;align-items:center}.verify-photo{width:170px;height:210px;object-fit:cover;border-radius:18px}.verify-card h1{margin:0 0 8px;font-size:32px}.verify-card p{margin:6px 0;line-height:1.4}.verify-card p strong{color:var(--brand-secondary)}.verify-card.invalid p{margin:8px 0 0;line-height:1.4}.role{color:var(--brand-primary);font-size:20px;font-weight:700}.ok{display:inline-block;color:#15803d;background:#ecfdf3;border:1px solid #bbf7d0;border-radius:999px;padding:7px 13px;font-weight:800;margin-bottom:20px}.bad{display:inline-block;color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:999px;padding:7px 13px;font-weight:800;margin-bottom:12px}
.admin-page{padding:30px}.admin-wrap{max-width:1150px;margin:auto}.admin-box{max-width:430px;margin:80px auto;background:#fff;padding:28px;border-radius:18px;box-shadow:0 10px 30px rgba(0,0,0,.08)}.admin-box.wide{max-width:950px}.admin-box input,.grid-form input{display:block;width:100%;padding:12px;margin:8px 0;border:1px solid #d6dce5;border-radius:10px}.admin-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:12px}.error,.success{padding:10px;border-radius:10px;margin:10px 0}.error{background:#fee2e2;color:#991b1b}.success{background:#dcfce7;color:#166534}.grid-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.grid-form button{grid-column:1/-1}.search{display:flex;gap:10px;margin-bottom:15px}.search input{flex:1;padding:12px;border:1px solid #d6dce5;border-radius:10px}table{width:100%;background:#fff;border-collapse:collapse;border-radius:12px;overflow:hidden}th,td{padding:12px;border-bottom:1px solid #eee;text-align:left}.inline{display:inline}.inline button{padding:5px 8px;font-size:12px;background:#e9eef5;color:#1f2733}.muted{color:#667085}

.print-page{background:#fff;color:#1f2733;padding:0;margin:0}
.print-sheet{width:85.6mm;margin:0 auto}
.id-card{position:relative;width:85.6mm;height:53.98mm;overflow:hidden;background:#fff;border:.25mm solid #cfd8e3;border-radius:2.4mm;font-size:7pt;color:#1f2733;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.id-header{position:absolute;left:0;top:0;width:100%;height:10.2mm;padding:1.8mm 3.2mm 1.2mm;display:flex;align-items:center;justify-content:space-between;border-bottom:.22mm solid #e6edf4}
.brand-block{display:flex;align-items:center;gap:1.6mm;min-width:0;max-width:66mm}.logo-box{width:9.5mm;height:7mm;display:flex;align-items:center;justify-content:center;flex:0 0 9.5mm}.card-logo{display:block;max-width:9.2mm;max-height:6.8mm;width:auto;height:auto;object-fit:contain}.brand-text{min-width:0;line-height:1}.brand{font-size:8pt;font-weight:900;color:var(--brand-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand-sub{font-size:4.5pt;color:var(--brand-primary);font-weight:800;margin-top:.55mm;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-number{font-size:5.5pt;font-weight:900;color:#475569;white-space:nowrap}.card-number span{color:#94a3b8}
.id-main{position:absolute;left:0;top:10.2mm;width:100%;height:29.70mm;padding:2.2mm 3.2mm 1.2mm;display:grid;grid-template-columns:minmax(0,1fr) 20mm;column-gap:2.8mm;align-items:start}.id-info{min-width:0}.name-label{font-size:4pt;letter-spacing:.45px;color:#94a3b8;font-weight:800;margin-bottom:1mm}.id-info h1{font-size:12.5pt;line-height:1.02;margin:0 0 1mm;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.id-info .role{font-size:6.7pt;line-height:1.08;margin-bottom:1.9mm;color:var(--brand-primary);font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.details{display:flex;flex-direction:column;gap:.7mm;max-width:100%}.details>div{font-size:5pt;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#334155}.details b{font-weight:800;color:#64748b}.details .email{font-size:4.7pt}.details .address{max-width:41mm}.photo-box{width:20mm;height:25.8mm;border-radius:1.7mm;overflow:hidden;background:#f8fafc;border:.25mm solid #cbd5e1;display:flex;align-items:center;justify-content:center;justify-self:end}.photo-box img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top}.photo-box span{font-size:5pt;color:#64748b;font-weight:800;letter-spacing:.3px}
.id-footer{position:absolute;left:0;bottom:0;width:100%;height:14.08mm;display:grid;grid-template-columns:minmax(0,1fr) 13.0mm;align-items:center;gap:1.8mm;padding:1.1mm 3.2mm 1.3mm;border-top:.22mm solid #e6edf4}.verify-copy{display:flex;flex-direction:column;gap:.65mm;min-width:0;max-width:55mm}.verify-copy strong{font-size:4.25pt;line-height:1;color:var(--brand-secondary);letter-spacing:.15px;white-space:nowrap}.verify-copy span{font-size:3.85pt;line-height:1.15;color:#64748b;max-width:52mm}.qr-box{width:12.5mm;height:12.5mm;display:flex;align-items:center;justify-content:center;background:#fff}.qr-box canvas{display:block!important;width:11.8mm!important;height:11.8mm!important;max-width:11.8mm!important;max-height:11.8mm!important}
.print-help{font-size:12px;margin:10px;text-align:center;color:#667085}@page{size:85.6mm 53.98mm;margin:0}@media print{html,body{width:85.6mm!important;height:53.98mm!important;min-height:0!important;background:#fff!important}.print-sheet{margin:0;width:85.6mm}.print-help{display:none}.id-card{box-shadow:none}}
@media(max-width:700px){.verify-photo{width:150px;height:185px}.brand-head strong{font-size:20px}.brand-head span{font-size:16px}.verify-grid,.grid-form{grid-template-columns:1fr}.grid-form button{grid-column:auto}.admin-head{flex-direction:column;align-items:flex-start}.search{flex-direction:column}.search input{width:100%}}
.admin-logo{max-width:160px;max-height:90px;object-fit:contain}.edit-photo{width:140px;height:175px;object-fit:cover;border-radius:12px;display:block;margin-bottom:10px}.secondary{background:var(--brand-secondary)}.danger{background:#b91c1c;color:#fff;border:0;padding:8px 12px;border-radius:8px;cursor:pointer}

.full-field{grid-column:1/-1}.grid-form select{display:block;width:100%;padding:12px;margin:8px 0;border:1px solid #d6dce5;border-radius:10px;background:#fff}
.private-main{position:absolute;left:0;top:10.2mm;width:100%;height:29.70mm;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:3mm 10mm}.private-title{font-size:11pt;font-weight:900;color:var(--brand-secondary);letter-spacing:.2px}.private-subtitle{font-size:5.5pt;color:#64748b;margin-top:2mm;max-width:58mm;line-height:1.3}
.profile-page{min-height:100vh;background:var(--bg);padding:22px}.profile-wrap{max-width:620px;margin:0 auto}.profile-brand{display:flex;align-items:center;gap:12px;margin-bottom:18px}.profile-brand strong{display:block;font-size:24px;color:var(--brand-secondary)}.profile-brand span{display:block;color:var(--brand-primary);font-size:14px}.profile-logo{max-width:72px;max-height:52px;object-fit:contain}.profile-card{text-align:center;background:#fff;border-radius:24px;padding:28px;box-shadow:0 12px 35px rgba(0,0,0,.08)}.profile-photo{width:150px;height:185px;object-fit:cover;border-radius:18px;display:block;margin:0 auto 16px}.profile-badge{display:inline-block;padding:7px 12px;border-radius:999px;background:#eef6ff;color:var(--brand-primary);font-size:12px;font-weight:800;margin-bottom:10px}.profile-card h1{margin:4px 0 7px;font-size:32px;color:#0f172a}.profile-role{font-size:18px;color:var(--brand-primary);font-weight:800;margin-bottom:12px}.profile-action{display:block;background:var(--brand-primary);color:#fff;padding:13px 16px;border-radius:12px;margin:9px 0;font-weight:800}.profile-socials{display:flex;flex-wrap:wrap;justify-content:center;gap:9px;margin-top:16px}.profile-socials a{padding:10px 13px;border:1px solid #d6dce5;border-radius:10px;background:#fff;font-weight:700;color:var(--brand-secondary)}

/* ===== V7 FORMULAIRE PROFESSIONNEL ===== */
.v7-form {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.v7-section {
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:20px;
  box-sizing:border-box;
}

.v7-section-title {
  font-size:18px;
  font-weight:800;
  color:#0f172a;
  margin-bottom:5px;
}

.v7-help {
  color:#667085;
  font-size:13px;
  margin:0 0 15px;
}

.v7-fields {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.v7-form label {
  display:block;
  color:#344054;
  font-size:13px;
  font-weight:700;
}

.v7-form input,
.v7-form select {
  box-sizing:border-box;
  width:100%;
  margin:6px 0 0;
  padding:12px 13px;
  border:1px solid #d0d5dd;
  border-radius:10px;
  background:#fff;
  font-size:14px;
  color:#101828;
}

.v7-form input:focus,
.v7-form select:focus {
  outline:none;
  border-color:var(--brand-primary);
  box-shadow:0 0 0 3px rgba(0,0,0,.06);
}

.v7-full-label {
  grid-column:1/-1;
}

.v7-input-help {
  display:block;
  margin-top:6px;
  color:#667085;
  font-size:12px;
  font-weight:400;
}

.v7-submit {
  grid-column:1/-1;
  width:100%;
  padding:14px 20px;
  font-size:16px;
  border-radius:12px;
  margin-top:2px;
}

@media(max-width:700px) {
  .v7-form,
  .v7-fields {
    grid-template-columns:1fr;
  }

  .v7-full-label {
    grid-column:auto;
  }

  .v7-section {
    padding:16px;
  }
}

/* ===== V7 FORMULAIRE PROFESSIONNEL ===== */

.v7-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.v7-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-sizing: border-box;
}

.v7-section-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 5px;
}

.v7-help {
  color: #667085;
  font-size: 13px;
  margin: 0 0 15px;
}

.v7-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.v7-form label {
  display: block;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.v7-form input,
.v7-form select {
  box-sizing: border-box;
  width: 100%;
  margin: 6px 0 0;
  padding: 12px 13px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: #101828;
}

.v7-form input:focus,
.v7-form select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

.v7-full-label {
  grid-column: 1 / -1;
}

.v7-input-help {
  display: block;
  margin-top: 6px;
  color: #667085;
  font-size: 12px;
  font-weight: 400;
}

.v7-submit {
  grid-column: 1 / -1;
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  border-radius: 12px;
  margin-top: 2px;
}

@media (max-width: 700px) {
  .v7-form,
  .v7-fields {
    grid-template-columns: 1fr;
  }

  .v7-full-label {
    grid-column: auto;
  }

  .v7-section {
    padding: 16px;
  }
}


/* ===== V7.1 - FORMULAIRE PLUS PROPRE ===== */

.v7-form {
  max-width: 100%;
}

.v7-section {
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 3px 12px rgba(15,23,42,.04);
}

.v7-section-title {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 800;
  color: #172033;
  margin: 0 0 6px;
}

.v7-help {
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 16px;
}

.v7-fields {
  gap: 16px;
}

.v7-form label {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.v7-form input,
.v7-form select {
  min-height: 44px;
  padding: 11px 13px;
  margin-top: 7px;
  border: 1px solid #cfd8e3;
  border-radius: 11px;
  background: #fff;
  color: #172033;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.v7-form input::placeholder {
  color: #98a2b3;
}

.v7-form input:hover,
.v7-form select:hover {
  border-color: #98a2b3;
}

.v7-form input:focus,
.v7-form select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(0,0,0,.07);
}

.v7-form select {
  cursor: pointer;
}

.v7-submit {
  min-height: 50px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  margin-top: 4px;
}

.v7-input-help {
  line-height: 1.4;
}

/* Mise en valeur du choix du type de carte */
.v7-section:first-child {
  background: #f8fbff;
  border-color: #cbdff1;
}

.v7-section:first-child .v7-section-title {
  color: #172033;
}

/* Espacement général */
.v7-form > .v7-section + .v7-section {
  margin-top: 0;
}

/* Mobile */
@media (max-width: 700px) {
  .admin-page {
    padding: 16px;
  }

  .admin-box.wide {
    padding: 20px;
  }

  .v7-form {
    gap: 14px;
  }

  .v7-section {
    padding: 17px;
    border-radius: 15px;
  }

  .v7-section-title {
    font-size: 17px;
  }

  .v7-fields {
    gap: 11px;
  }

  .v7-form input,
  .v7-form select {
    min-height: 46px;
    font-size: 15px;
  }

  .v7-submit {
    min-height: 52px;
  }
}


/* Menu admin mobile */
@media (max-width: 700px) {
  .admin-head {
    display: block !important;
  }

  .admin-head > div:last-child {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 20px !important;
    width: 100% !important;
  }

  .admin-head > div:last-child > a.btn {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    text-align: center !important;
  }

  .admin-head > div:last-child > a:last-child {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 10px !important;
    text-align: center !important;
  }
}
/* =========================================
   DESIGNS DES CARTES
   ========================================= */

/* CLASSIQUE
   Conserve le style actuel */
.id-card.design-classic {
    background: #ffffff;
}

/* FONDATION
   Style institutionnel et professionnel */
.id-card.design-foundation {
    background: linear-gradient(135deg, #ffffff 0%, #f3f8f5 100%);
    border-color: var(--brand-primary);
}

.id-card.design-foundation .id-header {
    background: var(--brand-primary);
    color: #ffffff;
    border-bottom: none;
}

.id-card.design-foundation .brand,
.id-card.design-foundation .brand-sub,
.id-card.design-foundation .card-number {
    color: #ffffff;
}

.id-card.design-foundation .name-label {
    color: var(--brand-secondary);
}

.id-card.design-foundation .id-info h1 {
    color: #123524;
}

.id-card.design-foundation .photo-box {
    border-color: var(--brand-primary);
}

.id-card.design-foundation .id-footer {
    border-top-color: var(--brand-primary);
}

/* ÉLÉGANT
   Style sobre et premium */
.id-card.design-elegant {
    background: #f8f8f6;
    border-color: #202020;
    border-radius: 1.5mm;
}

.id-card.design-elegant .id-header {
    border-bottom-color: #202020;
}

.id-card.design-elegant .brand {
    letter-spacing: .4px;
}

.id-card.design-elegant .name-label {
    color: #666666;
    letter-spacing: .8px;
}

.id-card.design-elegant .id-info h1 {
    color: #171717;
    font-weight: 700;
}

.id-card.design-elegant .id-info .role {
    color: #333333;
}

.id-card.design-elegant .photo-box {
    border-color: #202020;
    border-radius: 0;
}

.id-card.design-elegant .id-footer {
    border-top-color: #202020;
}

/* MODERNE
   Style dynamique et contemporain */
.id-card.design-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
    border: none;
    border-radius: 3mm;
}

.id-card.design-modern .id-header {
    background: var(--brand-primary);
    border-bottom: none;
    color: #ffffff;
}

.id-card.design-modern .brand,
.id-card.design-modern .brand-sub,
.id-card.design-modern .card-number {
    color: #ffffff;
}

.id-card.design-modern .name-label {
    color: var(--brand-primary);
}

.id-card.design-modern .id-info h1 {
    color: #111827;
}

.id-card.design-modern .id-info .role {
    color: var(--brand-secondary);
}

.id-card.design-modern .photo-box {
    border: none;
    border-radius: 3mm;
}

.id-card.design-modern .id-footer {
    border-top: none;
    background: rgba(255,255,255,.65);
}
/* =========================================
   DESIGN ÉLÉGANT — FINITION PREMIUM
   ========================================= */

.id-card.design-elegant {
    background: #fafaf9;
    border: .25mm solid #222;
    border-radius: 1.2mm;
}

.id-card.design-elegant .id-header {
    background: #222;
    border-bottom: none;
}

.id-card.design-elegant .brand,
.id-card.design-elegant .brand-sub,
.id-card.design-elegant .card-number {
    color: #fff;
}

.id-card.design-elegant .card-number span {
    color: #d4d4d4;
}

.id-card.design-elegant .name-label {
    color: #737373;
    letter-spacing: 1px;
}

.id-card.design-elegant .id-info h1 {
    color: #171717;
    letter-spacing: .1px;
}

.id-card.design-elegant .id-info .role {
    color: #404040;
}

.id-card.design-elegant .details > div {
    color: #404040;
}

.id-card.design-elegant .details b {
    color: #737373;
}

.id-card.design-elegant .photo-box {
    border: .25mm solid #222;
    border-radius: 0;
    background: #f5f5f4;
}

.id-card.design-elegant .id-footer {
    background: #f5f5f4;
    border-top: .22mm solid #222;
}

.id-card.design-elegant .verify-copy strong {
    color: #222;
}

.id-card.design-elegant .verify-copy span {
    color: #737373;
}

.id-card.design-elegant .qr-box {
    background: #fff;
}
/* =========================================
   DESIGN MODERNE — VERSION 2
   ========================================= */

.id-card.design-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border: none;
    border-radius: 3mm;
    box-shadow: 0 1mm 3mm rgba(15, 23, 42, .16);
}

.id-card.design-modern .id-header {
    background: linear-gradient(
        135deg,
        var(--brand-primary),
        var(--brand-secondary)
    );
    border-bottom: none;
    color: #fff;
}

.id-card.design-modern .brand,
.id-card.design-modern .brand-sub,
.id-card.design-modern .card-number,
.id-card.design-modern .card-number span {
    color: #fff;
}

.id-card.design-modern .brand {
    font-weight: 900;
    letter-spacing: .25px;
}

.id-card.design-modern .card-number {
    font-weight: 800;
}

.id-card.design-modern .name-label {
    color: var(--brand-primary);
    font-weight: 900;
    letter-spacing: .8px;
}

.id-card.design-modern .id-info h1 {
    color: #0f172a;
    font-weight: 900;
}

.id-card.design-modern .id-info .role {
    display: inline-block;
    color: #fff;
    background: var(--brand-primary);
    padding: .8mm 1.5mm;
    border-radius: 1.2mm;
    font-weight: 800;
}

.id-card.design-modern .details > div {
    color: #334155;
}

.id-card.design-modern .details b {
    color: #64748b;
}

.id-card.design-modern .photo-box {
    border: .3mm solid var(--brand-primary);
    border-radius: 3mm;
    box-shadow: 0 .7mm 2mm rgba(15, 23, 42, .15);
}

.id-card.design-modern .id-footer {
    border-top: .2mm solid #e2e8f0;
    background: rgba(255,255,255,.85);
}

.id-card.design-modern .verify-copy strong {
    color: var(--brand-primary);
}

.id-card.design-modern .qr-box {
    border-radius: 1.5mm;
    box-shadow: 0 .5mm 1.5mm rgba(15, 23, 42, .12);
}
/* =========================================
   DESIGN MODERNE — V3
   Ajustements finaux
   ========================================= */

.id-card.design-modern .id-info h1 {
    font-size: 14pt;
    line-height: 1;
    margin-bottom: 1.2mm;
    letter-spacing: -.15px;
}

.id-card.design-modern .id-info .role {
    font-size: 6.2pt;
    padding: .7mm 1.6mm;
    border-radius: 1.5mm;
    margin-bottom: 2mm;
}

.id-card.design-modern .details {
    gap: .9mm;
}

.id-card.design-modern .details > div {
    font-size: 5.1pt;
}

.id-card.design-modern .details .email {
    font-size: 4.8pt;
}

.id-card.design-modern .photo-box {
    transform: translateY(-.3mm);
    box-shadow: 0 .8mm 2.2mm rgba(15, 23, 42, .18);
}

.id-card.design-modern .id-footer {
    padding-left: 3.2mm;
    padding-right: 3.2mm;
}

.id-card.design-modern .verify-copy {
    gap: .8mm;
}

.id-card.design-modern .verify-copy strong {
    font-size: 4.4pt;
}

.id-card.design-modern .verify-copy span {
    font-size: 3.9pt;
}

.id-card.design-modern .qr-box {
    width: 12.7mm;
    height: 12.7mm;
    padding: .5mm;
    box-sizing: border-box;
}
