/* L'Adresse Arles - Restaurant Gastronomique */

:root {
    --primary: #2c5f2d;
    --primary-light: #4a8c4e;
    --secondary: #967259;
    --accent: #d4a373;
    --dark: #1a1a1a;
    --gray: #666;
    --light: #fafaf8;
    --white: #ffffff;
    --beige: #f5f1e8;

    --gradient-primary: linear-gradient(135deg, #2c5f2d 0%, #4a8c4e 100%);
    --gradient-warm: linear-gradient(135deg, #967259 0%, #d4a373 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--dark);
    line-height: 1.7;
    background: var(--beige);
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skip to main content for accessibility */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
}

.skip-to-main:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 1em;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Loading animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--primary);
    margin-bottom: 1rem;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--beige);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--primary);
    font-family: 'Georgia', serif;
}

.tagline {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--gray);
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-size: 0.95rem;
    font-weight: 400;
    transition: var(--transition);
    font-family: 'Arial', sans-serif;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

/* ===== SVG Icons ===== */
.icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.icon-inline {
    display: inline-block;
    vertical-align: middle;
    margin: 0 0.25rem;
}

.star-icon {
    display: inline-block;
    margin: 0 0.1rem;
    color: #f5c518;
}

/* ===== Buttons ===== */
.btn {
    padding: 0.9rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: 'Arial', sans-serif;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(44, 95, 45, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 95, 45, 0.4);
}

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

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

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%232c5f2d" width="1200" height="800"/></svg>');
    background-size: cover;
    background-position: center;
    position: relative;
    text-align: center;
    color: var(--white);
    padding: 8rem 2rem 4rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-family: 'Arial', sans-serif;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-badges {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.badge {
    padding: 0.7rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: 'Arial', sans-serif;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

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

/* ===== Sections ===== */
section {
    padding: 6rem 0;
}

.label {
    display: inline-block;
    color: var(--primary);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-family: 'Arial', sans-serif;
    font-weight: 600;
}

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

.section-header h2 {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray);
    font-family: 'Arial', sans-serif;
}

/* ===== About Section ===== */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--gray);
    font-family: 'Arial', sans-serif;
}

.features {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.feature .icon {
    font-size: 2.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.feature .icon svg {
    display: block;
}

.feature h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--primary);
    font-weight: 600;
    font-family: 'Arial', sans-serif;
}

.feature p {
    color: var(--gray);
    font-size: 0.95rem;
    font-family: 'Arial', sans-serif;
}

.about-image,
.placeholder {
    aspect-ratio: 4/3;
    border-radius: 4px;
    overflow: hidden;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
}

/* ===== Menu Section ===== */
.menu-section {
    background: var(--beige);
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 2rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Arial', sans-serif;
    font-weight: 500;
    border-radius: 4px;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.menu-category {
    margin-bottom: 4rem;
}

.menu-category h3 {
    font-size: 2rem;
    font-weight: 400;
    color: var(--primary);
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.menu-subtitle {
    color: var(--gray);
    font-style: italic;
    margin-bottom: 2rem;
    font-family: 'Arial', sans-serif;
}

.menu-items {
    display: grid;
    gap: 2rem;
}

.menu-item {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.menu-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.menu-item.featured {
    border-left: 4px solid var(--primary);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.item-header h4 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--dark);
}

.price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    font-family: 'Arial', sans-serif;
}

.menu-item p {
    color: var(--gray);
    font-size: 0.95rem;
    font-family: 'Arial', sans-serif;
}

/* Wine Section */
.wine-section h3 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--primary);
}

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

.wine-cat {
    padding: 2rem;
    background: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.wine-cat h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark);
    font-family: 'Arial', sans-serif;
}

.wine-cat p {
    color: var(--gray);
    margin-bottom: 1rem;
    font-family: 'Arial', sans-serif;
}

.wine-range {
    display: block;
    font-weight: 600;
    color: var(--primary);
    font-family: 'Arial', sans-serif;
}

/* ===== Chef Section ===== */
.chef-section {
    background: var(--white);
}

.chef-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.chef-image .placeholder {
    aspect-ratio: 3/4;
}

.chef-text h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.chef-title {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-family: 'Arial', sans-serif;
    font-weight: 500;
}

.chef-text p {
    margin-bottom: 1.5rem;
    color: var(--gray);
    font-family: 'Arial', sans-serif;
}

blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    font-style: italic;
    font-size: 1.1rem;
    margin: 2rem 0;
    color: var(--dark);
}

.chef-achievements {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.achievement {
    padding: 0.6rem 1.2rem;
    background: var(--beige);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--primary);
    font-family: 'Arial', sans-serif;
    font-weight: 500;
}

/* ===== Gallery ===== */
.gallery {
    background: var(--beige);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.gallery-item.large {
    grid-column: span 2;
}

.gallery-item .placeholder {
    width: 100%;
    height: 100%;
}

/* ===== Reviews ===== */
.reviews {
    background: var(--white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.review-card {
    padding: 2rem;
    background: var(--beige);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.stars {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.2rem;
}

.review-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.reviewer {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.reviewer strong {
    color: var(--dark);
    font-family: 'Arial', sans-serif;
}

.reviewer span {
    font-size: 0.85rem;
    color: var(--gray);
    font-family: 'Arial', sans-serif;
}

.rating-summary {
    text-align: center;
    margin-top: 3rem;
}

.rating-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 3rem;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow-md);
}

.rating-score {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Arial', sans-serif;
}

.rating-text {
    font-size: 1rem;
    margin: 0.5rem 0;
}

.rating-reviews {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===== Reservation ===== */
.reservation {
    background: var(--beige);
}

.reservation-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.reservation-info h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.reservation-info p {
    color: var(--gray);
    margin-bottom: 2rem;
    font-family: 'Arial', sans-serif;
}

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

.contact-item {
    display: flex;
    gap: 1.5rem;
}

.contact-item .icon {
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-item .icon svg {
    display: block;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-family: 'Arial', sans-serif;
    font-weight: 600;
}

.contact-item p {
    color: var(--gray);
    margin: 0;
    font-family: 'Arial', sans-serif;
}

.reservation-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-family: 'Arial', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
    background-color: #fff5f5;
}

.field-error {
    display: block;
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    font-family: 'Arial', sans-serif;
}

.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 1rem;
    font-family: 'Arial', sans-serif;
}

/* ===== Notification System ===== */
.notification {
    position: fixed;
    top: 90px;
    right: 2rem;
    max-width: 400px;
    padding: 1.2rem 1.5rem;
    background: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transform: translateX(calc(100% + 2rem));
    transition: transform 0.3s ease;
    font-family: 'Arial', sans-serif;
    border-left: 4px solid var(--primary);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left-color: #27ae60;
    background: #d4edda;
    color: #155724;
}

.notification-error {
    border-left-color: #e74c3c;
    background: #f8d7da;
    color: #721c24;
}

.notification-info {
    border-left-color: var(--primary);
    background: #d1ecf1;
    color: #0c5460;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

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

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-family: 'Arial', sans-serif;
    font-weight: 600;
}

.footer-section p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Arial', sans-serif;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Arial', sans-serif;
}

.footer-bottom a {
    color: var(--white);
    text-decoration: none;
}

/* ===== Cookie Consent Banner ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 1.5rem 2rem;
    z-index: 9998;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: 'Arial', sans-serif;
}

.cookie-text p {
    font-size: 0.95rem;
    opacity: 0.9;
    font-family: 'Arial', sans-serif;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Arial', sans-serif;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

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

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 95, 45, 0.4);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .about-grid,
    .chef-grid,
    .reservation-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .wine-categories {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.large {
        grid-column: span 1;
    }
}
