/* 1. CSS Variables */
:root {
    --color-primary: #8B4513;
    --color-primary-dark: #654321;
    --color-primary-light: #A0522D;
    --color-secondary: #d4a574;
    --color-accent: #FFD700;
    --color-dark: #1a1a1a;
    --color-light: #f8f6f3;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #e0dcd7;
    --color-success: #4CAF50;
    --color-error: #f44336;
    
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Georgia', 'Times New Roman', serif;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.25);
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Reset/Normalize */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* 3. Base Styles */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-secondary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-top: 1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.btn--primary {
    background: var(--color-primary);
    color: white;
}

.btn--primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn--secondary:hover {
    background: white;
    color: var(--color-primary);
}

/* 4. Layout Components */

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navigation__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.navigation__logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
}

.navigation__menu {
    display: flex;
    gap: 2rem;
}

.navigation__link {
    color: var(--color-text);
    font-weight: 500;
    position: relative;
}

.navigation__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s;
}

.navigation__link:hover::after {
    width: 100%;
}

.navigation__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
}

.navigation__toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    transition: var(--transition);
}

/* 5. Page Sections */

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 70px;
}

.hero__slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero__slide.active {
    opacity: 1;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26,26,26,0.7) 0%, rgba(139,69,19,0.5) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero__title {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease;
}

.hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero__rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.star {
    color: var(--color-accent);
    font-size: 1.2rem;
}

.star.filled {
    color: var(--color-accent);
}

.star.partial {
    background: linear-gradient(90deg, var(--color-accent) 30%, rgba(255,255,255,0.3) 30%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-text {
    color: white;
    font-size: 1.1rem;
}

.hero__badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s both;
}

.badge {
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.hero__cta {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease 0.8s both;
}

.hero__controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 3;
}

.hero__control {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
}

.hero__control:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* Specialites Section */
.specialites {
    padding: 80px 0;
    background: white;
}

.specialites__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.specialite-card {
    background: var(--color-light);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.specialite-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-secondary);
}

.specialite-card__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.specialite-card__title {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.specialite-card__description {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.specialite-card__tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tag {
    padding: 4px 12px;
    background: var(--color-secondary);
    color: white;
    border-radius: 15px;
    font-size: 0.85rem;
}

/* Services Section */
.services {
    padding: 60px 0;
    background: var(--color-light);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.service-item__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-item__title {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.service-item__list {
    color: var(--color-text-light);
}

.service-item__list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.service-item__list li:last-child {
    border-bottom: none;
}

/* Galerie Section */
.galerie {
    padding: 80px 0;
    background: white;
}

.galerie__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.galerie__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    height: 300px;
}

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

.galerie__item:hover img {
    transform: scale(1.1);
}

.galerie__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.galerie__item:hover .galerie__overlay {
    transform: translateY(0);
}

.galerie__caption {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Avis Section */
.avis {
    padding: 80px 0;
    background: var(--color-light);
}

.avis__summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.avis__score {
    text-align: center;
    padding: 2rem;
    border-right: 2px solid var(--color-border);
}

.avis__score-value {
    font-size: 3rem;
    font-weight: bold;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.avis__count {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.avis__distribution {
    padding: 1rem;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.rating-label {
    width: 40px;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.rating-bar__track {
    flex: 1;
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar__fill {
    height: 100%;
    background: var(--color-secondary);
    transition: width 1s ease;
}

.rating-count {
    width: 30px;
    text-align: right;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.avis__carousel {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
}

.avis__track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
}

.review-card {
    min-width: 350px;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-card__rating {
    display: flex;
    gap: 2px;
}

.review-card__date {
    color: var(--color-text-light);
    font-size: 0.85rem;
}

.review-card__text {
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-card__footer {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.review-card__tag {
    padding: 4px 8px;
    background: var(--color-border);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.avis__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-primary);
    transition: var(--transition);
}

.avis__nav--prev {
    left: 10px;
}

.avis__nav--next {
    right: 10px;
}

.avis__nav:hover {
    background: var(--color-primary);
    color: white;
}

/* Horaires Section */
.horaires {
    padding: 80px 0;
    background: white;
}

.horaires__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.horaires__card {
    background: var(--color-light);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
}

.horaires__list {
    margin-bottom: 2rem;
}

.horaires__item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.horaires__item:hover {
    background: white;
    padding-left: 1.5rem;
}

.horaires__item--closed {
    opacity: 0.6;
}

.horaires__item--closed .horaires__time {
    color: var(--color-error);
    font-weight: bold;
}

.horaires__day {
    font-weight: 500;
    color: var(--color-dark);
}

.horaires__time {
    color: var(--color-text);
}

.horaires__status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.open {
    background: var(--color-success);
}

.status-indicator.closed {
    background: var(--color-error);
}

.horaires__subtitle {
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.affluence-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 150px;
    margin-bottom: 1rem;
}

.affluence-bar {
    flex: 1;
    background: var(--color-secondary);
    border-radius: 4px 4px 0 0;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.affluence-bar:hover {
    opacity: 0.8;
}

.affluence-bar.low {
    background: #4CAF50;
}

.affluence-bar.medium {
    background: #FFC107;
}

.affluence-bar.high {
    background: #f44336;
}

.affluence-legend {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.affluence-legend__item {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--color-light);
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact__item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.contact__icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact__details h3 {
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.contact__details p {
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.contact__link {
    color: var(--color-primary);
    text-decoration: underline;
}

.contact__link:hover {
    color: var(--color-primary-dark);
}

.contact__map {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    background: var(--color-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__brand h3 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.footer__brand p {
    color: rgba(255,255,255,0.7);
}

.footer__links h4,
.footer__info h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__links a {
    color: rgba(255,255,255,0.7);
}

.footer__links a:hover {
    color: var(--color-secondary);
}

.footer__info p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

/* 6. UI Components */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-5px);
}

/* 7. Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* 8. Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 currentColor;
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0,0,0,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0,0,0,0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* 9. Media Queries */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
    
    .hero__title {
        font-size: 3rem;
    }
    
    .horaires__grid {
        grid-template-columns: 1fr;
    }
    
    .contact__content {
        grid-template-columns: 1fr;
    }
    
    .avis__summary {
        grid-template-columns: 1fr;
    }
    
    .avis__score {
        border-right: none;
        border-bottom: 2px solid var(--color-border);
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .navigation__toggle {
        display: flex;
    }
    
    .navigation__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .navigation__menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__subtitle {
        font-size: 1.2rem;
    }
    
    .hero__cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .btn {
        width: 100%;
    }
    
    .specialites__grid,
    .services__grid,
    .galerie__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .review-card {
        min-width: 280px;
    }
    
    .avis__carousel {
        padding: 0 40px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__controls {
        padding: 0 1rem;
    }
    
    .hero__control {
        width: 40px;
        height: 40px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .review-card {
        min-width: 100%;
    }
}