/* Reset et base pour un design Apple-like : minimal, clair, aéré */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000;
    --secondary-color: #007AFF;
    --text-light: #1d1d1f;
    --text-muted: #6e6e73;
    --bg-light: #f5f5f7;
    --border-color: #d2d2d7;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.4;
    color: var(--text-light);
    background-color: #fff;
    margin: 0;
    overflow-x: hidden;
}

/* Navbar épurée */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    font-weight: 500;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: -0.01em;
}

.nav-link {
    color: var(--text-light);
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.navbar-toggler {
    border: 1px solid #d2d2d7;
    border-radius: 6px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(29, 29, 31, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dropdown menu styles */
.dropdown-menu {
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    padding: 0.5rem 0;
}

.dropdown-item {
    color: #1d1d1f;
    padding: 0.75rem 1.5rem;
    font-weight: 400;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f5f5f7;
    color: #007AFF;
}

.dropdown-divider {
    border-top: 1px solid #d2d2d7;
    margin: 0.5rem 0;
}

/* Hero section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3));
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(128,128,128,0.1) 0%, rgba(128,128,128,0.05) 50%, transparent 70%);
    animation: smoke 20s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes smoke {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
        opacity: 0.6;
    }
    100% {
        transform: translate(50%, 50%) rotate(180deg);
        opacity: 0.2;
    }
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Boutons style Apple */
.btn-apple {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
    display: inline-block;
}

.btn-apple:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.btn-apple-dark {
    background: #1d1d1f;
    border: 1px solid #1d1d1f;
    color: #ffffff;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(29, 29, 31, 0.2);
    font-size: 1rem;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    justify-content: center;
    margin: 0 auto;
    display: block;
    width: fit-content;
}

.btn-apple-dark i {
    font-size: 1.1rem;
}

.btn-apple-dark:hover {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 29, 31, 0.3);
}

.cta-section .btn-apple {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

/* Sections générales */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
    color: #1d1d1f;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 40px;
    height: 2px;
    background: #007AFF;
    border-radius: 1px;
}

/* Conteneur principal */
.main-content {
    min-height: 100vh;
    padding: 4rem 0;
}

.container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-wrapper {
    background: #ffffff;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin: 0;
    border: none;
}

/* Featured items */
.featured-item {
    text-align: center;
    margin-bottom: 4rem;
}

.featured-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
}

.featured-item:hover img {
    transform: scale(1.05);
}

.featured-item h3 {
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.featured-item p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* About section */
.about {
    background: var(--bg-light);
}

/* CTA section */
.cta-section {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
}

/* Note globale */
.avg-rating {
    background: #f5f5f7;
    border: 1px solid #d2d2d7;
    border-radius: 18px;
    padding: 4rem;
    text-align: center;
    margin-bottom: 5rem;
}

.avg-stats {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: #007AFF;
    font-weight: 500;
}

.avg-stars {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #007AFF;
}

.avg-rating h3 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
}

.avg-rating p {
    color: #86868b;
    font-size: 1.1rem;
}

/* Alertes */
.alert {
    border-radius: 12px;
    border: 1px solid;
    font-weight: 500;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
}

.btn-close {
    filter: grayscale(1);
    opacity: 0.5;
}

/* Bouton connexion */
.connect-btn {
    background: #007AFF;
    border: 1px solid #007AFF;
    color: #ffffff;
    font-weight: 600;
    padding: 0.875rem 2.25rem;
    border-radius: 980px;
    transition: background-color 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 122, 255, 0.3);
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.connect-btn:hover {
    background: #0066cc;
    color: #ffffff;
}

/* Graphique */
.chart-container {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #d2d2d7;
}

#ratingChart {
    max-height: 400px;
}

/* Formulaire de filtre */
.filter-form {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 3rem;
    border: 1px solid #d2d2d7;
    text-align: center;
}

.filter-form .row {
    justify-content: center;
}

/* Formulaires généraux */
.form-control-modern, .form-select, textarea.form-control-modern {
    background: #ffffff;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    color: #000000 !important;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease;
    width: 100%;
}

.form-control-modern:focus, .form-select:focus, textarea.form-control-modern:focus {
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    color: #000000 !important;
}

.form-control-modern::placeholder, textarea.form-control-modern::placeholder {
    color: #86868b !important;
}

.form-label {
    color: #1d1d1f;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-text {
    color: #86868b;
    font-size: 0.875rem;
}

/* Fix pour select */
.form-select option {
    background: #ffffff !important;
    color: #1d1d1f !important;
}

.form-select optgroup {
    background: #ffffff !important;
    color: #1d1d1f !important;
}

/* Boutons modernes */
.btn-modern {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.15s ease-out;
    border: 1px solid;
    position: relative;
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    cursor: pointer;
}

.btn-modern:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.btn-primary.btn-modern {
    background: #007AFF;
    border-color: #007AFF;
    color: #ffffff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.btn-primary.btn-modern:hover {
    background: #0066CC;
    border-color: #0066CC;
    color: #ffffff;
    transform: translateY(-0.5px);
    box-shadow: 0 2px 4px rgba(0, 122, 255, 0.2);
}

.btn-primary.btn-modern:active {
    transform: translateY(0);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.btn-outline-primary.btn-modern {
    background: transparent;
    color: #007AFF;
    border-color: #007AFF;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.03);
}

.btn-outline-primary.btn-modern:hover {
    background: #007AFF;
    color: #ffffff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.btn-outline-primary.btn-modern:active {
    background: #0066CC;
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.05);
}

.btn-outline-danger.btn-modern {
    background: transparent;
    color: #DC2F2F;
    border-color: #DC2F2F;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.03);
}

.btn-outline-danger.btn-modern:hover {
    background: #DC2F2F;
    color: #ffffff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.btn-outline-secondary.btn-modern {
    background: transparent;
    color: #86868B;
    border-color: #86868B;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.03);
}

.btn-outline-secondary.btn-modern:hover {
    background: #86868B;
    color: #ffffff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Cartes d'avis */
.review-card {
    background: #ffffff;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    margin-bottom: 2rem;
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: start;
}

.review-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid #d2d2d7;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 40px;
    height: 40px;
    background: #007AFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #ffffff;
}

.username {
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.25rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
    color: #007AFF;
}

.date {
    color: #86868b;
    font-size: 0.875rem;
}

.card-body {
    padding: 1.5rem;
}

.comment {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #1d1d1f;
    margin-bottom: 1.5rem;
}

.review-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.review-photos img {
    border-radius: 8px;
    width: 100%;
    height: 120px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.review-photos img:hover {
    transform: scale(1.02);
}

/* Réponses */
.reply {
    background: rgba(0, 122, 255, 0.05);
    border-left: 3px solid #007AFF;
    border-radius: 0 8px 8px 0;
    padding: 1rem;
    margin-top: 1rem;
}

.reply strong {
    color: #007AFF;
}

/* Étoiles rating */
.star-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.text-label {
    font-weight: 600;
    color: #1d1d1f;
    min-width: 4rem;
}

.stars-input {
    display: flex;
    gap: 0.25rem;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-label {
    color: #86868b;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0.25rem;
    border-radius: 4px;
}

.star-label:hover,
.star-label.active {
    color: #007AFF;
}

/* Formulaire édition */
.edit-form {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #d2d2d7;
}

/* Input file */
.file-input {
    display: none;
}

.file-input-label {
    margin-top: 0.5rem;
    display: inline-block;
    width: auto;
}

/* Styles pour Espace Staff */
.staff-section {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #d2d2d7;
}

.table-modern {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.table-modern th {
    background: #007AFF;
    color: #ffffff;
    font-weight: 600;
    padding: 1rem;
}

.table-modern td {
    padding: 1rem;
    vertical-align: middle;
}

.badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.form-select-sm {
    width: auto;
    display: inline-block;
    margin-right: 0.5rem;
}

/* Modals staff */
.modal-content {
    border-radius: 12px;
    border: 1px solid #d2d2d7;
}

.modal-header {
    border-bottom: 1px solid #d2d2d7;
    background: #f5f5f7;
}

/* Groupes de boutons */
.btn-group {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.vote-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* Formulaire nouvel avis */
.review-form-card {
    background: #f5f5f7;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #d2d2d7;
    margin-top: 3rem;
}

.card-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 2rem;
    text-align: center;
}

/* Loader */
.loader {
    text-align: center;
    padding: 2rem;
    color: #86868b;
}

.loader i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styles pour la page Contact */
.contact-info {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 100%;
    text-align: center;
}

.contact-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.contact-subtitle:first-child {
    margin-top: 0;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-hours {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.contact-hours li {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-hours li:last-child {
    border-bottom: none;
}

.hour-icon {
    font-size: 1rem;
    min-width: 20px;
}

.contact-hours li .badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.text-success { color: #34C759 !important; }
.text-danger { color: #FF3B30 !important; }
.text-warning { color: #FF9500 !important; }
.bg-success { background-color: #34C759 !important; }
.bg-warning { background-color: #FF9500 !important; }

#status-banner { 
    font-size: 1rem; 
    font-weight: 500; 
    color: var(--text-light); 
    padding: 0.25rem 0.75rem !important;
    border-radius: 8px !important;
    max-width: fit-content;
    margin: 0 auto;
}

/* Newsletter */
.newsletter form {
    max-width: 300px;
    margin: 0 auto;
    justify-content: center;
}

.newsletter .form-control-modern {
    font-size: 0.95rem;
}

.newsletter .btn-apple-dark {
    white-space: nowrap;
    font-size: 0.95rem;
}

/* FAQ */
.faq-section {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.accordion-button {
    font-weight: 500;
    color: var(--text-light);
    background: transparent;
    border: none;
    padding: 1.5rem;
    box-shadow: none;
    text-align: left;
}

.accordion-button:not(.collapsed) {
    color: var(--secondary-color);
    background: rgba(0, 122, 255, 0.05);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 122, 255, 0.1);
}

.accordion-body {
    color: var(--text-muted);
    padding: 0 1.5rem 1.5rem;
    text-align: left;
}

.accordion-item {
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto 1rem;
}

/* Styles pour la section avis sur la page d'accueil */
.reviews-section {
    background: var(--bg-light);
}

.reviews-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.reviews-list::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Styles pour le formulaire d'inscription */
.card {
    background: #ffffff;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.d-grid .btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.875rem;
    transition: all 0.15s ease-out;
}

.text-muted {
    color: #86868b !important;
}

/* Responsive */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0 1rem;
    }

    .main-content {
        padding: 2rem 0;
    }

    .navbar {
        padding: 0.75rem 1rem;
    }

    .title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .avg-rating {
        padding: 3rem;
        margin-bottom: 3rem;
    }

    .avg-stars {
        font-size: 2.5rem;
    }

    .avg-rating h3 {
        font-size: 2rem;
    }

    .filter-form {
        padding: 1rem;
    }

    .review-card:hover {
        transform: none;
    }

    .btn-group, .vote-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-modern {
        width: 100%;
        justify-content: center;
    }

    .review-photos {
        grid-template-columns: repeat(2, 1fr);
    }

    .dropdown-menu {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .staff-section {
        padding: 1rem;
    }

    .table-modern th, .table-modern td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .contact-info {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }

    .contact-subtitle {
        font-size: 1.3rem;
    }

    .btn-apple {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .contact-hours li {
        font-size: 1rem;
    }

    .btn-apple-dark {
        width: 100%;
        justify-content: center;
    }

    .newsletter form { 
        flex-direction: column; 
    }

    .newsletter .btn-apple-dark { 
        width: 100%; 
    }

    .faq-section { 
        padding: 1.5rem; 
    }

    .accordion-button { 
        padding: 1rem; 
        font-size: 1rem; 
    }

    .contact-hours li .badge { 
        font-size: 0.75rem; 
    }

    .reviews-list {
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .review-card {
        flex: 0 0 calc(100% - 0.5rem);
    }

    .card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero::after {
        width: 300%;
        height: 300%;
    }

    .navbar-nav {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .review-photos {
        grid-template-columns: 1fr;
    }

    .avg-rating {
        padding: 2rem;
    }
}