*{box-sizing:border-box;margin:0;padding:0}html{font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;background:#f8f9fe;color:#191c1f}body{background:#f8f9fe;-webkit-tap-highlight-color:transparent;overflow-x:hidden;min-height:100vh;padding-bottom:92px}.material-symbols-outlined{font-variation-settings:'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 24;display:inline-block;vertical-align:middle}.app-header{position:fixed;top:0;left:0;right:0;z-index:50;background:rgba(255,255,255,.88);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-bottom:1px solid rgba(255,255,255,.30);display:flex;justify-content:space-between;align-items:center;padding:0 20px;height:72px}.app-header .logo-wrap{display:flex;align-items:center;gap:14px}.app-header .logo-wrap img{height:40px;width:auto;display:block}.icon-btn{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:transparent;border:none;color:#004870;cursor:pointer;transition:background .2s ease;padding:0;position:relative;text-decoration:none}.icon-btn:active{transform:scale(.92);background:rgba(0,0,0,.05)}.icon-btn .material-symbols-outlined{font-size:28px}.notif-dot{position:absolute;top:8px;right:8px;width:9px;height:9px;background:#994700;border-radius:50%;border:2px solid #fff}.header-user{display:flex;align-items:center;gap:8px}.user-chip{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:rgba(0,72,112,.08);color:#004870;border-radius:999px;padding:8px 12px;font-weight:700;font-size:12px}.main-content{padding-top:84px;padding-left:20px;padding-right:20px;max-width:720px;margin:0 auto;display:flex;flex-direction:column;gap:22px}.admin-content{max-width:1180px}.hero-wrapper{position:relative;cursor:pointer;transition:transform .25s ease,box-shadow .25s ease;display:inline-block;width:100%;line-height:0;background:transparent;border-radius:20px;overflow:hidden;box-shadow:0 4px 24px rgba(0,72,112,.08)}.hero-wrapper:active{transform:scale(.99)}.hero-image{width:100%;height:auto;display:block;background:transparent;object-fit:contain}.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05) 0%,rgba(0,40,70,.70) 50%,rgba(0,40,70,.92) 100%);display:flex;flex-direction:column;justify-content:flex-end;padding:28px 24px;pointer-events:none;border-radius:20px}.hero-overlay h1,.hero-overlay h2{color:#fff;font-size:28px;font-weight:700;line-height:1.2;letter-spacing:-.01em;text-shadow:0 2px 16px rgba(0,0,0,.30);margin-bottom:4px}.hero-overlay h1 span,.hero-overlay h2 span{color:rgba(255,255,255,.92)}.hero-overlay p{color:rgba(255,255,255,.80);font-size:16px;line-height:1.4;max-width:88%;text-shadow:0 1px 12px rgba(0,0,0,.25);font-weight:400}.hero-badge{position:absolute;top:16px;right:16px;background:rgba(255,255,255,.15);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.12);border-radius:100px;padding:6px 14px;color:#fff;font-size:12px;font-weight:500;letter-spacing:.3px;display:flex;align-items:center;gap:4px;pointer-events:auto}.hero-badge .material-symbols-outlined{font-size:16px}.page-hero{position:relative;overflow:hidden;border-radius:20px;background:rgba(255,255,255,.60);border:1px solid rgba(255,255,255,.38);box-shadow:0 4px 24px rgba(0,72,112,.08);min-height:160px;display:flex;align-items:flex-end}.page-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.page-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05) 0%,rgba(0,40,70,.68) 55%,rgba(0,40,70,.92) 100%)}.page-hero .page-hero-content{position:relative;z-index:1;padding:26px 22px;color:#fff}.page-hero h1,.page-hero h2{font-family:'Montserrat','Inter',sans-serif;font-size:28px;line-height:1.1;margin:0 0 6px}.page-hero p{color:rgba(255,255,255,.82);font-size:15px;line-height:1.45;max-width:90%}.hero{background:linear-gradient(135deg,#004870,#0878a8);border-radius:24px;color:#fff;padding:28px;box-shadow:0 24px 60px rgba(0,72,112,.18);position:relative;overflow:hidden}.hero:after{content:"";position:absolute;right:-60px;top:-60px;width:190px;height:190px;border-radius:50%;background:rgba(255,255,255,.14)}.hero h1,.hero h2{font-family:'Montserrat','Inter',sans-serif;margin:0 0 8px;font-size:clamp(26px,5vw,40px);line-height:1.05}.hero p{margin:0;color:rgba(255,255,255,.86);font-size:16px;max-width:760px}.actions-grid{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:14px}.action-btn{background:rgba(255,255,255,.60);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.30);border-radius:16px;padding:20px 12px;text-align:center;transition:all .2s ease;text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 2px 12px rgba(0,0,0,.02);color:#191c1f}.action-btn:active{transform:scale(.95)}.action-btn .icon-wrap{width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:8px}.action-btn .icon-wrap .material-symbols-outlined{font-size:30px}.action-btn .label{font-size:15px;font-weight:600;color:#191c1f;letter-spacing:.2px}.action-btn .sub-label{font-size:11px;font-weight:500;color:#717880;margin-top:2px}.action-btn.primary .icon-wrap{background:rgba(0,72,112,.10);color:#004870}.action-btn.secondary .icon-wrap{background:rgba(153,71,0,.10);color:#994700}.action-btn.tertiary .icon-wrap{background:rgba(0,80,18,.10);color:#005012}.action-btn.neutral .icon-wrap{background:rgba(0,0,0,.04);color:#40474f}.glass,.card,.parcel-card{background:rgba(255,255,255,.68);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.38);border-radius:18px;padding:22px;box-shadow:0 2px 16px rgba(0,0,0,.025)}.card.compact{padding:16px}.card h3,.parcel-card h3{font-size:19px;font-weight:700;color:#191c1f;margin-bottom:8px}.card p{line-height:1.5}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 -8px}.section-title h2{font-size:22px;font-weight:800;color:#191c1f}.section-title a{color:#004870;text-decoration:none;font-weight:700}.grid{display:grid;gap:14px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.stat-box{background:rgba(0,72,112,.04);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid rgba(0,72,112,.06);border-radius:16px;padding:18px}.stat-box .stat-value{font-size:28px;font-weight:700;color:#004870}.stat-box .stat-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#717880;margin-bottom:2px}.stat-box .stat-sub{font-size:12px;color:#717880}.stat .num{font-size:28px;font-weight:800;color:#004870}.badge,.badge-status{display:inline-flex;align-items:center;border-radius:999px;padding:6px 12px;font-size:12px;font-weight:800;background:rgba(0,72,112,.08);color:#004870}.badge-status{padding:5px 16px;background:rgba(153,71,0,.10);color:#994700;border:1px solid rgba(153,71,0,.12);font-weight:600}.info-badge{display:inline-block;padding:3px 14px;border-radius:100px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.3px}.info-badge.intra{background:rgba(0,72,112,.10);color:#004870}.info-badge.inter{background:rgba(153,71,0,.10);color:#994700}.badge-verified,.badge-approved,.badge-paid,.badge-delivered,.badge-success,.badge-active{background:#dcfce7;color:#166534}.badge-pending,.badge-payment_pending{background:#fef3c7;color:#92400e}.badge-rejected,.badge-cancelled,.badge-failed,.badge-banned{background:#ffe4e6;color:#be123c}.badge-in_transit,.badge-collected,.badge-accepted{background:#dbeafe;color:#1d4ed8}.muted{color:#717880}.small{font-size:12px}.list{display:grid;gap:12px}.item{display:flex;gap:14px;justify-content:space-between;align-items:flex-start;border:1px solid rgba(255,255,255,.38);border-radius:18px;padding:16px;background:rgba(255,255,255,.66);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 2px 12px rgba(0,0,0,.02)}.item h3{margin:0 0 4px;font-size:17px}.item p{margin:0;color:#66717b}.avatar{width:56px;height:56px;border-radius:20px;background:#edf6fb;color:#004870;display:grid;place-items:center;font-weight:900;font-size:20px;flex-shrink:0}.btn{border:0;border-radius:100px;padding:11px 18px;font-weight:800;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;font-size:14px;transition:transform .15s ease}.btn:active{transform:scale(.96)}.btn-primary{background:#004870;color:#fff}.btn-secondary{background:#994700;color:#fff}.btn-soft{background:rgba(0,72,112,.08);color:#004870}.btn-ghost{background:transparent;color:#004870}.btn-danger{background:#be123c;color:#fff}.btn-full{width:100%}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;position:relative}.field label{font-size:13px;font-weight:800;color:#33404c}.field input,.field select,.field textarea{width:100%;border:1.5px solid rgba(0,0,0,.06);border-radius:14px;padding:14px 16px;background:rgba(255,255,255,.92);font:inherit;color:#111827;outline:none;transition:all .2s ease}.field textarea{min-height:96px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:#004870;box-shadow:0 0 0 4px rgba(0,72,112,.08);background:#fff}.antibot-field{border:1px dashed #b7c7d6;border-radius:18px;padding:14px;background:rgba(248,250,252,.72)}.alert{border-radius:18px;padding:14px 16px;margin:0;font-weight:700}.alert-success{background:#eaf8ed;color:#17612b}.alert-error{background:#fff1f2;color:#be123c}.alert-warning{background:#fff7e6;color:#92400e}.alert-info{background:#eff6ff;color:#1d4ed8}.table-wrap{overflow:auto;border-radius:22px;border:1px solid rgba(0,72,112,.08);background:#fff}.table{width:100%;border-collapse:collapse;background:rgba(255,255,255,.92)}.table th,.table td{text-align:left;padding:14px 16px;border-bottom:1px solid #edf2f7;vertical-align:middle}.table th{font-size:12px;text-transform:uppercase;color:#64748b;background:#f8fafc}.progress{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:12px}.step{height:8px;border-radius:999px;background:#d8e1ea}.step.done{background:#004870}.map{height:360px;border-radius:24px;background:#dbeafe;overflow:hidden;border:1px solid #dce4ec}.qr-box{border:2px dashed #b7c7d6;border-radius:24px;display:grid;place-items:center;min-height:180px;text-align:center;color:#64748b;background:#f8fafc}.wallet{font-size:34px;font-weight:900;color:#004870}.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;align-items:center;padding:10px 12px 14px;background:rgba(255,255,255,.88);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-top:1px solid rgba(255,255,255,.30);box-shadow:0 -2px 16px rgba(0,72,112,.03);z-index:50;border-radius:20px 20px 0 0}.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;text-decoration:none;padding:6px 14px;border-radius:12px;transition:all .15s ease;color:#717880;font-size:11px;font-weight:500;gap:2px;min-width:50px}.bottom-nav a .material-symbols-outlined{font-size:26px}.bottom-nav a.active{background:#006194;color:#fff;padding:6px 18px 8px}.bottom-nav a:active{transform:scale(.92)}.modal-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.85);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);z-index:9999;justify-content:center;align-items:center;padding:16px}.modal-overlay.active{display:flex}.modal-box{position:relative;max-width:95vw;max-height:95vh;border-radius:16px;overflow:hidden;background:#0d1a26;box-shadow:0 30px 60px rgba(0,0,0,.5)}.modal-box img{display:block;width:100%;height:auto;max-height:80vh;object-fit:contain}.modal-close{position:absolute;top:14px;right:14px;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.12);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.15);color:#fff;font-size:24px;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:10}.modal-footer{padding:20px 24px 24px;background:rgba(0,0,0,.5);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.modal-footer h3{color:#fff;font-size:20px;font-weight:700;margin-bottom:2px}.modal-footer p{color:rgba(255,255,255,.7);font-size:15px;line-height:1.4}.modal-footer .hint{color:rgba(255,255,255,.30);font-size:12px;margin-top:4px;display:block}@keyframes fadeUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.fade-up{animation:fadeUp .35s cubic-bezier(.16,1,.3,1) forwards}.auth-body{background:linear-gradient(145deg,#f0f4fa 0%,#dce3ef 100%);display:flex;align-items:center;justify-content:center;padding:16px;min-height:100vh}.login-card,.auth-card{max-width:430px;width:100%;padding:32px 24px 28px;border-radius:28px}.logo-big{text-align:center;margin-bottom:24px}.logo-big img{height:76px;width:76px;object-fit:contain;border-radius:20px}.logo-big h1{font-size:24px;font-weight:800;color:#004870;margin-top:8px}.logo-big p{font-size:14px;color:#6b7a8a}.welcome-body{min-height:100vh;width:100%;display:flex;flex-direction:column;justify-content:space-between;align-items:center;background:#fcf9f8;position:relative;overflow:hidden;padding:38px 20px}.bg-ornament{position:absolute;border-radius:50%;filter:blur(90px);opacity:.16;z-index:0}.bg-ornament-1{width:400px;height:400px;background:#007bba;top:-100px;right:-100px}.bg-ornament-2{width:300px;height:300px;background:#fb7800;bottom:-80px;left:-80px}.bg-ornament-3{width:200px;height:200px;background:#006b1b;top:50%;left:50%;transform:translate(-50%,-50%)}.welcome-logo{z-index:2;text-align:center;animation:fadeUp .55s ease both}.logo-glow{position:relative;display:inline-block}.logo-glow:before{content:'';position:absolute;inset:-4px;border-radius:50%;background:linear-gradient(135deg,#007bba,#fb7800,#006b1b);opacity:.15;filter:blur(12px);z-index:-1;background-size:300% 300%}.welcome-logo .logo-circle{position:relative;padding:8px;border-radius:50%;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.10);border:1px solid #e5e2e1}.welcome-logo img{width:86px;height:86px;object-fit:contain;border-radius:50%}.loc-badge{background:rgba(0,72,112,.06);border:1px solid rgba(0,72,112,.08);border-radius:40px;padding:4px 14px;font-size:11px;font-weight:500;color:#004870;display:inline-flex;align-items:center;gap:6px;letter-spacing:.3px}.loc-badge .dot{width:6px;height:6px;border-radius:50%;background:#006b1b;display:inline-block}.welcome-main{z-index:2;flex:1;display:flex;align-items:center;justify-content:center;text-align:center;max-width:520px;width:100%}.welcome-main h1{font-family:'Montserrat','Inter',sans-serif;font-size:32px;line-height:1.22;margin-bottom:14px;color:#1b1c1c}.welcome-main .creole{color:#006194;font-size:24px;font-weight:700;margin-top:6px}.welcome-main p{font-size:18px;line-height:1.55;color:#1b1c1c}.welcome-main .island-row{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:14px;color:rgba(63,72,81,.58);font-size:12px}.welcome-footer{z-index:2;text-align:center;padding-bottom:6px}.timer-ring{position:relative;width:48px;height:48px;margin:0 auto 14px}.timer-ring svg{transform:rotate(-90deg);width:48px;height:48px}.timer-ring .bg-circle{fill:none;stroke:rgba(0,72,112,.08);stroke-width:3}.timer-ring .progress-circle{fill:none;stroke:#004870;stroke-width:3;stroke-linecap:round;stroke-dasharray:132;stroke-dashoffset:0;animation:countdown 5s linear forwards}@keyframes countdown{0%{stroke-dashoffset:0}100%{stroke-dashoffset:132}}.progress-container{width:180px;height:3px;background:rgba(0,0,0,.06);border-radius:4px;overflow:hidden;margin:8px auto}.progress-bar{height:100%;width:0;background:linear-gradient(90deg,#004870,#007bba);border-radius:4px;animation:progressFill 4.5s ease-in-out forwards}@keyframes progressFill{from{width:0}to{width:100%}}.pulse-text{animation:pulseText 1.5s ease-in-out infinite}@keyframes pulseText{0%,100%{opacity:.55}50%{opacity:1}}@media(max-width:760px){body{padding-bottom:88px}.main-content{padding-left:12px;padding-right:12px;gap:18px;padding-top:78px}.app-header{height:64px;padding:0 14px}.app-header .logo-wrap img{height:32px}.icon-btn{width:42px;height:42px}.icon-btn .material-symbols-outlined{font-size:24px}.user-chip{display:none}.hero-overlay{padding:18px 16px}.hero-overlay h1,.hero-overlay h2{font-size:22px}.hero-overlay p{font-size:13px;max-width:100%}.hero-badge{font-size:10px;padding:4px 10px;top:12px;right:12px}.actions-grid{grid-template-columns:1fr 1fr 1fr 1fr;gap:8px}.action-btn{padding:14px 6px;border-radius:12px}.action-btn .icon-wrap{width:44px;height:44px}.action-btn .icon-wrap .material-symbols-outlined{font-size:24px}.action-btn .label{font-size:12px}.action-btn .sub-label{font-size:9px}.grid-2,.grid-3,.grid-4,.form-grid{grid-template-columns:1fr}.stats-grid{gap:10px}.stat-box{padding:14px}.stat-box .stat-value{font-size:22px}.bottom-nav{padding:8px 10px 12px}.bottom-nav a{font-size:10px;min-width:42px;padding:4px 10px}.bottom-nav a .material-symbols-outlined{font-size:22px}.bottom-nav a.active{padding:4px 14px 6px}.item{flex-direction:column}.table th,.table td{white-space:nowrap}.welcome-main h1{font-size:28px}.welcome-main .creole{font-size:21px}.welcome-main p{font-size:16px}}@media(max-width:380px){.main-content{padding-left:8px;padding-right:8px;gap:14px;padding-top:72px}.app-header{height:58px;padding:0 10px}.app-header .logo-wrap img{height:28px}.hero-overlay h1,.hero-overlay h2{font-size:18px}.actions-grid{grid-template-columns:1fr 1fr;gap:8px}.action-btn{padding:14px 10px;flex-direction:row;gap:12px;text-align:left}.action-btn .icon-wrap{width:40px;height:40px;margin-bottom:0}.action-btn .label{font-size:13px}.bottom-nav a .material-symbols-outlined{font-size:20px}.bottom-nav a{font-size:9px;min-width:36px;padding:3px 8px}.bottom-nav a.active{padding:3px 12px 5px}.modal-close{width:36px;height:36px;font-size:20px}}
.tabs{display:flex;gap:8px;background:#edf2f7;border-radius:18px;padding:6px;margin-bottom:14px}.tabs label{flex:1;text-align:center;border-radius:14px;font-weight:800;cursor:pointer}.tabs input{display:none}.tabs span{display:block;padding:10px;border-radius:12px}.tabs input:checked+span{background:#004870;color:white}hr{border:0;border-top:1px solid rgba(0,72,112,.08);margin:16px 0}.auth-card{max-width:720px;max-height:calc(100vh - 32px);overflow:auto}

/* ============================================================
   FIX 97LiNK - Tailles images/logo + responsive propre
   Empêche les images originales (1024px/1536px) de casser la mise en page.
   ============================================================ */
img, svg, video, canvas {
    max-width: 100%;
}
img {
    height: auto;
}

/* Header : logo toujours petit, jamais pleine largeur */
.app-header .logo-wrap a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 0;
}
.app-header .logo-wrap img,
.site-logo,
.header-logo {
    display: block;
    width: auto !important;
    height: 38px !important;
    max-width: 132px !important;
    object-fit: contain !important;
    flex-shrink: 0;
}

/* Auth/login/register : logo contrôlé */
.logo-big img {
    width: 86px !important;
    height: 62px !important;
    max-width: 86px !important;
    object-fit: contain !important;
    border-radius: 16px;
    padding: 6px;
    background: #ffffff;
}

/* Welcome : logo contrôlé */
.welcome-logo img {
    width: 86px !important;
    height: 86px !important;
    max-width: 86px !important;
    object-fit: contain !important;
}

/* Grande image accueil : hauteur limitée, design propre */
.hero-wrapper {
    display: block;
    width: 100%;
    height: clamp(230px, 48vw, 380px);
    max-height: 380px;
    border-radius: 24px;
    overflow: hidden;
}
.hero-image {
    width: 100% !important;
    height: 100% !important;
    max-height: 380px;
    object-fit: cover !important;
    object-position: center center;
    display: block;
}
.hero-overlay {
    border-radius: 24px;
}

/* Héros des pages internes : mêmes images de maquette mais cadrées */
.page-hero {
    width: 100%;
    height: clamp(150px, 30vw, 220px);
    max-height: 220px;
    min-height: 150px;
    border-radius: 22px;
}
.page-hero img {
    width: 100% !important;
    height: 100% !important;
    max-height: 220px;
    object-fit: cover !important;
    object-position: center center;
    display: block;
}

/* Images dans les cartes/listes : jamais gigantesques */
.card img,
.glass img,
.parcel-card img,
.item img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
}
.card > img,
.glass > img,
.parcel-card > img {
    display: block;
    max-height: 260px;
    margin-left: auto;
    margin-right: auto;
}

/* Modale image : garde la photo visible sans prendre toute la page */
.modal-box {
    width: min(92vw, 760px);
}
.modal-box img {
    width: 100% !important;
    height: auto !important;
    max-height: 70vh !important;
    object-fit: contain !important;
}

/* Navigation et cartes plus propres sur mobile */
.main-content {
    width: 100%;
}
.bottom-nav {
    max-width: 720px;
    margin: 0 auto;
}

@media (min-width: 761px) {
    .main-content:not(.admin-content) {
        padding-left: 18px;
        padding-right: 18px;
    }
    .hero-wrapper {
        height: 360px;
    }
}

@media (max-width: 760px) {
    .app-header .logo-wrap img,
    .site-logo,
    .header-logo {
        height: 30px !important;
        max-width: 108px !important;
    }
    .hero-wrapper {
        height: clamp(210px, 62vw, 320px);
        max-height: 320px;
        border-radius: 20px;
    }
    .hero-image {
        max-height: 320px;
    }
    .page-hero {
        height: 168px;
        min-height: 168px;
        max-height: 168px;
        border-radius: 18px;
    }
    .page-hero img {
        max-height: 168px;
    }
    .page-hero .page-hero-content {
        padding: 20px 16px;
    }
    .page-hero h1,
    .page-hero h2 {
        font-size: 22px;
    }
    .page-hero p {
        font-size: 13px;
        max-width: 100%;
    }
    .logo-big img {
        width: 76px !important;
        height: 56px !important;
        max-width: 76px !important;
    }
    .welcome-logo img {
        width: 72px !important;
        height: 72px !important;
        max-width: 72px !important;
    }
}

@media (max-width: 380px) {
    .app-header .logo-wrap img,
    .site-logo,
    .header-logo {
        height: 26px !important;
        max-width: 92px !important;
    }
    .hero-wrapper {
        height: 210px;
        max-height: 210px;
    }
    .page-hero {
        height: 142px;
        min-height: 142px;
        max-height: 142px;
    }
    .page-hero img {
        max-height: 142px;
    }
}

/* ============================================================
   Smart UX fix 97LiNK : plans, QR scan, profil moderne, paramètres,
   actions et mode sombre.
   ============================================================ */
.index-hero {
    background: linear-gradient(135deg,#ffffff,#eef7fb) !important;
    height: clamp(280px, 58vw, 460px) !important;
    max-height: 460px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.index-hero .hero-image {
    object-fit: contain !important;
    padding: 8px !important;
    background: #fff !important;
}
.modern-card {
    border: 1px solid rgba(0,72,112,.08);
    box-shadow: 0 18px 50px rgba(0,72,112,.08);
}
.soft-card {
    background: linear-gradient(135deg, rgba(0,72,112,.06), rgba(251,120,0,.05));
    border: 1px solid rgba(0,72,112,.08);
}
.compact-title { margin: 0 0 14px; }
.compact-title h2 { font-size: 20px; }
.compact-title p { color: #68727d; font-size: 13px; }
.price-preview {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #f3f8fb;
    border: 1px dashed rgba(0,72,112,.25);
    color: #004870;
    border-radius: 18px;
    padding: 14px;
    margin: 10px 0 16px;
}
.price-preview .material-symbols-outlined { font-size: 30px; }
.plan-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 12px; }
.plan-card {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(0,72,112,.08);
}
.plan-card strong { display:block; color:#004870; margin-bottom: 4px; }
.plan-card span { font-size: 12px; color:#68727d; }
.profile-hero {
    display: flex;
    gap: 16px;
    align-items: center;
    background: linear-gradient(135deg,#004870,#007bba);
    color: #fff;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,72,112,.20);
}
.profile-hero h1 { font-size: clamp(26px, 5vw, 38px); margin: 0 0 5px; }
.profile-hero p { opacity:.86; }
.profile-avatar {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    display:flex;
    align-items:center;
    justify-content:center;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.28);
    font-size: 32px;
    font-weight: 900;
    flex: 0 0 auto;
}
.profile-badges { display:flex; gap:8px; flex-wrap:wrap; margin-top: 10px; }
.profile-badges .badge { background: rgba(255,255,255,.18); color:#fff; border-color: rgba(255,255,255,.22); }
.stat-card { min-height: 128px; display:flex; flex-direction:column; gap:6px; }
.stat-card .material-symbols-outlined { font-size: 30px; color:#004870; }
.stat-card p { color:#68727d; font-size: 13px; }
.stat-card strong { font-size: 15px; color:#191c1f; }
.stat-card small { color:#68727d; }
.role-card { position:relative; overflow:hidden; }
.role-card:before { content:''; position:absolute; width:160px; height:160px; border-radius:50%; top:-70px; right:-70px; background:rgba(0,72,112,.07); }
.role-icon { width:54px; height:54px; border-radius:18px; background:#eff7fb; color:#004870; display:flex; align-items:center; justify-content:center; margin-bottom:10px; }
.role-icon .material-symbols-outlined { font-size:30px; }
.settings-hero-card { display:flex; gap:16px; align-items:center; background:linear-gradient(135deg,rgba(0,72,112,.08),rgba(251,120,0,.08)); }
.settings-hero-card .material-symbols-outlined { font-size:38px; color:#004870; }
.setting-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 0; border-bottom:1px solid rgba(0,72,112,.08); }
.setting-row span { display:flex; flex-direction:column; gap:3px; }
.setting-row small { color:#68727d; }
.setting-row input[type=checkbox] { width:22px; height:22px; accent-color:#004870; }
.security-list { display:grid; gap:10px; margin: 10px 0 16px; }
.security-list div { display:flex; gap:10px; align-items:center; padding:10px 12px; border-radius:14px; background:rgba(0,72,112,.05); }
.security-list .material-symbols-outlined { color:#004870; }
.info-tile .material-symbols-outlined, .action-tile .material-symbols-outlined { color:#004870; font-size:32px; margin-bottom:8px; }
.action-panel { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.action-card-xl {
    display:flex;
    gap:16px;
    align-items:center;
    padding:20px;
    min-height: 130px;
    border-radius:28px;
    color:#fff;
    text-decoration:none;
    box-shadow: 0 18px 42px rgba(0,72,112,.16);
}
.action-card-xl .material-symbols-outlined { font-size:42px; }
.action-card-xl h3 { margin:0 0 5px; color:#fff; }
.action-card-xl p { margin:0; opacity:.86; }
.action-card-xl.primary { background:linear-gradient(135deg,#004870,#007bba); }
.action-card-xl.secondary { background:linear-gradient(135deg,#994700,#fb7800); }
.action-tile { text-decoration:none; color:inherit; min-height:150px; }
.qr-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap:14px; }
.qr-card { text-align:center; }
.qr-card canvas { width:180px!important; height:180px!important; max-width:100%; margin:0 auto 10px; border-radius:16px; padding:8px; background:#fff; }
.qr-card code { display:block; white-space:normal; word-break:break-all; background:rgba(0,72,112,.06); padding:8px; border-radius:12px; font-size:11px; }
.qr-reader { min-height: 290px; border: 1px dashed rgba(0,72,112,.25); border-radius:20px; overflow:hidden; background:#f7fbfd; }
.qr-mini-list { display:grid; gap:8px; margin:12px 0; }
.qr-mini-list div { display:flex; justify-content:space-between; gap:12px; align-items:center; padding:10px 12px; border-radius:14px; background:rgba(255,255,255,.7); }
.pricing-table .price-input { max-width:120px; padding:10px 12px; border-radius:12px; }
.switch input { display:none; }
.switch span { width:48px; height:28px; display:inline-block; border-radius:999px; background:#cfd8df; position:relative; transition:.2s; }
.switch span:before { content:''; position:absolute; width:22px; height:22px; border-radius:50%; background:#fff; top:3px; left:3px; transition:.2s; box-shadow:0 2px 5px rgba(0,0,0,.15); }
.switch input:checked + span { background:#004870; }
.switch input:checked + span:before { transform:translateX(20px); }
.mini-stats { margin: 14px 0; }
.mini-stats div { background: rgba(0,72,112,.05); border-radius:16px; padding:12px; }
.mini-stats span { display:block; color:#68727d; font-size:12px; }
.mini-stats strong { display:block; color:#191c1f; margin-top:3px; }

html[data-theme="dark"], html[data-theme="dark"] body {
    background:#0d1117;
    color:#e8edf2;
}
html[data-theme="dark"] .app-header,
html[data-theme="dark"] .bottom-nav,
html[data-theme="dark"] .card,
html[data-theme="dark"] .parcel-card,
html[data-theme="dark"] .auth-card {
    background: rgba(21,28,37,.92);
    color:#e8edf2;
    border-color: rgba(255,255,255,.08);
}
html[data-theme="dark"] .main-content { color:#e8edf2; }
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] .stat-card strong,
html[data-theme="dark"] .mini-stats strong { color:#ffffff; }
html[data-theme="dark"] .muted,
html[data-theme="dark"] .small,
html[data-theme="dark"] .stat-card p,
html[data-theme="dark"] .stat-card small,
html[data-theme="dark"] .plan-card span,
html[data-theme="dark"] .compact-title p { color:#a7b3c2!important; }
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    background:#111820!important;
    color:#f4f7fb!important;
    border-color:rgba(255,255,255,.12)!important;
}
html[data-theme="dark"] .soft-card,
html[data-theme="dark"] .price-preview,
html[data-theme="dark"] .security-list div,
html[data-theme="dark"] .mini-stats div,
html[data-theme="dark"] .qr-mini-list div,
html[data-theme="dark"] .plan-card {
    background:rgba(255,255,255,.05)!important;
    border-color:rgba(255,255,255,.08)!important;
}
html[data-theme="dark"] .icon-btn,
html[data-theme="dark"] .stat-card .material-symbols-outlined,
html[data-theme="dark"] .info-tile .material-symbols-outlined,
html[data-theme="dark"] .action-tile .material-symbols-outlined,
html[data-theme="dark"] .settings-hero-card .material-symbols-outlined,
html[data-theme="dark"] .security-list .material-symbols-outlined { color:#7bc7ff; }
html[data-theme="dark"] .index-hero { background:linear-gradient(135deg,#111820,#172332)!important; }
html[data-theme="dark"] .index-hero .hero-image { background:#111820!important; }
html[data-theme="dark"] .table th,
html[data-theme="dark"] .table td { border-color:rgba(255,255,255,.08); color:#e8edf2; }

@media(max-width:760px){
    .index-hero { height: clamp(250px, 78vw, 360px) !important; }
    .plan-grid,.action-panel { grid-template-columns:1fr; }
    .profile-hero { align-items:flex-start; border-radius:24px; padding:20px; }
    .profile-avatar { width:62px; height:62px; border-radius:20px; font-size:26px; }
    .action-card-xl { min-height:110px; border-radius:22px; }
}

/* ============================================================
   Final responsive image + wallet/i18n adjustments
   ============================================================ */
.hero-wrapper.index-hero{
    width:min(100%,430px)!important;
    height:auto!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    margin:0 auto!important;
    display:block!important;
    background:#fff!important;
    line-height:0!important;
}
.hero-wrapper.index-hero .hero-image{
    width:100%!important;
    height:auto!important;
    max-height:none!important;
    display:block!important;
    object-fit:contain!important;
    padding:0!important;
}
.index-hero .hero-overlay{
    border-radius:20px;
    padding:22px 20px;
}
.wallet-notice{
    display:flex;
    gap:12px;
    align-items:flex-start;
    padding:14px;
    border-radius:18px;
    background:linear-gradient(135deg,rgba(0,72,112,.08),rgba(251,120,0,.08));
    border:1px solid rgba(0,72,112,.10);
    margin:10px 0 16px;
}
.wallet-notice .material-symbols-outlined{font-size:30px;color:#004870;flex:0 0 auto}
.wallet-row{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.payout-box{background:rgba(0,72,112,.05);border:1px solid rgba(0,72,112,.08);border-radius:18px;padding:14px;margin:10px 0 14px}
.language-badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;background:rgba(0,72,112,.08);color:#004870;padding:6px 10px;font-weight:800;font-size:12px}
html[data-theme="dark"] .wallet-notice,
html[data-theme="dark"] .payout-box{background:rgba(255,255,255,.05)!important;border-color:rgba(255,255,255,.08)!important}
html[data-theme="dark"] .wallet-notice .material-symbols-outlined{color:#7bc7ff}
@media(max-width:760px){
    .hero-wrapper.index-hero{width:min(100%,390px)!important}
    .index-hero .hero-overlay{padding:18px 16px}
}
@media(min-width:900px){
    .hero-wrapper.index-hero{width:min(100%,480px)!important}
}

/* ============================================================
   Ajustements demandés : QR image, accueil public, responsive
   ============================================================ */
.qr-card .qr-image{width:190px;max-width:100%;height:auto;display:block;margin:0 auto 12px;border-radius:16px;padding:8px;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.06)}
.landing-section .material-symbols-outlined,.landing-card .material-symbols-outlined{font-size:34px;color:#004870;margin-bottom:10px}.landing-card{min-height:190px}.landing-footer-links a{word-break:break-word}.enterprise-fields{transition:opacity .2s ease}.main-content{width:100%}.table-wrap{max-width:100%}img.qr-image{image-rendering:auto}
@media(max-width:760px){.landing-card{min-height:auto}.hero.landing-hero{padding:24px 18px}.landing-section{gap:12px}.item form,.item .btn{width:100%}.item>div:last-child{min-width:0!important;text-align:left!important;width:100%}.qr-card .qr-image{width:170px}.auth-card{max-width:100%}}
@media(max-width:380px){.qr-card .qr-image{width:150px}.hero.landing-hero h1{font-size:24px}}
.bottom-nav{overflow-x:auto;scrollbar-width:none}.bottom-nav::-webkit-scrollbar{display:none}.admin-content+.bottom-nav a{flex:0 0 auto}

/* ============================================================
   Bouton œil pour afficher/masquer les mots de passe
   ============================================================ */
.password-toggle-wrap{position:relative;width:100%;display:block}
.password-toggle-wrap>.password-toggle-input{width:100%;padding-right:52px!important}
.password-toggle-btn{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:40px;height:40px;border:0!important;border-radius:12px;background:transparent!important;color:#004870;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0!important;margin:0!important;line-height:1;z-index:3;box-shadow:none!important;appearance:none;-webkit-appearance:none;transition:background .18s ease,color .18s ease,transform .18s ease}
.password-toggle-btn:hover{background:rgba(0,72,112,.08)!important;transform:translateY(-50%) scale(1.02)}
.password-toggle-btn:focus-visible{outline:2px solid rgba(0,72,112,.35);outline-offset:2px}
.password-toggle-btn .password-eye-icon{font-size:22px;font-variation-settings:'FILL' 0,'wght' 500,'GRAD' 0,'opsz' 24;display:block}
html[data-theme="dark"] .password-toggle-btn{color:#fff}
html[data-theme="dark"] .password-toggle-btn:hover{background:rgba(255,255,255,.12)!important}

/* ============================================================
   97LiNK final — lisibilité, responsive et cohérence public
   Conserve la charte existante, sans changement de palette.
   ============================================================ */
html,body{max-width:100%;overflow-x:hidden}
*,*::before,*::after{box-sizing:border-box}
img,video,canvas,svg{max-width:100%}
input,select,textarea,button{max-width:100%}
.card,.item,.modern-card,.soft-card,.landing-card,.field,.form-grid>*{min-width:0}
.table-wrap{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.table{min-width:max-content}
.landing-centered{text-align:center}
.landing-centered>p{max-width:820px;margin-left:auto;margin-right:auto}
.landing-actions,.legal-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:center;margin-top:18px}
.landing-section-title{text-align:center}
.landing-section-title p{max-width:760px;margin-left:auto;margin-right:auto}
.landing-feature-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.landing-feature-row>div{flex:1;min-width:220px}
.landing-feature-icon{font-size:34px!important;color:#004870!important;margin-bottom:0!important}
.landing-card,.landing-section>.card{text-align:center}
.landing-section>.card p{margin-left:auto;margin-right:auto}
.legal-content{display:grid;gap:18px;max-width:980px;margin-left:auto;margin-right:auto}
.legal-content .card{line-height:1.72}
.legal-content h2{margin-top:0}
.legal-content a:not(.btn){font-weight:700;overflow-wrap:anywhere}
.check-consent{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:10px}
.check-consent input[type="checkbox"]{width:auto!important;flex:0 0 auto;margin-top:4px}
.recovery-card{width:min(100%,620px)}
.install-card{width:min(100%,760px)}
.install-checks .item{display:flex;align-items:center;justify-content:space-between;gap:12px}
.bottom-nav{padding-bottom:max(8px,env(safe-area-inset-bottom))}
.main-content{padding-bottom:calc(86px + env(safe-area-inset-bottom))}
@media(max-width:760px){
  .main-content{width:100%;padding-left:14px;padding-right:14px}
  .grid,.grid-2,.grid-3,.grid-4,.form-grid{min-width:0}
  .landing-actions,.legal-actions{width:100%}
  .landing-actions .btn,.legal-actions .btn{flex:1 1 160px;text-align:center}
  .landing-feature-row{align-items:flex-start}
  .landing-feature-row .btn{width:100%}
  .legal-content{gap:12px}
  .legal-content .card{padding:18px}
  .item{max-width:100%;overflow:hidden}
  .item form{min-width:0!important}
  .auth-card,.login-card,.glass{width:min(100%,calc(100vw - 24px));margin-left:auto;margin-right:auto}
  .hero.landing-hero h1,.landing-section-title h2{text-align:center}
}
@media(max-width:420px){
  .main-content{padding-left:10px;padding-right:10px}
  .card,.modern-card,.soft-card{border-radius:18px}
  .legal-content .card{padding:16px}
  .bottom-nav a{min-width:70px}
}
.antibot-check{border:1px solid rgba(0,72,112,.14);border-radius:14px;padding:12px 14px;background:rgba(0,72,112,.025);align-items:center!important}.antibot-check input[type="checkbox"]{width:22px!important;height:22px!important;accent-color:#004870;margin-top:0!important}

/* Refonte fonctionnelle 20260914-refonte-v2 : aucun changement de charte visuelle. */
.antibot-field{position:relative}.antibot-field.is-checked{border-color:rgba(0,80,18,.28);background:rgba(0,80,18,.035)}
.qr-reader video{display:block;width:100%!important;height:auto!important;max-height:420px!important;object-fit:cover!important;border-radius:18px}
.qr-reader canvas{max-width:100%!important;height:auto!important}.qr-reader__dashboard_section_csr button{font:inherit}
