/* ============================================
   PC DE LA BASE - Crêperie Lorient
   Modern, SEO-optimized, AAA accessible CSS
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --gold: #D49A2A;
    --gold-light: #E8B84A;
    --gold-dark: #B07D1E;
    --dark: #0F0F0F;
    --dark-light: #1A1A1A;
    --dark-card: #161616;
    --cream: #FAF6F0;
    --cream-dark: #F0EBE3;
    --white: #FFFFFF;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-400: #A0A0A0;
    --gray-600: #666666;
    --gray-800: #333333;
    --teal: #2D8C7E;
    --teal-light: #3DA898;

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --header-height: 80px;
    --container-max: 1200px;
    --section-padding: clamp(4rem, 8vw, 8rem);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
    list-style: none;
}

/* --- Skip Link (Accessibility) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    z-index: 10000;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

/* --- Container --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

/* --- Section Tags & Titles --- */
.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section-tag--center {
    display: block;
    text-align: center;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.section-title--center {
    text-align: center;
}

.section-title em {
    font-style: normal;
    color: var(--gold);
}

.section-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--gray-600);
    font-size: 1.05rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

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

.btn--primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 154, 42, 0.35);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline:hover {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all var(--transition);
    background: transparent;
}

.header--scrolled {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    height: 70px;
}

.header__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.header__logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1);
}

.header__nav {
    display: flex;
    align-items: center;
}

.header__menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.header__link {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.03em;
    border-radius: 50px;
    transition: all var(--transition);
    position: relative;
}

.header__link:hover,
.header__link.active {
    color: var(--white);
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
    transition: transform var(--transition);
}

.header__link:hover::after,
.header__link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.header__link--cta {
    background: var(--gold);
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
    margin-left: 0.5rem;
    font-weight: 600;
}

.header__link--cta::after {
    display: none;
}

.header__link--cta:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
}

/* Burger menu */
.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    gap: 6px;
}

.header__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.header__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

.header__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__video-wrapper {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 15, 15, 0.4) 0%,
        rgba(15, 15, 15, 0.2) 40%,
        rgba(15, 15, 15, 0.6) 100%
    );
}

.hero__content {
    text-align: center;
    z-index: 1;
    padding: 0 2rem;
    animation: heroFadeIn 1.2s ease-out;
}

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

.hero__badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(212, 154, 42, 0.2);
    border: 1px solid rgba(212, 154, 42, 0.4);
    border-radius: 50px;
    color: var(--gold-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero__title {
    margin-bottom: 1rem;
}

.hero__logo-img {
    max-width: clamp(280px, 40vw, 500px);
    height: auto;
    filter: brightness(1.15) drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    letter-spacing: 0.05em;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: var(--section-padding) 0;
    background: var(--white);
}

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

.about__text {
    color: var(--gray-600);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about__features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.about__feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--cream);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.about__feature:hover {
    background: var(--cream-dark);
    transform: translateX(4px);
}

.about__feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    border-radius: 10px;
    color: var(--white);
}

.about__feature-icon svg {
    width: 22px;
    height: 22px;
}

.about__feature strong {
    display: block;
    font-size: 0.95rem;
    color: var(--dark);
}

.about__feature span {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.about__visual {
    position: relative;
}

.about__image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
}

.about__image-deco {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* ============================================
   HIGHLIGHTS
   ============================================ */
.highlights {
    padding: 4rem 0;
    background: var(--dark);
}

.highlights__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.highlight {
    padding: 2rem 1rem;
}

.highlight__number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.highlight__suffix {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--gold);
}

.highlight__label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   MENU / CARTE
   ============================================ */
.menu {
    padding: var(--section-padding) 0;
    background: var(--cream);
}

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

.menu-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition);
    border: 1px solid var(--gray-200);
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.menu-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--gold);
}

.menu-card__icon svg {
    width: 100%;
    height: 100%;
}

.menu-card__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.menu-card__desc {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
    padding: var(--section-padding) 0 4rem;
    background: var(--white);
    overflow: hidden;
}

.gallery__slider {
    position: relative;
    margin-top: 1rem;
    overflow: hidden;
}

.gallery__track {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery__track::-webkit-scrollbar {
    display: none;
}

.gallery__slide {
    flex-shrink: 0;
    width: clamp(280px, 30vw, 380px);
    scroll-snap-align: start;
}

.gallery__img {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--cream);
    object-fit: cover;
}

.gallery__caption {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.gallery__controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.gallery__btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--gray-200);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    color: var(--dark);
}

.gallery__btn:hover {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--white);
}

.gallery__btn svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews {
    padding: var(--section-padding) 0;
    background: var(--cream);
}

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.review-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.review-card__stars {
    display: flex;
    gap: 2px;
    margin-bottom: 1rem;
    color: var(--gold);
}

.review-card__stars svg {
    width: 18px;
    height: 18px;
}

.review-card__text {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.review-card__author strong {
    display: block;
    font-size: 0.95rem;
    color: var(--dark);
}

.review-card__author span {
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact__address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--gold);
    margin-top: 2px;
}

.contact__item strong {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.contact__item p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact__item a {
    color: var(--gold);
    font-weight: 500;
}

.contact__item a:hover {
    color: var(--gold-dark);
}

.contact__socials {
    display: flex;
    gap: 1rem;
}

.contact__socials a {
    color: var(--gold);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

.contact__map iframe {
    width: 100%;
    height: 100%;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 4rem 0 2rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
    height: auto;
    width: 180px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: brightness(1.1);
}

.footer__brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer__links h3 {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 1rem;
}

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

.footer__links li {
    font-size: 0.9rem;
}

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

.footer__bottom {
    padding-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
}

/* ============================================
   ANIMATIONS (Intersection Observer)
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about__visual {
        order: -1;
    }

    .about__image-wrapper {
        aspect-ratio: 16/9;
    }

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

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

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

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

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .header__burger {
        display: flex;
    }

    .header__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    }

    .header__menu.open {
        right: 0;
    }

    .header__link {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }

    .header__link--cta {
        margin-left: 0;
        margin-top: 1rem;
    }

    .hero__title {
        font-size: clamp(3rem, 15vw, 5rem);
    }

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

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

    .highlight {
        padding: 1.5rem 0.5rem;
    }

    .gallery__slide {
        width: 80vw;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact__map {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* --- FAQ Section --- */
.faq {
    padding: var(--section-padding) 0;
    background: var(--cream);
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq__item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease;
}

.faq__item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.faq__item[open] {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.faq__question {
    padding: 1.25rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    transition: color 0.3s ease;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 300;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq__item[open] .faq__question::after {
    content: '−';
}

.faq__item[open] .faq__question {
    color: var(--gold);
}

.faq__answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 0.95rem;
}

.faq__answer strong {
    color: var(--dark);
}

.faq__answer a {
    color: var(--gold);
    font-weight: 600;
}

/* --- SEO Content Block --- */
.seo-content {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.seo-content__text {
    max-width: 800px;
    margin: 0 auto;
    column-count: 1;
}

.seo-content__text p {
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.seo-content__text strong {
    color: var(--dark);
}

/* --- Print styles --- */
@media print {
    .header, .hero__video-wrapper, .gallery, .hero__scroll {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}
