/*
Theme Name: TunLogistics Express
Theme URI: https://tunisielogistics.com
Author: L'Expert de Web
Description: Thème one-page (2 designs au choix : classique ou moderne) pour TunLogistics Express — transport de colis, courrier et marchandises Tunisie ↔ Europe. Suivi de colis, demandes de devis (WhatsApp + e-mail), grille tarifaire et coordonnées modifiables depuis l'administration.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tunlogistics
License: GPL-2.0-or-later
*/
/* ---- WordPress ---- */
.page-hero{background:linear-gradient(135deg,var(--violet),var(--violet-dd));color:#fff;padding:72px 0 64px}
.page-hero h1{font-size:clamp(32px,4.5vw,50px)}
.entry{max-width:820px;margin:0 auto;padding:64px 24px}
.entry h2{font-size:28px;margin:32px 0 12px}.entry h3{font-size:22px;margin:26px 0 10px}
.entry p,.entry ul,.entry ol{margin-bottom:16px;color:#3a3450}.entry ul,.entry ol{padding-left:22px}
.entry a{color:var(--violet);text-decoration:underline}
.post-list{display:grid;gap:18px}.post-list article{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px}
.post-list h2{font-size:22px;margin:0 0 8px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}
.qform .btn[disabled]{opacity:.6;cursor:wait}
.hp{position:absolute;left:-9999px}
.legal-menu{list-style:none;display:flex;gap:18px;flex-wrap:wrap}
.legal-menu a:hover{color:var(--orange)}
nav .current-menu-item>a{opacity:1}

/* ---- Espace pro ---- */
.entry.entry-wide{max-width:1200px}
.entry-wide>p:empty{display:none}
.btn-ghost-v{background:var(--violet-l);color:var(--violet)}
.btn-ghost-v:hover{background:#E6DCF7}
.btn svg.i{width:18px;height:18px}
.muted{color:var(--muted)}
.esp{font-size:15px}
.esp .entry p{margin:0}
.esp-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:28px;box-shadow:0 10px 30px -22px rgba(44,10,85,.35)}
.esp-card h2{font-size:26px;margin-bottom:6px}.esp-card h3{font-size:19px;margin:6px 0 14px}
.esp-dark{background:linear-gradient(140deg,var(--violet),var(--violet-dd));color:#fff;border:0}
.esp-dark h3{color:#fff;font-size:22px}
.esp-ticks{list-style:none;padding:0!important;margin:10px 0 24px!important;display:grid;gap:10px}
.esp-ticks li{color:#E4DAF5!important;padding-left:28px;position:relative}
.esp-ticks li::before{content:"✓";position:absolute;left:0;width:20px;height:20px;border-radius:6px;background:var(--orange);color:#fff;font-size:12px;display:grid;place-items:center;font-weight:700}
.esp-login{display:grid;grid-template-columns:1.1fr .9fr;gap:24px;align-items:stretch}
.esp-login form p{margin-bottom:14px}
.esp-login label{display:block;font-size:13px;font-weight:600;color:var(--muted);margin-bottom:6px}
.esp-login input[type=text],.esp-login input[type=password]{width:100%;padding:13px 14px;border:1.5px solid var(--line);border-radius:12px;font:inherit}
.esp-login .login-remember label{display:flex;gap:8px;align-items:center;font-weight:500}
.esp-login input[type=submit]{background:var(--orange);color:#fff;border:0;border-radius:999px;padding:14px 28px;font:inherit;font-weight:600;cursor:pointer;width:100%}
.esp-login a{color:var(--violet)}
.esp-hello{margin-bottom:18px}.esp-hello small{color:var(--orange);font-weight:700;text-transform:uppercase;letter-spacing:.1em;font-size:12px}
.esp-hello h2{font-size:30px;margin:4px 0 0}
.esp-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px;border-bottom:1px solid var(--line);padding-bottom:14px}
.esp-tabs a{padding:9px 16px;border-radius:999px;background:#fff;border:1px solid var(--line);color:var(--violet)!important;text-decoration:none!important;font-weight:600;font-size:14px}
.esp-tabs a.on{background:var(--violet);border-color:var(--violet);color:#fff!important}
.esp-tabs .esp-out{margin-left:auto;background:transparent;border-color:transparent;color:var(--muted)!important}
.esp-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;margin-bottom:22px}
.esp-kpis>div{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px 20px}
.esp-kpis small{display:block;color:var(--muted);font-size:13px;font-weight:600}
.esp-kpis b{display:block;font-family:Sora,Inter,sans-serif;font-size:28px;margin:4px 0 2px}
.esp-kpis span{font-size:13px;color:var(--muted)}
.esp-kpis .hl{background:var(--violet);border-color:var(--violet);color:#fff}
.esp-kpis .hl small,.esp-kpis .hl span{color:#D9CCF0}.esp-kpis .hl b{color:#FFB27A}
.esp-actions{display:flex;gap:12px;flex-wrap:wrap;margin:6px 0 28px}
.esp-actions a{text-decoration:none!important}
.esp-h3{font-size:19px;margin:28px 0 12px!important}
.esp-table{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:auto}
.esp-table table{width:100%;border-collapse:collapse;font-size:14px}
.esp-table th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);padding:14px 16px;background:var(--bg);border-bottom:1px solid var(--line)}
.esp-table td{padding:14px 16px;border-bottom:1px solid var(--line);vertical-align:middle}
.esp-table tr:last-child td{border-bottom:0}
.esp-table tfoot td{background:var(--bg);font-weight:600}
.esp-table td small{display:block;color:var(--muted);font-size:12.5px}
.esp-table .act{white-space:nowrap;text-align:right}
.esp-table .act a{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--violet-l);color:var(--violet);margin-left:6px}
.esp-table .act a:last-child{background:#DCFCE7;color:#15803D}
.esp-table .act svg.i{width:17px;height:17px}
.esp-st{display:inline-block;font-size:12px;font-weight:700;padding:5px 11px;border-radius:999px;background:var(--orange-l);color:var(--orange-d);white-space:nowrap}
.esp-st.go{background:#E0E7FF;color:#3730A3}.esp-st.ok{background:#DCFCE7;color:#15803D}
.esp-empty{text-align:center;color:var(--muted)}
.esp-empty a{color:var(--violet);font-weight:600}
.esp-ok,.esp-err{padding:14px 18px;border-radius:14px;margin-bottom:18px;font-size:14.5px}
.esp-ok{background:#DCFCE7;color:#14532D}.esp-err{background:#FEE2E2;color:#7F1D1D}
.esp-ok a{color:#14532D;font-weight:700}
.esp-form .f{margin-bottom:14px}
.esp-form .f label{display:block;font-size:12.5px;font-weight:600;color:var(--muted);margin-bottom:6px}
.esp-form input,.esp-form select,.esp-form textarea{width:100%;padding:12px 14px;border:1.5px solid var(--line);border-radius:12px;font:inherit;font-size:15px;background:#fff}
.esp-form input:focus,.esp-form select:focus,.esp-form textarea:focus{outline:0;border-color:var(--violet)}
.esp-form select:disabled{background:var(--bg);color:var(--muted)}
.esp-form .g2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.esp-form .g3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px}
.esp-form h3{border-top:1px solid var(--line);padding-top:18px;margin-top:8px}.esp-form h3:first-of-type{border:0;padding:0;margin-top:0}
.esp-sum{display:grid;grid-template-columns:1fr 1fr;gap:12px;background:var(--orange-l);border-radius:14px;padding:16px 18px;margin:8px 0 18px}
.esp-sum small{display:block;color:var(--muted);font-size:12px}.esp-sum b{font-family:Sora,Inter,sans-serif;font-size:21px;color:var(--orange-d)}
.esp-search{display:flex;gap:10px;margin-bottom:18px}
.esp-search input{flex:1;padding:12px 16px;border:1.5px solid var(--line);border-radius:999px;font:inherit;min-width:0}
.esp-pager{display:flex;gap:6px;margin-top:16px}
.esp-pager a{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:#fff;border:1px solid var(--line);text-decoration:none!important;color:var(--violet)!important}
.esp-pager a.on{background:var(--violet);color:#fff!important}
.esp-runs{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}
.esp-run{background:#fff;border:1px solid var(--line);border-radius:20px;padding:20px;display:flex;flex-direction:column;gap:12px}
.esp-run .top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.esp-run .who strong{display:block;font-size:17px}.esp-run .who span{display:block;color:var(--muted);font-size:14px}
.esp-run .who em{display:block;font-size:13px;color:var(--ink);background:var(--bg);padding:6px 10px;border-radius:8px;margin-top:6px;font-style:normal}
.esp-run .cod{background:var(--orange);color:#fff;font-weight:700;padding:10px 14px;border-radius:12px;font-size:15px}
.esp-run .links{display:flex;gap:8px;flex-wrap:wrap}
.esp-run .links a{display:inline-flex;gap:6px;align-items:center;font-size:13px;font-weight:600;padding:8px 12px;border-radius:10px;background:var(--violet-l);color:var(--violet)!important;text-decoration:none!important}
.esp-run .links svg.i{width:15px;height:15px}
.esp-run .upd input{width:100%;padding:10px 12px;border:1.5px solid var(--line);border-radius:10px;font:inherit;font-size:14px;margin-bottom:8px}
.esp-run .btns{display:flex;gap:8px;flex-wrap:wrap}.esp-run .btns .btn{padding:10px 16px;font-size:14px}
.esp-run .note{color:var(--muted);font-size:12.5px}
@media(max-width:780px){
  .esp-login,.esp-form .g2,.esp-form .g3,.esp-sum{grid-template-columns:1fr}
  .esp-table thead{display:none}
  .esp-table tr{display:block;border-bottom:1px solid var(--line);padding:10px 0}
  .esp-table td{display:flex;justify-content:space-between;gap:12px;border:0;padding:6px 16px;text-align:right}
  .esp-table td::before{content:attr(data-l);font-size:12px;color:var(--muted);font-weight:600;text-align:left}
  .esp-table td small{display:inline;margin-left:6px}
  .esp-table .act{justify-content:flex-end}
  .esp-tabs .esp-out{margin-left:0}
  .entry.entry-wide{padding:32px 16px}
}
.entry .btn{text-decoration:none}
.entry .btn-o{color:#fff}
.entry .btn-ghost-v{color:var(--violet)}
