/* ==============================================
   COMPONENTS.CSS — Boutons, Cards, Images,
   Carousel, Logo Slider, Formulaire
   ============================================== */

/* ===== IMAGES ===== */
.image-placeholder {
    background: var(--card-bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    color: #888;
}

.image-placeholder a {
    display: block;
    width: 100%;
    height: 100%;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.img-mini {
    height: 150px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--card-border);
    margin-bottom: 1rem;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    padding: 15px;
}
.img-mini img  { width: 100%; height: 100%; object-fit: contain; }
.img-mini a    { display: block; width: 100%; height: 100%; }

/* ===== BOUTONS ===== */
.btn-primary {
    background: var(--alpine-blue); color: #fff;
    padding: 12px 24px; border: none; border-radius: 6px;
    font-weight: 700; cursor: pointer; text-decoration: none;
    transition: var(--transition);
}
.btn-primary:hover { background: var(--alpine-blue-hover); transform: translateY(-2px); }

.btn-outline {
    border: 2px solid var(--alpine-blue); color: var(--alpine-blue);
    padding: 8px 16px; border-radius: 6px; text-decoration: none;
    font-weight: 600; display: inline-block; margin-top: 1rem;
    transition: var(--transition);
}
.btn-outline:hover { background: var(--alpine-blue); color: #fff; }

.btn-alpine {
    display: inline-block; padding: 12px 30px;
    background: var(--alpine-blue); color: white;
    text-decoration: none; border-radius: 30px; font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 92, 185, 0.3);
}
.btn-alpine:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 92, 185, 0.4); }
.btn-large { padding: 15px 40px; font-size: 1.1rem; }

/* ===== CARDS ===== */
.stat-card, .obj-card, .step-card, .member-card, .rencontre-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.stat-card { border-top: 4px solid var(--alpine-blue); }
.stat-card:hover { transform: translateY(-5px); }
.step-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.rencontre-card { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: center; }

.member-img-placeholder {
    width: 150px; height: 150px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 3px solid var(--alpine-blue);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 0.8rem; color: #888;
}

/* ===== CAROUSEL ===== */
.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 600px;
    background: #050505;
    overflow: hidden;
    border-bottom: 1px solid var(--card-border);
}
.carousel-track { display: flex; width: 100%; height: 100%; transition: transform 0.5s ease-in-out; }
.carousel-slide { min-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.carousel-slide img { width: 100%; height: 100%; object-fit: contain; }
.carousel-slide a {
    display: flex;
    width: 100%;
    height: 100%;
}

.carousel-slide a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.7); color: white;
    border: 1px solid rgba(255,255,255,0.2);
    width: 50px; height: 50px; border-radius: 50%;
    cursor: pointer; font-size: 1.5rem; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.carousel-btn:hover { background: var(--alpine-blue); border-color: var(--alpine-blue); }
.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

.carousel-btn.pause-btn {
    top: auto; bottom: 20px; right: 20px; transform: none;
    width: 38px; height: 38px; font-size: 1rem;
}
.carousel-btn.pause-btn svg { pointer-events: none; }

.carousel-dots {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 12px; z-index: 10;
    background: rgba(0,0,0,0.6); padding: 8px 15px; border-radius: 30px;
}


.dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition);
}
.dot.active, .dot:hover { background: var(--alpine-blue); }

@media (max-width: 768px) {
    .carousel-container { aspect-ratio: 4 / 3; max-height: 350px; }
    .carousel-btn       { width: 35px; height: 35px; font-size: 1rem; }
    .carousel-btn.prev  { left: 10px; }
    .carousel-btn.next  { right: 10px; }
}

/* ===== LOGO SLIDER ===== */
.logo-slider {
    overflow: hidden; padding: 40px 0;
    background: var(--card-bg); border-radius: var(--radius);
    margin-bottom: 30px; position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    pointer-events: none;
}
.logo-track {  display: flex; width: max-content; animation: scroll-logos linear infinite;pointer-events: all;  }
.logo-track:hover { animation-play-state: paused; }

.partner-box { width: 220px; flex-shrink: 0; display: flex; justify-content: center; align-items: center; padding: 0 40px; }
.partner-box img { max-width: 150px; filter: grayscale(100%); transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease; opacity: 0.7; }
.partner-box:hover img { filter: grayscale(0%); opacity: 1; transform: scale(1.1); }

@keyframes scroll-logos {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.cta-partners { margin-top: 40px; padding: 20px; }
.cta-partners p { font-size: 1.1rem; margin-bottom: 20px; font-weight: 500; }

/* ===== FORMULAIRE ===== */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px;
    background: var(--bg-color); border: 1px solid var(--card-border);
    color: var(--text-color); border-radius: 6px; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--alpine-blue); }

.form-status-msg { margin-top: 1rem; padding: 10px; border-radius: 6px; font-size: 0.9rem; text-align: center; display: none; }
.form-status-msg.success { background: rgba(46,160,67,0.15); color: #34d399; border: 1px solid #2ea043; display: block; }
.form-status-msg.error   { background: rgba(248,81,73,0.15);  color: #fca5a5; border: 1px solid #f85149; display: block; }



/* ===== TABLE BUDGET ===== */
.budget-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.chart-wrapper {
    position: sticky;
    top: 100px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.table-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.modern-table thead th {
    background: var(--alpine-blue);
    color: #fff;
    padding: 14px 20px;
    text-align: left;
    font-weight: 700;
}
.modern-table tbody tr {
    border-bottom: 1px solid var(--card-border);
    transition: var(--transition);
}
.modern-table tbody tr:last-child { border-bottom: none; }
.modern-table tbody tr:hover { background: rgba(0, 92, 185, 0.06); }
.modern-table td { padding: 12px 20px; }

.modern-table tfoot tr { border-top: 2px solid var(--alpine-blue); }
.modern-table tfoot td {
    padding: 14px 20px;
    font-size: 1rem;
    background: var(--bg-color);
}
.modern-table tfoot td strong { color: var(--alpine-blue); }

@media (max-width: 768px) {
    .budget-layout { grid-template-columns: 1fr; }
    .chart-wrapper  { position: static; }
}




/* ===== Suivi restauration 4L ===== */
.project-status-list {
    list-style: none;
    margin-top: 1rem;
    padding: 0;
    display: grid;
    gap: 0.9rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    background: var(--card-bg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.status-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.status-badge {
    min-width: 92px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-text {
    font-size: 1rem;
    font-weight: 500;
}

.status-done {
    border-left: 5px solid #2e8b57;
}

.status-done .status-badge {
    background: rgba(46, 139, 87, 0.14);
    color: #2e8b57;
}

.status-done .status-text {
    color: inherit;
}

.status-progress {
    border-left: 5px solid #d98c00;
}

.status-progress .status-badge {
    background: rgba(217, 140, 0, 0.14);
    color: #b87400;
}

.status-todo {
    border-left: 5px solid #7a7a7a;
    opacity: 0.92;
}

.status-todo .status-badge {
    background: rgba(120, 120, 120, 0.12);
    color: #666;
}

.status-fun {
    border-left-color: var(--alpine-blue);
}

.status-fun .status-badge {
    background: rgba(0, 102, 204, 0.12);
    color: var(--alpine-blue);
}


/* ===== Liste matériel soutenir.html ===== */
.item-ok {
    text-decoration: line-through;
    opacity: 0.55;
}

.item-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(46, 139, 87, 0.14);
    color: #2e8b57;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-block;
}