/* assets/css/style.css */
:root {
    --ekone-primary: #2c3e50;
    --ekone-secondary: #3498db;
    --ekone-success: #27ae60;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8fafc;
}

.section {
    flex: 1;
}

/* Style des cartes de vérification */
.verification-card {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.verification-card:hover {
    transform: translateY(-2px);
}

/* Badge d'authentification */
.auth-badge {
    background: linear-gradient(135deg, var(--ekone-primary), var(--ekone-secondary));
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Animation pour la vérification */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.5s ease;
}

/* QR Code scanner style */
.qr-scanner-container {
    background: white;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

/* Table responsive */
.table-container {
    overflow-x: auto;
}

/* Footer fixe */
.footer {
    margin-top: auto;
    padding: 2rem 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .is-grouped {
        flex-direction: column;
    }
    
    .is-grouped .control {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* ===== Page publique de vérification — design fourni par le client, intégré tel quel ===== */
.public-verify-page { background: #fff; margin: 0; }
.public-verify-page a { color: #ef8f34; text-decoration: none; }
.public-verify-page a:hover { color: #d47620; }

/* .page : conteneur plein écran (le fond orange et les vagues s'étirent sur toute la largeur,
   quel que soit l'appareil — ordinateur, tablette, smartphone...) */
.public-verify-page .page {
    position: relative;
    width: 100%;
    overflow: hidden;
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
}

/* .page-content : le contenu (texte, téléphone, formulaire) reste lisible et centré,
   même quand le fond orange s'étire sur un très grand écran */
.public-verify-page .page-content {
    position: relative;
    z-index: 3;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 34px;
}

/* --- vagues --- */
.public-verify-page .wave-top { position: absolute; top: 0; left: 0; width: 100%; height: 533px; overflow: hidden; }
.public-verify-page .wave-bottom { position: absolute; bottom: 0; left: 0; width: 100%; height: 323px; overflow: hidden; }
.public-verify-page .wave-top svg,
.public-verify-page .wave-bottom svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Réserve, dans le flux normal, la même hauteur que la vague du bas (positionnée en absolu) :
   la hauteur totale de la page reste ainsi 100% dynamique, sans valeur fixe arbitraire. */
.public-verify-page .wave-bottom-spacer { height: 323px; }

.public-verify-page .blobs { position: absolute; top: 0; right: 0; width: 260px; height: 300px; overflow: hidden; pointer-events: none; }

/* --- motifs décoratifs à petits points, pour habiller les zones orange --- */
.public-verify-page .deco-dots {
    position: absolute;
    background-image: radial-gradient(rgba(255,255,255,.45) 1.5px, transparent 1.6px);
    background-size: 14px 14px;
    pointer-events: none;
    z-index: 1;
}
.public-verify-page .deco-dots-tr { top: 6px; right: 4%; width: 130px; height: 170px; }
.public-verify-page .deco-dots-br { bottom: 30px; right: 8%; width: 170px; height: 170px; }
.public-verify-page .deco-dots-tl { top: 60px; left: 3%; width: 110px; height: 140px; }
.public-verify-page .deco-dots-bl { bottom: 40px; left: 5%; width: 140px; height: 140px; }

@media (max-width: 900px) {
    .public-verify-page .deco-dots-tr { width: 90px; height: 120px; right: 2%; }
    .public-verify-page .deco-dots-br { width: 120px; height: 120px; right: 4%; }
    .public-verify-page .deco-dots-tl { width: 80px; height: 100px; left: 2%; }
    .public-verify-page .deco-dots-bl { width: 100px; height: 100px; left: 3%; }
}

@media (max-width: 640px) {
    .public-verify-page .deco-dots-tr,
    .public-verify-page .deco-dots-br,
    .public-verify-page .deco-dots-tl,
    .public-verify-page .deco-dots-bl { display: none; }
}

/* --- bloc héros (logo + titre + téléphone), hauteur alignée sur la vague du haut --- */
.public-verify-page .hero-block { position: relative; min-height: 453px; }

/* --- logo, en haut à gauche --- */
.public-verify-page .brand-logo {
    position: relative;
    padding-top: 22px;
    height: 40px;
    display: flex;
    align-items: center;
}
.public-verify-page .brand-logo img {
    display: block;
    height: 100%;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* --- titre --- */
.public-verify-page .hero-title {
    position: relative; margin: 0; padding-top: 16px; max-width: 620px;
    color: #fff; font-size: 27px; line-height: 1.5; font-weight: 800;
    letter-spacing: .2px; text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,.12);
}

/* --- téléphone (écran transparent) --- */
.public-verify-page .phone {
    position: absolute; top: 14px; right: 28px; width: 146px; height: 294px;
    border-radius: 24px; border: 4px solid #dde3ea; background: transparent;
    box-shadow: 0 10px 26px rgba(20,30,50,.22);
}
.public-verify-page .phone-inner {
    position: relative; width: 100%; height: 100%; border-radius: 19px;
    border: 4px solid #0e1116; overflow: hidden;
}
.public-verify-page .phone-notch {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 46px; height: 12px; background: #0e1116; border-radius: 0 0 9px 9px;
}

/* --- pagination points --- */
.public-verify-page .dots-nav { position: absolute; top: 150px; right: -20px; display: flex; flex-direction: column; align-items: center; gap: 9px; z-index: 3; }
.public-verify-page .dots-nav i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #ef8b33; background: #fff; }

/* --- message document invalide --- */
.public-verify-page .invalid-box {
    width: 100%; max-width: 920px; margin: 0 auto 18px; text-align: center;
    background: #fbe2e2; color: #7a1f1f; font-weight: 600; font-size: 13px;
    border-radius: 10px; padding: 14px 18px;
}
.public-verify-page .invalid-box .diag-link {
    display: block; margin-top: 6px; font-size: 11px; font-weight: 500;
    color: #9a5b5b; text-decoration: underline;
}

/* --- formulaire : centré à la fois horizontalement et verticalement dans l'espace blanc --- */
.public-verify-page .form-zone {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.public-verify-page .form {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}
.public-verify-page .fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}
.public-verify-page .field { display: block; border: 1px solid #dcdfe3; border-radius: 5px; background: #f1f2f4; padding: 12px 16px 10px; }
.public-verify-page .field span { display: block; font-size: 8px; letter-spacing: .6px; text-transform: uppercase; color: #9aa0a7; font-weight: 600; }
.public-verify-page .field input { width: 100%; border: 0; outline: none; background: transparent; font-family: inherit; font-size: 13px; color: #4a4f55; padding: 3px 0 0; }
.public-verify-page .btn {
    border: 0; cursor: pointer; font-family: inherit; font-weight: 600; font-size: 11px;
    color: #fff; background: #ef8b33; border-radius: 20px; padding: 11px 34px;
    box-shadow: 0 3px 8px rgba(239,139,51,.35); transition: background .16s ease;
}
.public-verify-page .btn:hover { background: #e07c27; }
.public-verify-page .btn:active { background: #d47620; }

/* --- pied de page --- */
.public-verify-page .footer-wrap { position: absolute; bottom: 0; left: 0; width: 100%; padding-bottom: 14px; color: #fff; z-index: 2; }
.public-verify-page .footer-col { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.public-verify-page .footer-col h2 { font-size: 17px; font-weight: 700; margin: 0 0 2px; }
.public-verify-page .footer-row { display: flex; align-items: flex-start; font-size: 11px; line-height: 1.5; }
.public-verify-page .footer-row svg { flex: none; margin-top: 2px; margin-right: 10px; fill: #fff; }
.public-verify-page .copyright {
    margin-top: 16px; padding-top: 10px; max-width: 420px; font-size: 11px;
    border-top: 1px solid rgba(255,255,255,.35);
}
.public-verify-page .copyright a { color: #fff; text-decoration: underline; }

/* ===== Tablette ===== */
@media (max-width: 900px) {
    .public-verify-page .page-content { padding: 0 26px; }
    .public-verify-page .hero-title { font-size: 24px; max-width: 480px; }
    .public-verify-page .phone { top: 14px; right: 10px; width: 124px; height: 252px; }
    .public-verify-page .dots-nav { right: -18px; }
    .public-verify-page .fields { max-width: 680px; }
}

/* ===== Smartphone ===== */
@media (max-width: 640px) {
    .public-verify-page .page-content { padding: 0 20px; }
    .public-verify-page .wave-top { height: 593px; }
    .public-verify-page .hero-block { min-height: 493px; }
    .public-verify-page .wave-bottom,
    .public-verify-page .wave-bottom-spacer { height: 286px; }
    .public-verify-page .hero-title { font-size: 19px; max-width: 60%; padding-top: 10px; }
    .public-verify-page .brand-logo { height: 32px; }
    .public-verify-page .phone { top: 8px; right: 6px; width: 90px; height: 182px; border-width: 3px; }
    .public-verify-page .phone-inner { border-width: 3px; }
    .public-verify-page .dots-nav { top: 100px; right: -14px; gap: 6px; }
    .public-verify-page .dots-nav i { width: 7px; height: 7px; }
    .public-verify-page .form-zone { min-height: 220px; }
    .public-verify-page .fields { grid-template-columns: 1fr; max-width: 420px; gap: 16px; }
}

@media (max-width: 380px) {
    .public-verify-page .hero-title { font-size: 16px; max-width: 55%; }
    .public-verify-page .phone { width: 74px; height: 150px; }
}