body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f7f7;
    color: #222;
}


/* ========================= */
/* Title & Menu Header */
/* ========================= */
header.top-bar {
    display: flex !important;
    flex-direction: row !important;   /* 👈 CLÉ */
    align-items: center !important;
    gap: 0.75rem !important;
}

/* sécurité : aucun enfant ne force la colonne */
header.top-bar > * {
    display: flex;
    align-items: center;
}

.top-bar {
    display: flex;
    align-items: center;          /* 👈 ALIGNEMENT VERTICAL */
    gap: 0.75rem;                 /* espace entre ☰ et logo */

    height: 56px;
    padding: 0 1rem;

    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.menu-btn {
    font-size: 1.6rem;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;               /* 👈 IMPORTANT */
    cursor: pointer;
}

.brand {
    display: flex;
    align-items: center;          /* 👈 ALIGNEMENT LOGO + TEXTE */
    gap: 0.4rem;
}

.brand-logo {
    font-size: 1.3rem;
    line-height: 1;               /* 👈 IMPORTANT */
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;               /* 👈 IMPORTANT */
}




/* ========================= */
/* NAVIGATION LATERAL */
/* ========================= */


.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: #fff;
    z-index: 100;
    padding: 1rem;

    transform: translateX(-100%);
    transition: transform 0.25s ease;
}
.side-menu.open {
    transform: translateX(0);
}


.side-menu nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.side-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
}

.side-menu hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0.6rem 0;
}

.side-menu.open {
    left: 0;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 90;
}

.menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}


/* ========================= */
/* NAV */
/* ========================= */


.mobile-nav a {
    color: var(--muted);
}

.side-menu a {
    color: var(--text);
}

section {
    padding: 1.5rem;
    background: #fff;
    margin: 1rem;
    border-radius: 6px;
}

form input {
    padding: 0.6rem;
    width: 70%;
    max-width: 400px;
}

form button {
    padding: 0.6rem 1rem;
    margin-left: 0.5rem;
}

.scan-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.7rem 1.2rem;
    background: #ff6a00;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.scan-btn:hover {
    background: #e85c00;
}

.ad-zone {
    border: 2px dashed #ccc;
    text-align: center;
    color: #666;
}




/* ========================= */
/* FOOTER */
/* ========================= */

.site-footer {
    display: center;
    padding: 1rem;
    font-size: 0.75rem;
    color: var(--muted);
    text-align: center;
}



/* ========================= */
/* USER */
/* ========================= */


.stats-grid {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.stat-box {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    display: block;
}


.review-text {
    white-space: pre-line;       /* respecte les retours à la ligne */
    word-break: break-word;      /* coupe les mots trop longs */
    overflow-wrap: break-word;   /* fallback moderne */
}

.review-item {
    padding: 10px 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
}

.review-actions a {
    margin-right: 10px;
    font-size: 0.9rem;
}



@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================= */
/* Photo
/* ========================= */



.main-photo img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 15px;
}

.photo-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.2s;
}

.thumb:hover {
    opacity: 1;
}

.more-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: white;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.more-thumb:hover {
    background: #333;
}
