@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;500;600;700&family=Lilita+One&display=swap');

:root {
    --vert-foret:      #5A8F48;
    --beige-sable:     #D4C99E;
    --gris-anthracite: #689b54;
    --blanc-casse:     #F9FAF7;
    --font-titre: 'Fredoka', 'Lilita One', sans-serif;
    --font-corps: 'Nunito', 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-corps);
}

body {
    background: var(--blanc-casse);
    color: var(--gris-anthracite);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--vert-foret);
    font-family: var(--font-titre);
    margin-bottom: 15px;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 40px 0;
}

.navbar {
    background: white;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 90px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.nav-logo img { height: 60px; }
.nav-logo-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 20px;
    color: var(--vert-foret);
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
}
.nav-menu > a,
.nav-menu > .nav-drop > .nav-drop-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--gris-anthracite);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    height: 38px;
}
.nav-menu > a:hover,
.nav-menu > .nav-drop > .nav-drop-btn:hover {
    background: #f0f5ee;
    color: var(--vert-foret);
}
.nav-menu > a.nav-active {
    background: #e8f5e3;
    color: var(--vert-foret);
}

.nav-drop { position: relative; height: 100%; display: flex; align-items: center; }
.nav-drop-btn .drop-arrow {
    font-size: 0.65rem;
    opacity: 0.6;
    transition: transform 0.2s;
}
.nav-drop:hover .drop-arrow { transform: rotate(180deg); }
.nav-drop-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 200px;
    padding: 6px;
    z-index: 200;
}
.nav-drop:hover .nav-drop-menu { display: block; }
.nav-drop-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 7px;
    text-decoration: none;
    color: var(--gris-anthracite);
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.12s;
    white-space: nowrap;
}
.nav-drop-menu a:hover { background: #f0f5ee; color: var(--vert-foret); }
.nav-drop-menu a.nav-active { background: #e8f5e3; color: var(--vert-foret); }
.nav-drop-divider { height: 1px; background: #eee; margin: 4px 6px; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-role-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.nav-user-drop { position: relative; }
.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px 5px 5px;
    border-radius: 50px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}
.nav-user-btn:hover { background: #ebebeb; }
.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}
.nav-user-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gris-anthracite);
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-user-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 180px;
    padding: 6px;
    z-index: 200;
}
.nav-user-drop:hover .nav-user-menu { display: block; }
.nav-user-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 7px;
    text-decoration: none;
    color: var(--gris-anthracite);
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.12s;
}
.nav-user-menu a:hover { background: #f0f5ee; color: var(--vert-foret); }
.nav-user-menu .logout { color: #e74c3c; }
.nav-user-menu .logout:hover { background: #fdf0ef; color: #c0392b; }
.nav-user-menu-header {
    padding: 10px 12px 8px;
    border-bottom: 1px solid #eee;
    margin-bottom: 4px;
}
.nav-user-menu-header span {
    display: block;
    font-size: 0.8rem;
    color: #999;
}
.nav-user-menu-header strong {
    font-size: 0.9rem;
    color: var(--gris-anthracite);
}

.lang-dropdown {
    padding: 8px 12px;
    border: 2px solid var(--vert-foret);
    border-radius: 8px;
    background: white;
    color: var(--gris-anthracite);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s;
}
.lang-dropdown:hover {
    background: #f0f5ee;
}
.lang-dropdown:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(90, 143, 72, 0.1);
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.15s;
}
.nav-hamburger:hover { background: #f0f5ee; }
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gris-anthracite);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.25s;
}

.btn {
    background: var(--vert-foret);
    color: var(--blanc-casse);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-titre);
    transition: 0.3s ease;
    display: inline-block;
    text-decoration: none;
}
.btn:hover {
    background: #4a7a3e;
    box-shadow: 0 4px 12px rgba(90,143,72,0.3);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--vert-foret);
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}
.btn-primary:hover { background: #4a7c3a; }

.btn-secondary {
    background: var(--beige-sable);
    color: var(--gris-anthracite);
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
}
.btn-secondary:hover { background: #c9be93; }

.btn-outline {
    background: transparent;
    border: 2px solid var(--vert-foret);
    color: var(--vert-foret);
}
.btn-outline:hover {
    background: var(--vert-foret);
    color: var(--blanc-casse);
}

.btn-sm-ann {
    padding: 8px 15px !important;
    font-size: 0.9rem !important;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(90,143,72,0.1);
    margin-bottom: 30px;
    border: 1px solid rgba(90,143,72,0.15);
    transition: 0.3s ease;
}
.card:hover {
    box-shadow: 0 8px 20px rgba(90,143,72,0.15);
    transform: translateY(-2px);
}

.card-title { color: var(--vert-foret); font-family: var(--font-titre); }
.card-text  { color: var(--gris-anthracite); }

.announcement-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.announcement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
.announcement-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.announcement-type {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    width: fit-content;
}
.announcement-type.don   { background-color: #d4edda; color: #155724; }
.announcement-type.vente { background-color: #cce5ff; color: #004085; }
.announcement-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.3;
}
.announcement-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.announcement-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.announcement-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--vert-foret);
}
.announcement-user { font-size: 0.9rem; color: #999; }

.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.admin-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.admin-card .icon { font-size: 3rem; margin-bottom: 15px; }
.admin-card h3    { margin: 15px 0; color: var(--vert-foret); }
.admin-card p     { color: #666; margin: 0 0 20px 0; font-size: 0.9rem; }
.admin-card .btn  { display: inline-block; padding: 10px 25px; }

.action-card {
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: transform 0.2s;
}
.action-card:hover  { transform: translateY(-3px); }
.action-card .pts   { font-size: 1.6rem; font-weight: 800; color: var(--vert-foret); }
.action-card .count { font-size: 0.85rem; color: #888; margin-top: 4px; }

.form-control {
    width: 100%;
    padding: 12px 15px;
    margin-top: 5px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 2px solid #ddd;
    font-family: var(--font-corps);
    font-size: 0.95rem;
    transition: 0.3s ease;
}
.form-control:focus {
    border-color: var(--vert-foret);
    outline: none;
    box-shadow: 0 0 5px rgba(90,143,72,0.2);
    background-color: rgba(90,143,72,0.02);
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: var(--font-corps);
}

label {
    display: block;
    margin-bottom: 5px;
    color: var(--gris-anthracite);
    font-weight: 600;
    font-family: var(--font-titre);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
th {
    background: var(--vert-foret);
    color: white;
    padding: 15px;
    text-align: left;
    font-family: var(--font-titre);
    font-weight: 600;
}
td { padding: 12px 15px; border-bottom: 1px solid rgba(90,143,72,0.1); }
tr:hover { background: rgba(90,143,72,0.05); }

.badge {
    background: var(--beige-sable);
    color: var(--gris-anthracite);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.alert-success {
    background: rgba(90,143,72,0.15);
    border: 1px solid var(--vert-foret);
    color: var(--gris-anthracite);
}
.alert-danger {
    background: rgba(220,53,69,0.15);
    border: 1px solid #dc3545;
    color: #721c24;
}

.hero-section {
    background: linear-gradient(135deg, var(--vert-foret), #6fa059);
    padding: 60px 0;
    margin-bottom: 60px;
    color: var(--blanc-casse);
}
.hero-section h1 { color: var(--blanc-casse); font-size: 3rem; }
.hero-section p  { color: rgba(249,250,247,0.95); }

.feature-icon { font-size: 2.5rem; margin-bottom: 15px; }

.filter-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}
.filter-group { display: flex; flex-direction: column; }
.filter-group label { font-weight: 600; margin-bottom: 8px; color: #333; font-size: 0.95rem; }
.filter-group select,
.filter-group input { padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 0.95rem; }
.filter-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-buttons button { padding: 10px 20px; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; }
.filter-buttons .btn-apply { background-color: var(--vert-foret); color: white; }
.filter-buttons .btn-reset { background-color: #e0e0e0; color: #333; text-decoration: none; display: inline-block; border-radius: 6px; }

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.pagination a,
.pagination span {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}
.pagination a:hover {
    background-color: var(--vert-foret);
    color: white;
    border-color: var(--vert-foret);
}
.pagination .current {
    background-color: var(--vert-foret);
    color: white;
    border-color: var(--vert-foret);
}

.no-results { text-align: center; padding: 60px 20px; color: #666; }
.no-results h2 { color: #333; margin-bottom: 15px; }

.login-link { color: var(--vert-foret); font-weight: 600; text-decoration: none; }
.login-link:hover { text-decoration: underline; }

.admin-header {
    background: linear-gradient(135deg, var(--vert-foret), #6fa059);
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
}
.stat-card {
    background: white;
    border-left: 4px solid var(--vert-foret);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.stat-card h3 {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.stat-card .number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--vert-foret);
    margin: 0;
}
.admin-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.score-header {
    background: linear-gradient(135deg, var(--vert-foret), #6fa059);
    color: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
}
.score-number {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    font-family: 'Fredoka', sans-serif;
}
.score-label { font-size: 1.1rem; opacity: 0.9; margin-top: 8px; }
.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(255,255,255,0.2);
    font-weight: 700;
    font-size: 1rem;
    margin-top: 15px;
}
.progress-bar-track {
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    height: 10px;
    margin-top: 20px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 20px;
    background: white;
    transition: width 1s ease;
}

/* ===== Planning ===== */
.planning-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    table-layout: fixed;
}
.planning-table th,
.planning-table td {
    border: 1px solid #e0e0e0;
    padding: 0;
    vertical-align: top;
}
.planning-table th {
    background: var(--vert-foret, #2d6a4f);
    color: white;
    padding: 10px 5px;
    text-align: center;
    font-weight: 600;
}
.hour-label {
    width: 65px;
    min-width: 65px;
    background: #f8f9fa;
    color: #666;
    font-size: 0.78rem;
    text-align: center;
    padding: 4px 2px;
    height: 60px;
    vertical-align: top;
    font-weight: 600;
    border-right: 2px solid #ddd;
}
.day-cell {
    position: relative;
    height: 60px;
    min-width: 0;
}
.event-block {
    position: absolute;
    left: 2px;
    right: 2px;
    border-radius: 5px;
    padding: 3px 6px;
    font-size: 0.75rem;
    line-height: 1.3;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    cursor: default;
}
.event-block strong {
    display: block;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.week-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.week-nav a.btn {
    font-size: 0.9rem;
    padding: 8px 18px;
}
.week-label {
    font-weight: 600;
    color: var(--gris-anthracite, #333);
}
.legend {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.85rem;
}
.legend-dot {
    width: 13px;
    height: 13px;
    border-radius: 3px;
    flex-shrink: 0;
}
.user-selector-form {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.user-selector-form select {
    padding: 7px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}
.table-wrapper {
    overflow-x: auto;
}

footer {
    margin-top: 60px;
    padding: 40px 20px;
    text-align: center;
    background: var(--gris-anthracite);
    color: var(--blanc-casse);
}
footer h5 { color: var(--beige-sable); font-size: 1.1rem; margin-bottom: 10px; }
footer a  { color: var(--blanc-casse); text-decoration: none; transition: 0.3s ease; }
footer a:hover { color: var(--beige-sable); }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }

@media (max-width: 900px) {
    .navbar { padding: 0 16px; flex-wrap: wrap; height: auto; min-height: 64px; }
    .nav-hamburger { display: block; }
    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 8px 0 16px;
        gap: 2px;
        border-top: 1px solid #eee;
        margin-top: 4px;
    }
    .nav-menu.open { display: flex; }
    .nav-menu > a,
    .nav-menu > .nav-drop > .nav-drop-btn { width: 100%; }
    .nav-drop { width: 100%; flex-direction: column; align-items: flex-start; height: auto; }
    .nav-drop-menu {
        display: none !important;
        position: static;
        box-shadow: none;
        padding: 0 0 0 16px;
        width: 100%;
    }
    .nav-drop.mobile-open .nav-drop-menu { display: block !important; }
    .nav-role-badge { display: none; }
}

@media (max-width: 768px) {
    .container { width: 95%; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .hero-section h1 { font-size: 2rem; }
}

/* ---- Hero (landing page) ---- */
.lp-hero {
    background: linear-gradient(135deg, #3d6b2d 0%, #5A8F48 55%, #7ab560 100%);
    padding: 90px 0 110px;
    position: relative;
    overflow: hidden;
}
.lp-hero::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 60px;
    background: var(--blanc-casse);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.lp-hero-inner {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.lp-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.18);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
}
.lp-hero h1 {
    color: white;
    font-size: 3.4rem;
    line-height: 1.15;
    margin-bottom: 20px;
}
.lp-hero-sub {
    color: rgba(255,255,255,0.88);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 36px;
}
.lp-hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.lp-btn-white {
    background: white;
    color: var(--vert-foret);
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    font-family: var(--font-titre);
    transition: transform 0.2s, box-shadow 0.2s;
}
.lp-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
.lp-btn-ghost {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.7);
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    font-family: var(--font-titre);
    transition: background 0.2s, border-color 0.2s;
}
.lp-btn-ghost:hover {
    background: rgba(255,255,255,0.12);
    border-color: white;
}
.lp-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.lp-hero-logo-wrap {
    width: 280px;
    height: 280px;
    background: white;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 70px rgba(255,255,255,0.12), 0 12px 40px rgba(0,0,0,0.2);
}
.lp-hero-logo-wrap img {
    width: 210px;
    height: 210px;
    object-fit: contain;
}

/* ---- Stats ---- */
.lp-stats {
    display: flex;
    justify-content: center;
    gap: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(90,143,72,0.12);
    margin: -30px auto 0;
    width: 90%;
    max-width: 900px;
    position: relative;
    z-index: 10;
    overflow: hidden;
}
.lp-stat {
    flex: 1;
    text-align: center;
    padding: 28px 20px;
    border-right: 1px solid #f0f0f0;
}
.lp-stat:last-child { border-right: none; }
.lp-stat-num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--vert-foret);
    font-family: var(--font-titre);
    line-height: 1;
    margin-bottom: 6px;
}
.lp-stat-label { font-size: 0.82rem; color: #888; font-weight: 600; }

/* ---- How it works ---- */
.lp-section {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 70px 0;
}
.lp-section-title {
    text-align: center;
    margin-bottom: 14px;
}
.lp-section-title h2 { font-size: 2rem; color: var(--vert-foret); margin-bottom: 10px; }
.lp-section-title p { color: #888; font-size: 1rem; max-width: 500px; margin: auto; }
.lp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    position: relative;
}
.lp-steps::before {
    content: '';
    position: absolute;
    top: 38px; left: calc(16.6% + 10px); right: calc(16.6% + 10px);
    height: 2px;
    background: linear-gradient(to right, var(--vert-foret), #a8d08a);
    z-index: 0;
}
.lp-step {
    text-align: center;
    position: relative;
    z-index: 1;
}
.lp-step-num {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vert-foret), #7ab560);
    color: white;
    font-size: 1.8rem;
    font-weight: 900;
    font-family: var(--font-titre);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 6px 18px rgba(90,143,72,0.35);
}
.lp-step h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--vert-foret); }
.lp-step p { color: #777; font-size: 0.92rem; line-height: 1.6; }

/* ---- Roles ---- */
.lp-roles {
    background: #f4f8f2;
    padding: 70px 0;
}
.lp-roles-inner {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}
.lp-role-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 50px;
}
.lp-role-card {
    background: white;
    border-radius: 16px;
    padding: 36px 28px;
    box-shadow: 0 4px 16px rgba(90,143,72,0.08);
    border: 1.5px solid rgba(90,143,72,0.1);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}
.lp-role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(90,143,72,0.16);
}
.lp-role-icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
    width: 64px;
    height: 64px;
    background: #e8f5e3;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lp-role-card h3 { font-size: 1.2rem; color: var(--vert-foret); margin-bottom: 10px; }
.lp-role-card p { color: #666; font-size: 0.9rem; line-height: 1.65; flex: 1; }
.lp-role-perks {
    list-style: none;
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.lp-role-perks li {
    font-size: 0.85rem;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.lp-role-perks li::before {
    content: '✓';
    color: var(--vert-foret);
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ---- CTA finale ---- */
.lp-cta {
    background: linear-gradient(135deg, var(--vert-foret), #3d6b2d);
    padding: 80px 20px;
    text-align: center;
    color: white;
}
.lp-cta h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 14px;
}
.lp-cta p {
    color: rgba(255,255,255,0.82);
    font-size: 1.05rem;
    margin-bottom: 34px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.lp-cta-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   MESSAGERIE
   ============================================================ */

/* Navbar badge non-lus */
.nav-msg-link { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.nav-msg-badge {
    position: absolute;
    top: -6px; right: -10px;
    background: #e74c3c;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* Liste des discussions */
.msg-list { display: flex; flex-direction: column; gap: 10px; max-width: 700px; }
.msg-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    text-decoration: none;
    color: var(--gris-anthracite);
    transition: transform 0.15s, box-shadow 0.15s;
}
.msg-item:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
.msg-unread { border-left: 4px solid var(--vert-foret); background: #f0f7ee; }
.msg-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--vert-foret);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.msg-info { flex: 1; display: flex; flex-direction: column; }
.msg-name { font-weight: 600; font-size: 0.95rem; }
.msg-date { font-size: 0.78rem; color: #888; margin-top: 2px; }
.msg-badge {
    background: #e74c3c;
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    flex-shrink: 0;
}
.msg-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}
.msg-empty p { margin-bottom: 12px; }

/* Fenêtre de chat */
.chat-container {
    max-width: 700px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 70vh;
}
.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    font-size: 1rem;
}
.chat-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--vert-foret);
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.chat-box {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-empty { text-align: center; color: #aaa; margin: auto; }
.chat-msg { display: flex; flex-direction: column; max-width: 70%; }
.chat-sent { align-self: flex-end; align-items: flex-end; }
.chat-received { align-self: flex-start; align-items: flex-start; }
.chat-sender { font-size: 0.75rem; color: #888; margin-bottom: 3px; }
.chat-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
}
.chat-sent .chat-bubble { background: var(--vert-foret); color: white; border-bottom-right-radius: 4px; }
.chat-received .chat-bubble { background: #f0f0f0; color: #333; border-bottom-left-radius: 4px; }
.chat-time { font-size: 0.7rem; color: #aaa; margin-top: 4px; }
.chat-form { padding: 14px 20px; border-top: 1px solid #eee; }
.chat-input-row { display: flex; gap: 10px; }
.chat-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}
.chat-input:focus { border-color: var(--vert-foret); }

/* ============================================================ */

@media (max-width: 900px) {
    .lp-hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .lp-hero { padding: 60px 0 80px; }
    .lp-hero h1 { font-size: 2.2rem; }
    .lp-hero-visual { display: none; }
    .lp-stats { flex-wrap: wrap; }
    .lp-stat { min-width: 45%; }
    .lp-steps { grid-template-columns: 1fr; }
    .lp-steps::before { display: none; }
    .lp-role-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   UPLOAD IMAGES ANNONCES
   ============================================================ */

.img-upload-section h3 { margin-bottom: 4px; }

/* Grille des miniatures */
.img-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.img-thumb {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.img-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.img-delete-btn {
    position: absolute;
    top: 4px; right: 4px;
    background: rgba(231,76,60,0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px; height: 24px;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.img-delete-btn:hover { background: #c0392b; }

/* Zone de drop */
.img-dropzone {
    border: 2px dashed var(--vert-foret);
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    background: #f9fdf7;
}
.img-dropzone:hover, .img-dropzone.dragover {
    background: #edf7e9;
    border-color: #3d6b2e;
}
.img-dropzone-inner p { margin: 8px 0 4px; color: var(--vert-foret); font-weight: 600; }
.img-dropzone-inner small { color: #888; }

/* Barre de progression */
.upload-bar {
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    overflow: hidden;
}
.upload-bar-fill {
    height: 100%;
    background: var(--vert-foret);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0;
}

/* ============================================================
   PAGE DÉTAIL ANNONCE
   ============================================================ */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--vert-foret);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 24px;
    transition: gap 0.2s;
}
.back-link:hover { gap: 10px; }

.detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 768px) {
    .detail-container { grid-template-columns: 1fr; gap: 24px; }
}

/* Galerie */
.detail-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    position: sticky;
    top: 110px;
}
.detail-gallery-main {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.detail-gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.detail-gallery-thumb {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
}
.detail-gallery-thumb:hover { transform: scale(1.05); }
.detail-gallery-thumb.active { border-color: var(--vert-foret); }
.detail-no-image {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #f0f4ee 0%, #e8f0e5 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b5c9af;
    font-size: 4rem;
    border: 2px dashed #c8dcc3;
}

/* Badges type + condition */
.badge-type {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
}
.badge-type.don   { background: #d4edda; color: #1a6b30; }
.badge-type.vente { background: #dbeafe; color: #1e40af; }
.badge-condition {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}
.badge-condition.neuf     { background: #d4edda; color: #1a6b30; }
.badge-condition.bon      { background: #d1ecf1; color: #0c5460; }
.badge-condition.usage    { background: #fff3cd; color: #856404; }
.badge-condition.recycle  { background: #e2d9f3; color: #4a1d96; }

/* Prix */
.price-display {
    font-size: 2rem;
    font-weight: 800;
    color: var(--vert-foret);
    font-family: var(--font-titre);
    margin: 16px 0 20px;
    letter-spacing: -0.5px;
}

/* Carte vendeur */
.seller-card {
    background: linear-gradient(135deg, #f4f9f2 0%, #eaf4e6 100%);
    border: 1px solid #cde4c7;
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 24px;
}
.seller-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e2d;
    margin-bottom: 4px;
}
.seller-type {
    font-size: 0.85rem;
    color: #7a9e76;
    margin-bottom: 14px;
}
.contact-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--vert-foret);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-corps);
    transition: background 0.2s, transform 0.1s;
}
.contact-btn:hover { background: #4a7a3a; transform: translateY(-1px); }

/* Sections info */
.info-section {
    background: white;
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.info-section h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--vert-foret);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaf4e6;
}
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.95rem;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: #888; font-weight: 500; }
.info-value { color: #333; font-weight: 600; }
.description {
    color: #444;
    line-height: 1.7;
    font-size: 0.97rem;
    white-space: pre-line;
}

/* ============================================================
   PAGES PAIEMENT (success / cancel)
   ============================================================ */

.payment-box {
    background: white;
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    margin: 0 auto;
}
.payment-icon { font-size: 4rem; margin-bottom: 16px; line-height: 1; }
.payment-box h1 { margin-bottom: 12px; }
.payment-box p  { color: #666; margin-bottom: 8px; font-size: 1rem; }
.payment-success { border-top: 6px solid #27ae60; }
.payment-error   { border-top: 6px solid #e74c3c; }
.payment-cancel  { border-top: 6px solid #f39c12; }
.payment-pending { border-top: 6px solid #3498db; }

.payment-details {
    background: #f8faf8;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0 8px;
    text-align: left;
}
.payment-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}
.payment-detail-row:last-child { border-bottom: none; }
.payment-detail-row span { color: #777; }
.payment-status-badge {
    background: #d4edda;
    color: #155724;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 12px;
}
/* ============================================================ */
