* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f8f8;
    color: #333;
}

/* Header */
header {
    background-color: #fff;
    padding: 20px 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
}

.logo-icon {
    width: 35px;
    height: 35px;
    background-color: #4a4a4a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-icon::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 3px solid #f5b800;
    border-radius: 50%;
    border-right-color: transparent;
    border-bottom-color: transparent;
    transform: rotate(-45deg);
}

.logo-text {
    color: #f5b800;
}

.logo-text-dark {
    color: #333;
}

nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #333;
}

.connexion-btn {
    background-color: #f5b800;
    color: #333;
    padding: 12px 35px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 184, 0, 0.3);
}

.connexion-btn:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 184, 0, 0.4);
}

/* Hero Section */
.hero {
    padding: 100px 40px;
    text-align: center;
    background-color: #f8f8f8;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 .highlight {
    color: #f5b800;
}

.hero p {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 50px;
}

/* Search Filters */
.search-filters {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.filter-btn.active {
    background-color: #f5b800;
    color: #333;
    box-shadow: 0 6px 20px rgba(245, 184, 0, 0.3);
}

.filter-btn.inactive {
    background-color: #fff;
    color: #4a4a4a;
}

.filter-btn.inactive:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.filter-btn.active:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 184, 0, 0.4);
}

.filter-icon {
    font-size: 1.2rem;
}

/* Search Button */
.search-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.search-btn {
    padding: 18px 60px;
    background-color: #f5b800;
    color: #333;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(245, 184, 0, 0.3);
    text-transform: uppercase;
}

.search-btn:hover {
    background-color: #e0a800;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(245, 184, 0, 0.4);
}

.dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #d1d5db;
    border-radius: 50%;
}

/* Popular Section */
.popular-section {
    padding: 80px 40px;
    background-color: #fff;
}

.popular-container {
    max-width: 1400px;
    margin: 0 auto;
}

.popular-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
    padding-left: 20px;
    border-left: 5px solid #f5b800;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .search-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }

    nav {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    nav a {
        text-align: center;
    }

    .connexion-btn {
        width: 100%;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .search-btn {
        padding: 16px 40px;
        font-size: 1rem;
    }

    .popular-section {
        padding: 50px 20px;
    }

    .popular-title {
        font-size: 1.5rem;
    }

    .modal {
        padding: 20px;
    }

    .modal-content {
        width: 95%;
        padding: 30px 20px;
    }
}

/* Additional icon styles */
.clock-icon::before {
    content: '🕐';
}

.moon-icon::before {
    content: '🌙';
}

.calendar-icon::before {
    content: '📅';
}

.location-icon::before {
    content: '📍';
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 40px;
    overflow-y: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: #f5f5f5;
    color: #333;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #f5b800;
    box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.1);
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.modal-btn {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn.primary {
    background-color: #f5b800;
    color: #333;
    box-shadow: 0 4px 12px rgba(245, 184, 0, 0.3);
}

.modal-btn.primary:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 184, 0, 0.4);
}

.modal-btn.secondary {
    background-color: #f5f5f5;
    color: #666;
}

.modal-btn.secondary:hover {
    background-color: #e5e5e5;
}

/* =============================
   ENHANCED DATE PICKER
============================= */

.date-picker-modal {
    max-width: 700px;
    width: 95vw;
    max-height: 90vh;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.date-picker-modal #dateForm {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.date-picker-scroll {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-right: 5px;
}

/* Desktop: side-by-side layout, compact to fit 1080p */
@media (min-width: 600px) {
    .date-picker-modal {
        padding: 20px;
    }

    .date-picker-modal .modal-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .date-picker-modal .modal-title {
        font-size: 1.4rem;
    }

    .date-picker-scroll {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        overflow-y: visible;
    }

    .date-picker-scroll .calendar-container {
        flex: 1;
        min-width: 260px;
        margin-bottom: 0;
        padding: 14px;
    }

    .date-picker-scroll .calendar-header {
        margin-bottom: 10px;
    }

    .date-picker-scroll .calendar-weekdays {
        margin-bottom: 4px;
    }

    .date-picker-scroll .calendar-weekdays span {
        padding: 4px 0;
        font-size: 11px;
    }

    .date-picker-scroll .calendar-day {
        font-size: 13px;
    }

    .date-picker-scroll .calendar-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .date-picker-scroll .time-selection {
        flex: 0 0 160px;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
    }

    .date-picker-scroll .time-label {
        margin-bottom: 8px;
        font-size: 13px;
    }

    .date-picker-scroll .time-slots {
        flex-direction: column;
        flex: 1;
        gap: 6px;
    }

    .date-picker-scroll .time-slot {
        padding: 8px 12px;
        font-size: 13px;
    }

    .date-picker-scroll .date-summary {
        width: 100%;
        margin-top: 12px;
        padding: 10px 14px;
    }

    .date-picker-modal .modal-actions {
        margin-top: 14px;
        padding-top: 12px;
    }

    .date-picker-modal .modal-btn {
        padding: 12px 24px;
    }
}

.date-picker-modal .modal-actions {
    flex-shrink: 0;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

/* Calendar */
.calendar-container {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.calendar-month-year {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.calendar-nav-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #fff;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.calendar-nav-btn:hover {
    background: #f5b800;
    color: #111;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    padding: 8px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day:hover:not(.disabled):not(.empty) {
    background: #fff3cd;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.calendar-day.today {
    border: 2px solid #f5b800;
}

.calendar-day.weekend:not(.disabled) {
    color: #f59e0b;
}

.calendar-day.selected {
    background: linear-gradient(135deg, #f5b800, #fde047);
    color: #111;
    font-weight: 700;
}

/* Time Selection */
.time-selection {
    margin-bottom: 20px;
}

.time-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.time-slot {
    padding: 10px 14px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-slot:hover {
    border-color: #f5b800;
    background: #fffbeb;
}

.time-slot.active {
    border-color: #f5b800;
    background: linear-gradient(135deg, #f5b800, #fde047);
    color: #111;
}

/* Date Summary */
.date-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #f0f0f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.date-summary.active {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 2px solid #10b981;
}

.summary-icon {
    font-size: 18px;
    color: #666;
}

.date-summary.active .summary-icon {
    color: #10b981;
}

.summary-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Modal button arrow */
.modal-btn.primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-arrow {
    transition: transform 0.2s ease;
}

.modal-btn.primary:hover .btn-arrow {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 480px) {
    .date-picker-modal {
        padding: 20px;
        max-height: 85vh;
    }

    .time-slots {
        justify-content: center;
    }

    .time-slot {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* City Selection Styles */
.city-selection {
    margin-bottom: 20px;
}

.search-city {
    margin-bottom: 20px;
}

.city-search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.city-search-input:focus {
    outline: none;
    border-color: #f5b800;
    box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.1);
}

.city-list {
    max-height: 400px;
    overflow-y: auto;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 0;
}

.city-list::-webkit-scrollbar {
    width: 8px;
}

.city-list::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.city-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.city-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.city-item {
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    color: #333;
}

.city-item:hover {
    background-color: #fef3c7;
    color: #000;
    font-weight: 600;
}

.city-item:active {
    background-color: #fde68a;
}

.no-results {
    padding: 30px 20px;
    text-align: center;
    color: #9ca3af;
    font-style: italic;
}


/* ======================
BOUTONS – VERSION PREMIUM
====================== */

button {
    position: relative;
    overflow: hidden;
}

/* Effet lumière au hover */
button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(
            120deg,
            transparent,
            rgba(255, 255, 255, 0.35),
            transparent
    );
    transition: left 0.6s ease;
}

button:hover::after {
    left: 120%;
}

/* Effet press */
button:active {
    transform: translateY(1px) scale(0.98);
}



.connexion-btn {
    background: linear-gradient(135deg, #f5b800, #facc15);
    border-radius: 999px;
    letter-spacing: 0.4px;
    box-shadow:
            0 10px 25px rgba(245, 184, 0, 0.35),
            inset 0 -2px 0 rgba(0,0,0,0.15);
}

.connexion-btn:hover {
    background: linear-gradient(135deg, #e0a800, #f5b800);
    box-shadow:
            0 14px 35px rgba(245, 184, 0, 0.45);
}


.filter-btn.active {
    background: linear-gradient(135deg, #f5b800, #fde047);
    box-shadow:
            0 10px 30px rgba(245, 184, 0, 0.4),
            inset 0 -2px 0 rgba(0,0,0,0.15);
    transform: translateY(-1px);
}


.filter-btn.inactive {
    background-color: #ffffff;
    border: 2px solid #f1f1f1;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.filter-btn.inactive:hover {
    background-color: #fffdf5;
    border-color: #f5b800;
}


.search-btn {
    background: linear-gradient(135deg, #f5b800, #fde047);
    letter-spacing: 1px;
    border-radius: 999px;
    box-shadow:
            0 20px 40px rgba(245, 184, 0, 0.45),
            inset 0 -3px 0 rgba(0,0,0,0.2);
}

.search-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow:
            0 28px 60px rgba(245, 184, 0, 0.55);
}



.modal-btn.primary {
    background: linear-gradient(135deg, #f5b800, #fde047);
    box-shadow: 0 8px 20px rgba(245, 184, 0, 0.35);
}

.modal-btn.secondary {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
}

.modal-btn.secondary:hover {
    background-color: #f3f4f6;
}


/* ======================
   PAGE RÉSULTATS
====================== */

.results-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 60px 0 40px;
}

.results-title span {
    color: #f5b800;
}

.results-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 80px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.room-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.12);
}

.room-image {
    height: 200px;
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.room-card:hover .room-image img {
    transform: scale(1.08);
}

.room-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.room-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.players {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: auto;
}

.room-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn.primary {
    background: linear-gradient(135deg, #f5b800, #fde047);
    color: #333;
    box-shadow: 0 10px 25px rgba(245,184,0,0.35);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(245,184,0,0.45);
}

.btn.secondary {
    background: #f3f4f6;
    color: #333;
}

.btn.secondary:hover {
    background: #e5e7eb;
}


/* ======================
   AIRBNB LIKE RESULTS
====================== */

.results-title-airbnb {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
    margin: 70px 0 50px;
}

.results-title-airbnb span {
    color: #f5b800;
}

/* ======================
   TIME SECTION HEADERS
====================== */

.time-section-header {
    max-width: 1500px;
    margin: 40px auto 30px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #4b5563;
}

.time-section-header::before,
.time-section-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e7eb, transparent);
}

.time-section-header .time-icon {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .time-section-header {
        margin: 30px auto 20px;
        padding: 0 20px;
        font-size: 1.15rem;
        gap: 12px;
    }
}

.airbnb-grid {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 40px 100px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 35px;
}

.airbnb-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.35s ease;
}

.airbnb-card:hover {
    transform: translateY(-6px);
}

.airbnb-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    border-radius: 18px;
}

.airbnb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.airbnb-card:hover img {
    transform: scale(1.06);
}

.airbnb-content {
    padding: 18px 8px 0;
}

.airbnb-content h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 6px;
}

.airbnb-meta {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 12px;
}

.airbnb-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.airbnb-actions a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    transition: color 0.2s ease;
}

.airbnb-actions a:hover {
    color: #000;
}

.airbnb-actions .reserve {
    background: #111;
    color: #fff;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
}

.airbnb-actions .reserve:hover {
    background: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .airbnb-grid {
        padding: 0 20px 60px;
        gap: 25px;
    }

    .airbnb-image {
        height: 200px;
    }
}


/* ======================
   BURGER MENU
====================== */

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    width: 26px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animation burger -> croix */
.burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ======================
   RESPONSIVE HEADER
====================== */

@media (max-width: 768px) {

    .burger {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding: 30px 20px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    nav.show {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    nav a {
        font-size: 1.1rem;
    }

    .connexion-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}




.lang-switch {
    display: none;
    flex-direction: column;
    background: var(--card);
    padding: 10px;
    position: absolute;
    top: 60px;   /* ajuste en fonction de la hauteur de ta topbar */
    right: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 9999;

    /* Animation par défaut (invisible) */
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}




/* ======================
   LANGUAGE BUTTON
====================== */

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    border: none;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
}

.lang-btn img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

/* ======================
   LANGUAGE MODAL
====================== */

.lang-modal {
    max-width: 700px;
}

.lang-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    max-height: 70vh;
    overflow-y: auto;
}

.lang-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    border-radius: 14px;
    text-decoration: none;
    color: #333;
    transition: all 0.25s ease;
}

.lang-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.lang-item:hover {
    background: #fef3c7;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .lang-modal {
        max-width: 95%;
    }

    .lang-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        max-height: 60vh;
    }

    .lang-item {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .lang-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        max-height: 55vh;
    }

    .lang-item {
        padding: 8px;
    }
}



/* =============================
   AMAZON PUB SECTION
============================= */

/*.amazon-ad-section {*/
/*    padding: 40px 16px;*/
/*    margin-top: 40px;*/
/*}*/

/*.amazon-ad-container {*/
/*    max-width: 1100px;*/
/*    margin: 0 auto;*/
/*    border-radius: 18px;*/
/*    padding: 22px;*/
/*    background: rgba(255,255,255,0.03);*/
/*    border: 1px solid rgba(255,255,255,0.08);*/
/*    backdrop-filter: blur(10px);*/
/*}*/

/*.amazon-ad-title {*/
/*    font-size: 1.4rem;*/
/*    margin-bottom: 16px;*/
/*}*/

/*.amazon-ad-grid {*/
/*    display: grid;*/
/*    grid-template-columns: 260px 1fr;*/
/*    gap: 18px;*/
/*}*/

/*@media (max-width: 768px) {*/
/*    .amazon-ad-grid {*/
/*        grid-template-columns: 1fr;*/
/*    }*/
/*}*/

/*.amazon-ad-book {*/
/*    display: block;*/
/*    text-decoration: none;*/
/*    position: relative;*/
/*}*/

/*.amazon-ad-book-img {*/
/*    width: 100%;*/
/*    border-radius: 14px;*/
/*    display: block;*/
/*    border: 1px solid rgba(255,255,255,0.12);*/
/*}*/

/*.amazon-ad-cta {*/
/*    margin-top: 10px;*/
/*    text-align: center;*/
/*    padding: 10px 12px;*/
/*    border-radius: 12px;*/
/*    font-weight: 700;*/
/*    background: rgba(255,255,255,0.08);*/
/*    border: 1px solid rgba(255,255,255,0.14);*/
/*}*/

/*.amazon-ad-content {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    gap: 14px;*/
/*}*/

/*.amazon-ad-rating-row {*/
/*    display: flex;*/
/*    justify-content: space-between;*/
/*    align-items: center;*/
/*}*/

/*.amazon-ad-subtitle {*/
/*    font-weight: 700;*/
/*    font-size: 1.05rem;*/
/*}*/

/*.amazon-ad-video {*/
/*    padding: 8px 10px;*/
/*    border-radius: 12px;*/
/*    border: 1px solid rgba(255,255,255,0.14);*/
/*    text-decoration: none;*/
/*}*/

/*!* =============================*/
/*   AVIS CAROUSEL*/
/*============================= *!*/

/*.avis-carousel {*/
/*    position: relative;*/
/*    border-radius: 14px;*/
/*    padding: 14px;*/
/*    border: 1px solid rgba(255,255,255,0.12);*/
/*    background: rgba(0,0,0,0.15);*/
/*}*/

/*.avis-slides {*/
/*    overflow: hidden;*/
/*    min-height: 100px;*/
/*}*/

/*.avis-slide {*/
/*    display: none;*/
/*}*/

/*.avis-slide.active {*/
/*    display: block;*/
/*    animation: fadeIn 0.25s ease;*/
/*}*/

/*.avis-note {*/
/*    font-weight: 800;*/
/*    margin-bottom: 6px;*/
/*}*/

/*.avis-desc {*/
/*    margin: 0;*/
/*    opacity: 0.95;*/
/*    line-height: 1.4;*/
/*}*/

/*.avis-btn {*/
/*    position: absolute;*/
/*    top: 50%;*/
/*    transform: translateY(-50%);*/
/*    border: none;*/
/*    width: 40px;*/
/*    height: 40px;*/
/*    border-radius: 50%;*/
/*    cursor: pointer;*/
/*    background: rgba(255,255,255,0.08);*/
/*    border: 1px solid rgba(255,255,255,0.15);*/
/*}*/

/*.avis-btn.prev { left: 10px; }*/
/*.avis-btn.next { right: 10px; }*/

/*@keyframes fadeIn {*/
/*    from { opacity: 0; transform: translateY(4px); }*/
/*    to { opacity: 1; transform: translateY(0); }*/
/*}*/

/*!* =============================*/
/*   GALLERY STRIP*/
/*============================= *!*/

/*.amazon-gallery-title {*/
/*    font-weight: 700;*/
/*    margin-bottom: 8px;*/
/*}*/

/*.amazon-gallery-row {*/
/*    display: flex;*/
/*    gap: 10px;*/
/*    overflow-x: auto;*/
/*    padding-bottom: 6px;*/
/*}*/

/*.amazon-gallery-row::-webkit-scrollbar {*/
/*    height: 6px;*/
/*}*/

/*.amazon-gallery-img {*/
/*    height: 85px;*/
/*    width: auto;*/
/*    border-radius: 12px;*/
/*    cursor: pointer;*/
/*    border: 1px solid rgba(255,255,255,0.12);*/
/*    flex-shrink: 0;*/
/*    transition: transform 0.15s ease;*/
/*}*/

/*.amazon-gallery-img:hover {*/
/*    transform: scale(1.03);*/
/*}*/

/*!* =============================*/
/*   MODAL GALLERY*/
/*============================= *!*/

/*.gallery-modal {*/
/*    position: fixed;*/
/*    inset: 0;*/
/*    background: rgba(0,0,0,0.65);*/
/*    display: none;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    z-index: 99999;*/
/*}*/

/*.gallery-modal.show {*/
/*    display: flex;*/
/*}*/

/*.gallery-modal-content {*/
/*    width: min(900px, 92vw);*/
/*    height: min(600px, 85vh);*/
/*    position: relative;*/
/*    border-radius: 18px;*/
/*    padding: 14px;*/
/*    background: rgba(15,15,15,0.95);*/
/*    border: 1px solid rgba(255,255,255,0.12);*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    gap: 10px;*/
/*}*/

/*.gallery-main-img {*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    object-fit: contain;*/
/*    border-radius: 14px;*/
/*}*/

/*.gallery-close {*/
/*    position: absolute;*/
/*    top: 10px;*/
/*    right: 12px;*/
/*    width: 40px;*/
/*    height: 40px;*/
/*    border-radius: 50%;*/
/*    cursor: pointer;*/
/*    border: none;*/
/*    background: rgba(255,255,255,0.08);*/
/*    border: 1px solid rgba(255,255,255,0.14);*/
/*}*/

/*.gallery-nav {*/
/*    position: absolute;*/
/*    top: 50%;*/
/*    transform: translateY(-50%);*/
/*    width: 44px;*/
/*    height: 44px;*/
/*    border-radius: 50%;*/
/*    cursor: pointer;*/
/*    border: none;*/
/*    background: rgba(255,255,255,0.08);*/
/*    border: 1px solid rgba(255,255,255,0.14);*/
/*}*/

/*.gallery-nav.prev { left: 12px; }*/
/*.gallery-nav.next { right: 12px; }*/

/*.gallery-dots {*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    gap: 8px;*/
/*}*/

/*.gallery-dot {*/
/*    width: 10px;*/
/*    height: 10px;*/
/*    border-radius: 999px;*/
/*    background: rgba(255,255,255,0.25);*/
/*    cursor: pointer;*/
/*}*/

/*.gallery-dot.active {*/
/*    background: rgba(255,255,255,0.9);*/
/*}*/


/* =============================
   ENHANCED AMAZON AD SECTION
============================= */

.amazon-ad-section {
    padding: 60px 20px;
    margin: 60px 0;
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    position: relative;
    overflow: hidden;
}

.amazon-ad-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 184, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.amazon-ad-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.08),
            0 8px 16px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1;
}

/* =============================
   AD HEADER
============================= */

.ad-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 35px;
}

.ad-badge {
    display: inline-block;
    width: fit-content;
    padding: 6px 16px;
    background: linear-gradient(135deg, #f5b800, #fde047);
    color: #333;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(245, 184, 0, 0.25);
}

.amazon-ad-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111;
    margin: 0;
    line-height: 1.3;
}

/* =============================
   GRID LAYOUT
============================= */

.amazon-ad-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 968px) {
    .amazon-ad-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* =============================
   BOOK CARD (LEFT SIDE)
============================= */

.amazon-ad-book-wrapper {
    position: relative;
}

.amazon-ad-book {
    display: block;
    text-decoration: none;
    position: relative;
    background: #fafafa;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.amazon-ad-book:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.book-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.amazon-ad-book-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.amazon-ad-book:hover .amazon-ad-book-img {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.7) 0%,
            transparent 50%
    );
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.amazon-ad-book:hover .image-overlay {
    opacity: 1;
}

.overlay-text {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.amazon-ad-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f5b800, #fde047);
    color: #111;
    font-weight: 800;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.cta-icon {
    font-size: 1.2rem;
}

.amazon-ad-book:hover .amazon-ad-cta {
    background: linear-gradient(135deg, #e0a800, #f5b800);
}

.price-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #111;
    color: #fff;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* =============================
   CONTENT SECTION (RIGHT SIDE)
============================= */

.amazon-ad-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* =============================
   RATING & VIDEO ROW
============================= */

.amazon-ad-rating-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.rating-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.amazon-ad-subtitle {
    font-weight: 800;
    font-size: 1.3rem;
    color: #111;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-stars {
    font-size: 1rem;
    letter-spacing: 2px;
}

.rating-count {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 600;
}

.amazon-ad-video {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #111;
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.amazon-ad-video:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.video-icon {
    font-size: 1.1rem;
}

/* =============================
   ENHANCED CAROUSEL
============================= */

.avis-carousel {
    position: relative;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 18px;
    padding: 30px;
    border: 2px solid #e5e7eb;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.carousel-header {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.carousel-indicators {
    display: flex;
    gap: 8px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: #9ca3af;
}

.indicator.active {
    width: 24px;
    border-radius: 4px;
    background: linear-gradient(135deg, #f5b800, #fde047);
}

.avis-slides {
    overflow: hidden;
    min-height: 160px;
    position: relative;
}

.avis-slide {
    display: none;
    animation: slideIn 0.4s ease;
}

.avis-slide.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.avis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.avis-note {
    display: flex;
    align-items: center;
    gap: 8px;
}

.note-value {
    font-size: 2rem;
    font-weight: 900;
    color: #111;
    line-height: 1;
}

.note-max {
    font-size: 1.2rem;
    color: #6b7280;
    font-weight: 600;
}

.stars-display {
    font-size: 1.4rem;
}

.avis-author {
    font-size: 0.9rem;
    font-weight: 700;
    color: #4b5563;
    padding: 6px 14px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
}

.avis-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #374151;
    margin: 0 0 12px 0;
    font-style: italic;
}

.avis-date {
    font-size: 0.85rem;
    color: #9ca3af;
    font-weight: 600;
}

.avis-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #111;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.avis-btn:hover {
    background: linear-gradient(135deg, #f5b800, #fde047);
    border-color: #f5b800;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(245, 184, 0, 0.3);
}

.avis-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.avis-btn.prev {
    left: -20px;
}

.avis-btn.next {
    right: -20px;
}

/* =============================
   ENHANCED GALLERY
============================= */

.amazon-gallery {
    background: #f9fafb;
    padding: 24px;
    border-radius: 18px;
    border: 2px solid #e5e7eb;
}

.amazon-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.amazon-gallery-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    color: #111;
}

.gallery-icon {
    font-size: 1.3rem;
}

.gallery-count {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 600;
    padding: 6px 14px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
}

.amazon-gallery-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-behavior: smooth;
}

.amazon-gallery-row::-webkit-scrollbar {
    height: 8px;
}

.amazon-gallery-row::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 10px;
}

.amazon-gallery-row::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #f5b800, #fde047);
    border-radius: 10px;
}

/* =============================
   GALLERY GRID
============================= */

.amazon-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .amazon-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .amazon-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

.gallery-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5b800, #fde047);
    min-height: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-more:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(245, 184, 0, 0.35);
}

.gallery-more-count {
    font-size: 1.8rem;
    font-weight: 800;
    color: #111;
}

.gallery-more-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-top: 4px;
}

.gallery-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 16 / 10;
    background: #e5e7eb;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.amazon-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover .amazon-gallery-img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.zoom-icon {
    font-size: 1.5rem;
    filter: grayscale(1) brightness(2);
}

/* =============================
   PRODUCT HIGHLIGHTS
============================= */

.product-highlights {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 24px;
    border-radius: 18px;
    border: 2px solid #fbbf24;
}

.highlights-title {
    font-weight: 800;
    font-size: 1.2rem;
    color: #111;
    margin-bottom: 16px;
}

.highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.highlights-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    font-weight: 600;
}

.highlights-list li::before {
    content: '✓';
    color: #16a34a;
    font-weight: 900;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* =============================
   ENHANCED GALLERY MODAL
============================= */

.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.gallery-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.gallery-modal-content {
    width: min(1000px, 95vw);
    height: min(700px, 90vh);
    background: #1a1a1a;
    border-radius: 24px;
    padding: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.gallery-main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
}

.gallery-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.gallery-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-close:hover {
    background: rgba(245, 184, 0, 0.9);
    border-color: #f5b800;
    transform: rotate(90deg);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-nav:hover {
    background: linear-gradient(135deg, #f5b800, #fde047);
    border-color: #f5b800;
    color: #111;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 16px;
}

.gallery-nav.next {
    right: 16px;
}

.gallery-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.gallery-dots {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.gallery-dot.active {
    width: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f5b800, #fde047);
}

.gallery-counter {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

/* =============================
   RESPONSIVE ADJUSTMENTS
============================= */

@media (max-width: 768px) {
    .amazon-ad-container {
        padding: 24px;
    }

    .amazon-ad-title {
        font-size: 1.5rem;
    }

    .amazon-ad-grid {
        gap: 24px;
    }

    .avis-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .avis-btn.prev {
        left: -12px;
    }

    .avis-btn.next {
        right: -12px;
    }

    .amazon-gallery-img {
        height: 80px;
    }

    .gallery-nav {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .gallery-modal-content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .amazon-ad-section {
        padding: 40px 12px;
    }

    .amazon-ad-container {
        padding: 20px;
    }

    .amazon-ad-rating-row {
        flex-direction: column;
    }

    .avis-carousel {
        padding: 20px;
    }

    .note-value {
        font-size: 1.6rem;
    }

    .gallery-footer {
        flex-direction: column;
        gap: 12px;
    }
}
