/* ============================================
   ETS FUNES — Style principal
   Gage de qualité depuis 1924
   ============================================ */

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

:root {
    --vert-sauge: #90AB74;
    --noir: #111111;
    --blanc: #FFFFFF;
    --gris: #7A7A7A;
    --peche: #FFBC7D;
    --ff-titre: 'Vidaloka', serif;
    --ff-h2: 'EB Garamond', serif;
    --ff-body: 'Roboto', sans-serif;
    --ff-contact: 'Viga', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--ff-body);
    font-weight: 300;
    color: var(--noir);
    line-height: 1.7;
    background: var(--blanc);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

/* --- Top Bar --- */
.top-bar {
    background: var(--noir);
    color: var(--blanc);
    font-size: 0.8rem;
    padding: 8px 0;
    letter-spacing: 0.5px;
}

.top-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar__hours,
.top-bar__phone {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar__social a {
    color: var(--blanc);
    font-size: 1rem;
    transition: color 0.3s;
}

.top-bar__social a:hover {
    color: var(--vert-sauge);
}

/* --- Header --- */
.site-header {
    background: var(--blanc);
    padding: 18px 0;
    text-align: center;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid #eee;
}

.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.site-header__logo img {
    height: 60px;
    width: auto;
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
}

.burger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--noir);
    margin: 6px 0;
    transition: transform 0.3s, opacity 0.3s;
}

.burger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.burger.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Nav --- */
.site-nav {
    background: var(--blanc);
    border-bottom: 1px solid #eee;
}

.site-nav__list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.site-nav__list a {
    display: block;
    padding: 14px 0;
    font-family: var(--ff-body);
    font-weight: 400;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--noir);
    transition: color 0.3s;
    position: relative;
}

.site-nav__list a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--vert-sauge);
    transition: width 0.3s;
}

.site-nav__list a:hover::after,
.site-nav__list a.active::after {
    width: 100%;
}

.site-nav__list a:hover {
    color: var(--vert-sauge);
}

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

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('../images/2021/01/IMG_8701-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.50);
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    color: var(--blanc);
    padding: 0 20px;
}

.hero__title {
    font-family: var(--ff-titre);
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero__subtitle {
    font-family: var(--ff-h2);
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero__marches {
    display: inline-block;
    text-align: left;
}

.hero__marches-title {
    font-family: var(--ff-h2);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 14px;
    text-align: center;
    color: var(--peche);
}

.hero__marches ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    justify-content: center;
}

.hero__marches li {
    font-weight: 300;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.hero__marches li strong {
    font-weight: 500;
    color: var(--peche);
}

/* --- Section générique --- */
.section {
    padding: 90px 20px;
}

.section__inner {
    max-width: 900px;
    margin: 0 auto;
}

.section__title {
    font-family: var(--ff-h2);
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 100;
}

/* --- Qui sommes-nous --- */
.about {
    background: var(--blanc);
}

.about .section__title {
    color: var(--vert-sauge);
}

.about__text {
    font-size: 1.05rem;
    color: var(--gris);
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.9;
}

.about__text p {
    margin-bottom: 16px;
}

.about__text p:last-child {
    margin-bottom: 0;
}

/* --- Nos marchés (parallax) --- */
.marches {
    position: relative;
    overflow: hidden;
    color: var(--blanc);
}

.marches__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('../images/2021/02/unnamed-5-1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.marches__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2;
}

.marches .section__inner {
    position: relative;
    z-index: 3;
}

.marches .section__title {
    color: var(--blanc);
}

.marches__list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 50px;
}

.marches__item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px 32px;
    text-align: center;
    min-width: 160px;
    backdrop-filter: blur(4px);
    transition: background 0.3s;
}

.marches__item:hover {
    background: rgba(144, 171, 116, 0.2);
}

.marches__day {
    font-family: var(--ff-h2);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--peche);
    margin-bottom: 4px;
}

.marches__city {
    font-weight: 300;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.marches__map {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

.marches__map iframe {
    width: 100%;
    max-width: 700px;
    height: 350px;
    border: none;
    filter: grayscale(30%);
}

/* --- Contact --- */
.contact {
    position: relative;
    overflow: hidden;
    color: var(--blanc);
}

.contact__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('../images/2021/01/IMG_8697.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.contact__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.59);
    z-index: 2;
}

.contact .section__inner {
    position: relative;
    z-index: 3;
    max-width: 1000px;
}

.contact .section__title {
    font-family: var(--ff-contact);
    color: var(--blanc);
    font-weight: 400;
    letter-spacing: 3px;
}

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

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact__form input,
.contact__form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.07);
    color: var(--blanc);
    font-family: var(--ff-body);
    font-size: 0.95rem;
    font-weight: 300;
    transition: border-color 0.3s;
    outline: none;
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact__form input:focus,
.contact__form textarea:focus {
    border-color: var(--vert-sauge);
}

.contact__form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact__form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    font-family: var(--ff-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    border: 2px solid var(--vert-sauge);
    background: var(--vert-sauge);
    color: var(--blanc);
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    align-self: flex-start;
}

.btn:hover {
    background: transparent;
    color: var(--vert-sauge);
}

.contact__info {
    padding-top: 10px;
}

.contact__info h3 {
    font-family: var(--ff-h2);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--peche);
}

.contact__info p {
    margin-bottom: 12px;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.8;
}

.contact__info a {
    color: var(--peche);
    transition: color 0.3s;
}

.contact__info a:hover {
    color: var(--vert-sauge);
}

/* Flash message */
.flash-message {
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    text-align: center;
}

.flash-message--success {
    background: rgba(144, 171, 116, 0.2);
    border: 1px solid var(--vert-sauge);
    color: var(--blanc);
}

.flash-message--error {
    background: rgba(255, 100, 100, 0.2);
    border: 1px solid #ff6464;
    color: var(--blanc);
}

/* --- Footer --- */
.site-footer {
    background: var(--noir);
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 20px;
    text-align: center;
    font-size: 0.85rem;
}

.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer__links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.site-footer__links a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s;
    letter-spacing: 1px;
}

.site-footer__links a:hover {
    color: var(--vert-sauge);
}

.site-footer__social {
    margin-bottom: 16px;
}

.site-footer__social a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.site-footer__social a:hover {
    color: var(--vert-sauge);
}

.site-footer__copy {
    line-height: 1.6;
}

.site-footer__copy a {
    color: var(--vert-sauge);
    transition: color 0.3s;
}

.site-footer__copy a:hover {
    color: var(--peche);
}

/* --- Pages légales --- */
.legal {
    padding: 60px 20px 80px;
    background: var(--blanc);
}

.legal__inner {
    max-width: 800px;
    margin: 0 auto;
}

.legal__inner h1 {
    font-family: var(--ff-titre);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--vert-sauge);
    margin-bottom: 40px;
    text-align: center;
}

.legal__inner h2 {
    font-family: var(--ff-h2);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--noir);
    margin-top: 36px;
    margin-bottom: 14px;
}

.legal__inner p,
.legal__inner li {
    font-size: 0.95rem;
    color: var(--gris);
    line-height: 1.8;
    margin-bottom: 10px;
}

.legal__inner ul {
    padding-left: 24px;
    list-style: disc;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .top-bar__inner {
        justify-content: center;
        text-align: center;
        gap: 4px;
    }

    .burger {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--blanc);
        z-index: 150;
        transition: right 0.35s ease;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    }

    .site-nav.is-open {
        right: 0;
    }

    .site-nav__list {
        flex-direction: column;
        gap: 0;
        padding: 80px 30px 30px;
    }

    .site-nav__list a {
        padding: 16px 0;
        font-size: 1rem;
        border-bottom: 1px solid #eee;
    }

    .site-nav__list a::after {
        display: none;
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 140;
    }

    .mobile-overlay.is-visible {
        display: block;
    }

    .hero__title {
        font-size: 2.4rem;
        letter-spacing: 4px;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__marches ul {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

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

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

    .marches__item {
        min-width: 130px;
        padding: 14px 20px;
    }

    .hero__bg,
    .marches__bg,
    .contact__bg {
        background-attachment: scroll;
    }

    .section {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }

    .section__title {
        font-size: 1.6rem;
    }

    .marches__list {
        gap: 10px;
    }

    .marches__item {
        min-width: 110px;
        padding: 12px 16px;
    }
}
