/* =====================================================
   Ateliers / Programme - Nouveau design
   ===================================================== */

/* Titre page (fondo blanco, alineado derecha) */
.ateliers-page-title {
    text-align: right;
    padding: 18px 40px 12px;
    background: #fff;
}
.ateliers-page-title h1 {
    font-size: 2rem;
    font-weight: 300;
    color: #222;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Hero Section (solo foto, sin texto) */
.ateliers-hero {
    width: 100%;
    height: 320px;
    background: url('../img/newui-home/bg-programe.png') center center / cover no-repeat;
    margin-bottom: 40px;
}

/* Layout principal */
.ateliers-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px;
}
.ateliers-grid {
    display: grid;
    grid-template-columns: 230px 1fr 250px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 991px) {
    .ateliers-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Colonne Gauche : Calendrier ===== */
.ateliers-left {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ateliers-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.ateliers-cal-header h3 {
    font-size: 1rem;
    margin: 0;
    color: #333;
}
.ateliers-cal-header .btn-today {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.75rem;
    cursor: pointer;
}
.ateliers-cal-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.8rem;
}
.ateliers-cal-table th {
    color: #888;
    font-weight: 600;
    padding: 6px 0;
    font-size: 0.7rem;
}
.ateliers-cal-table td {
    padding: 6px 0;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 20px;
    color: #444;
}
.ateliers-cal-table td:hover {
    background: #f0f0f0;
}
.ateliers-cal-table td.active {
    background: #e74c3c;
    color: #fff;
}
.ateliers-cal-table td.other-month {
    color: #ccc;
}
.ateliers-cal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.85rem;
}
.ateliers-cal-nav button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 10px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* Search & filtres gauche */
.ateliers-left-search {
    margin-top: 20px;
}
.ateliers-left-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* ===== Colonne Centre ===== */
.ateliers-center h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}
.ateliers-center .subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 16px;
}

/* Filtres */
.ateliers-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.ateliers-filter-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
}
.ateliers-filter-item input[type="checkbox"] {
    accent-color: #6BBF45;
    width: 16px;
    height: 16px;
}

/* Featured atelier */
.ateliers-featured {
    display: flex;
    gap: 16px;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    border-left: 4px solid #e74c3c;
}
.ateliers-featured-img {
    width: 160px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.ateliers-featured-info h3 {
    font-size: 1rem;
    margin: 0 0 6px;
    color: #2c3e50;
}
.ateliers-featured-info p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

/* Liste ateliers */
.ateliers-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
.ateliers-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.ateliers-item:last-child {
    border-bottom: none;
}
.ateliers-item-date {
    min-width: 80px;
    text-align: center;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 8px;
    font-size: 0.75rem;
    color: #e74c3c;
    font-weight: 700;
    line-height: 1.4;
}
.ateliers-item-date span {
    display: block;
    font-size: 0.7rem;
    color: #888;
    font-weight: 400;
}
.ateliers-item-title {
    flex: 1;
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
    font-weight: 600;
}
.ateliers-item-title:hover {
    color: #e74c3c;
}
.ateliers-item-img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.ateliers-item-check {
    min-width: 28px;
    text-align: center;
}
.ateliers-item-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #6BBF45;
    cursor: pointer;
}

/* Pagination */
.ateliers-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
}
.ateliers-pagination a,
.ateliers-pagination span {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    color: #555;
    border: 1px solid #ddd;
}
.ateliers-pagination a:hover {
    background: #f5f5f5;
}
.ateliers-pagination .active {
    background: #6BBF45;
    color: #fff;
    border-color: #6BBF45;
}
.ateliers-pagination .prev,
.ateliers-pagination .next {
    width: auto;
    padding: 0 12px;
}

/* Bouton Réserver */
.ateliers-reserver-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.ateliers-reserver-wrap p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}
.btn-ateliers-reserver {
    display: inline-block;
    background: #6BBF45;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-ateliers-reserver:hover {
    background: #5aa83a;
}

/* ===== Colonne Droite : Catégories ===== */
.ateliers-right {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ateliers-right h4 {
    font-size: 1rem;
    color: #6BBF45;
    margin: 0 0 12px;
    font-weight: 700;
}
.ateliers-cat-search {
    position: relative;
    margin-bottom: 16px;
}
.ateliers-cat-search input {
    width: 100%;
    padding: 8px 12px 8px 32px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
}
.ateliers-cat-search::before {
    content: '\f002';
    font-family: 'FontAwesome';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 0.8rem;
}
.ateliers-cat-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
.ateliers-cat-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 0.85rem;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}
.ateliers-cat-list li:last-child {
    border-bottom: none;
}
.ateliers-cat-list li input[type="checkbox"] {
    accent-color: #6BBF45;
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.ateliers-cat-list li .cat-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
    margin-right: 4px;
}
.ateliers-cat-list li .cat-dot.green { background: #6BBF45; }
.ateliers-cat-list li .cat-dot.blue { background: #3498db; }
.ateliers-cat-list li .cat-dot.purple { background: #9b59b6; }
.ateliers-cat-list li .cat-dot.orange { background: #e67e22; }

/* Info box droite */
.ateliers-info-box {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 14px;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.5;
}
.ateliers-info-box a {
    color: #e74c3c;
    font-weight: 600;
    text-decoration: none;
}
.ateliers-info-box a:hover {
    text-decoration: underline;
}
.ateliers-info-box .icon-check {
    color: #6BBF45;
    margin-right: 4px;
}

/* Footer ateliers custom */
.ateliers-footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 30px 0;
    margin-top: 40px;
}
.ateliers-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
@media (max-width: 767px) {
    .ateliers-footer-grid {
        grid-template-columns: 1fr;
    }
}
.ateliers-footer-links h5 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #333;
}
.ateliers-footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ateliers-footer-links li {
    margin-bottom: 6px;
}
.ateliers-footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
}
.ateliers-footer-links a:hover {
    color: #e74c3c;
}
.ateliers-footer-contact p {
    font-size: 0.8rem;
    color: #666;
    margin: 4px 0;
}
.ateliers-footer-contact a {
    color: #e74c3c;
    text-decoration: none;
}
.ateliers-footer-bottom {
    text-align: center;
    font-size: 0.75rem;
    color: #999;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

/* =====================================================
   Ateliers Semaine / Week view
   ===================================================== */
.week-hero {
    width: 100%;
    height: 320px;
    background: url('../img/newui-home/bg-programe.png') center center / cover no-repeat;
    margin-bottom: 0;
}

/* Wrapper avec sidebar "Programme" */
.week-page-body {
    position: relative;
    overflow: hidden;
}

/* Texto vertical "Programme" */
.week-programme-sidebar {
    position: absolute;
    left: -80px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center center;
    font-size: 3.5rem;
    font-weight: 300;
    color: #ebebeb;
    text-transform: uppercase;
    letter-spacing: 8px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 0;
}
@media (max-width: 1100px) {
    .week-programme-sidebar { display: none; }
}

.week-container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 30px 60px;
}

/* Intro */
.week-intro {
    margin-bottom: 50px;
}
.week-intro h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 12px;
    line-height: 1.5;
    max-width: 500px;
}
.week-intro p {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.7;
    max-width: 560px;
}

/* Grid semaine - 2 colonnes */
.week-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 60px;
}
@media (max-width: 767px) {
    .week-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* Bloc jour */
.week-day {
    padding-left: 18px;
    border-left: 5px solid #e74c3c;
}
.week-day-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #e74c3c;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}
.week-day-subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 14px;
    line-height: 1.3;
}

/* Slot horaire: cuadradito rojo + hora + texto */
.week-slot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    font-size: 0.82rem;
    line-height: 1.3;
}
.week-slot-dot {
    width: 10px;
    height: 10px;
    background: #e74c3c;
    border-radius: 2px;
    flex-shrink: 0;
}
.week-slot-time {
    background: #f5f5f5;
    color: #888;
    font-size: 0.72rem;
    padding: 2px 6px;
    border-radius: 3px;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 82px;
    text-align: center;
}
.week-slot a {
    color: #333;
    text-decoration: none;
    font-size: 0.82rem;
}
.week-slot a:hover {
    color: #e74c3c;
}
.week-slot-text {
    color: #444;
    font-weight: 600;
    font-size: 0.82rem;
}

/* Label Workshops */
.week-workshop-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #e74c3c;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 18px 0 10px;
    padding-top: 12px;
    border-top: 1px dashed #eee;
}

/* Feedback */
.week-feedback {
    margin-top: 60px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.week-feedback-icon {
    width: 32px;
    height: 32px;
    background: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 0.9rem;
    margin-top: 2px;
}
.week-feedback-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #e74c3c;
    margin: 0 0 4px;
}
.week-feedback-text p {
    font-size: 0.82rem;
    color: #666;
    margin: 0;
}

/* Sélecteur de programme */
.week-programme-selector {
    max-width: 620px;
    margin: 10px 0 40px;
}
.week-programme-selector-title {
    font-size: 1rem;
    font-weight: 400;
    color: #222;
    margin: 0 0 16px;
}
.week-programme-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    margin-bottom: 12px;
    transition: opacity 0.2s;
}
.week-programme-bar:hover {
    opacity: 0.9;
    color: #fff;
    text-decoration: none;
}
.week-programme-bar span b {
    font-weight: 700;
}
.week-programme-plus {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    line-height: 1;
}
.week-programme-green { background: #6BBF45; }
.week-programme-red { background: #e74c3c; }
.week-programme-orange { background: #f39c12; }

/* Consultants image */
.week-consultants {
    text-align: center;
    margin: 50px 0 30px;
}
.week-consultants img {
    max-width: 260px;
}

/* Classes grid (cards) */
.week-classes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}
@media (max-width: 991px) {
    .week-classes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .week-classes-grid { grid-template-columns: 1fr; }
}
.week-class-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    text-align: center;
    transition: transform 0.25s;
}
.week-class-card:hover { transform: translateY(-4px); }
.week-class-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}
.week-class-card h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}
.week-class-card p {
    font-size: 0.78rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}
.week-class-card .btn {
    font-size: 0.78rem;
    padding: 6px 16px;
    border-radius: 20px;
}

/* Catégories */
.week-categories-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 28px;
}
.week-cat-btn {
    padding: 5px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #555;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}
.week-cat-btn:hover, .week-cat-btn.active {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}
