/* ═══════════════════════════════════════════════════════
   style.css — guillemot.boutique
   Design premium · Artisan Traiteur Beaujolais
   ═══════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
    --bordeaux:   #8B1A2E;
    --bordeaux-d: #6B1222;
    --brun:       #2C1810;
    --gold:       #C9A84C;
    --creme:      #F5F0E8;
    --creme-d:    #EDE5D8;
    --text:       #1A1A1A;
    --text-light: #555;
    --white:      #FFFFFF;
    --radius:     4px;
    --shadow:     0 4px 24px rgba(0,0,0,.10);
    --shadow-lg:  0 8px 40px rgba(0,0,0,.16);
    --transition: .3s ease;
    --ff-title:   'Playfair Display', Georgia, serif;
    --ff-body:    'Lato', Arial, sans-serif;
    --max-w:      1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--ff-body); color: var(--text); background: var(--white); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--ff-title); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p  { margin-bottom: 1rem; }

/* ── Container ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section--creme { background: var(--creme); }
.section--dark  { background: var(--brun); color: var(--white); }

/* ── Navbar ── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139,26,46,.12);
    transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.10); }
.nav-container {
    max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
    display: flex; align-items: center; height: 72px; gap: 2rem;
}
.nav-logo img { height: 42px; width: auto; }
.nav-links {
    display: flex; align-items: center; gap: 0; flex: 1;
    justify-content: center; flex-wrap: nowrap;
}
.nav-links > li > a {
    padding: .5rem .6rem; border-radius: var(--radius);
    font-size: .78rem; font-weight: 700; letter-spacing: .02em;
    text-transform: uppercase; color: var(--brun); white-space: nowrap;
    transition: color var(--transition), background var(--transition);
}
.nav-links > li > a:hover,
.nav-links > li.active > a { color: var(--bordeaux); background: var(--creme); }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: calc(100% + 6px); left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: var(--white); border-radius: 8px;
    box-shadow: var(--shadow-lg); min-width: 210px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    padding: .5rem 0;
    border-top: 3px solid var(--bordeaux);
}
.nav-dropdown.open .dropdown-menu {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.dropdown-menu li a {
    display: block; padding: .65rem 1.2rem;
    font-size: .88rem; font-weight: 400; color: var(--text);
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
.dropdown-menu li a:hover { background: var(--creme); color: var(--bordeaux); }

/* Nav CTA */
.nav-cta {
    background: var(--bordeaux); color: var(--white) !important;
    padding: .5rem .9rem !important; border-radius: 4px !important;
    font-size: .75rem !important; font-weight: 700 !important;
    transition: background var(--transition) !important;
    white-space: nowrap;
}
.nav-cta:hover { background: var(--bordeaux-d) !important; }

/* Mobile toggle */
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: .5rem;
    margin-left: auto;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--brun); border-radius: 2px;
    transition: var(--transition);
}

/* ── Hero Section ── */
.hero {
    min-height: 100vh; position: relative; display: flex;
    align-items: center; justify-content: center;
    overflow: hidden; background: var(--brun);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(44,24,16,.75) 0%, rgba(139,26,46,.45) 100%);
}
.hero-content {
    position: relative; z-index: 2; text-align: center;
    color: var(--white); padding: 2rem 1.5rem;
    max-width: 800px;
}
.hero-tag {
    display: inline-block; margin-bottom: 1.2rem;
    font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--gold); border: 1px solid rgba(201,168,76,.5);
    padding: .35rem 1rem; border-radius: 20px;
}
.hero-content h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    margin-bottom: 1.2rem; font-style: italic;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem); opacity: .92;
    margin-bottom: 2rem; font-weight: 300;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-dots {
    position: absolute; bottom: 2rem; left: 50%;
    transform: translateX(-50%); display: flex; gap: .5rem; z-index: 2;
}
.hero-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.4); border: none; cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.hero-dot.active { background: var(--white); transform: scale(1.3); }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .8rem 2rem; border-radius: var(--radius);
    font-family: var(--ff-body); font-size: .9rem; font-weight: 700;
    letter-spacing: .04em; cursor: pointer; border: 2px solid transparent;
    transition: all var(--transition); text-decoration: none;
}
.btn-primary { background: var(--bordeaux); color: var(--white); border-color: var(--bordeaux); }
.btn-primary:hover { background: var(--bordeaux-d); border-color: var(--bordeaux-d); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(139,26,46,.35); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: var(--white); }
.btn-gold { background: var(--gold); color: var(--brun); border-color: var(--gold); }
.btn-gold:hover { background: #B8962E; transform: translateY(-1px); }
.btn-sm { padding: .55rem 1.2rem; font-size: .82rem; }

/* ── Section titles ── */
.section-title {
    text-align: center; margin-bottom: 3.5rem;
}
.section-title .label {
    display: block; font-size: .75rem; letter-spacing: .2em;
    text-transform: uppercase; color: var(--bordeaux);
    margin-bottom: .6rem; font-weight: 700;
}
.section-title h2 { color: var(--brun); }
.section-title.light h2 { color: var(--white); }
.section-title.light .label { color: var(--gold); }
.section-title p {
    max-width: 600px; margin: 1rem auto 0;
    color: var(--text-light); font-size: 1.05rem;
}

/* Ornament */
.ornament {
    display: flex; align-items: center; gap: 1rem;
    justify-content: center; margin: 1rem 0;
}
.ornament::before, .ornament::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(to right, transparent, var(--gold));
    max-width: 80px;
}
.ornament::after { background: linear-gradient(to left, transparent, var(--gold)); }
.ornament span { color: var(--gold); font-size: .8rem; }

/* ── Services Grid ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.service-card {
    position: relative; border-radius: 8px; overflow: hidden;
    aspect-ratio: 3/2; cursor: pointer; group: true;
}
.service-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s ease;
}
.service-card:hover img { transform: scale(1.05); }
.service-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(44,24,16,.85) 0%, rgba(44,24,16,.2) 60%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.5rem;
}
.service-card h3 { color: var(--white); font-size: 1.2rem; margin: 0; }
.service-card p { color: rgba(255,255,255,.85); font-size: .85rem; margin: .3rem 0 0; }

/* ── About Section ── */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center;
}
.about-img { position: relative; }
.about-img img {
    width: 100%; border-radius: 8px;
    box-shadow: var(--shadow-lg);
}
.about-badge {
    position: absolute; bottom: -1.5rem; right: -1.5rem;
    background: var(--bordeaux); color: var(--white);
    padding: 1.5rem; border-radius: 8px; text-align: center;
    font-family: var(--ff-title); box-shadow: var(--shadow);
}
.about-badge .year { font-size: 2rem; font-weight: 700; display: block; }
.about-badge .since { font-size: .8rem; letter-spacing: .1em; opacity: .9; }
.about-text .label {
    font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
    color: var(--bordeaux); font-weight: 700; margin-bottom: .8rem; display: block;
}
.about-text h2 { color: var(--brun); margin-bottom: 1.2rem; }
.about-text p { color: var(--text-light); }
.about-text .distinctions {
    display: flex; gap: 1.5rem; margin-top: 2rem; flex-wrap: wrap;
}
.distinction {
    display: flex; align-items: center; gap: .6rem;
    background: var(--creme); padding: .8rem 1.2rem; border-radius: 6px;
    font-size: .88rem; font-weight: 700; color: var(--brun);
}
.distinction svg { color: var(--gold); flex-shrink: 0; }

/* ── Prestations ── */
.presta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.presta-card {
    background: var(--white); border-radius: 8px; overflow: hidden;
    box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid rgba(0,0,0,.06);
}
.presta-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.presta-card-img { aspect-ratio: 4/3; overflow: hidden; }
.presta-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.presta-card:hover .presta-card-img img { transform: scale(1.04); }
.presta-card-body { padding: 1.4rem; }
.presta-card-body h3 { font-size: 1.1rem; margin-bottom: .4rem; color: var(--brun); }
.presta-card-body p { font-size: .88rem; color: var(--text-light); margin: 0; }
.presta-prix {
    margin-top: .8rem; display: flex; align-items: baseline; gap: .3rem;
    color: var(--bordeaux); font-family: var(--ff-title); font-size: 1.4rem; font-weight: 700;
}
.presta-prix small { font-size: .8rem; font-family: var(--ff-body); color: var(--text-light); font-weight: 400; }

/* ── Événements ── */
.event-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.event-card {
    border-radius: 8px; overflow: hidden; box-shadow: var(--shadow);
    transition: transform var(--transition);
}
.event-card:hover { transform: translateY(-4px); }
.event-card-img { aspect-ratio: 16/9; overflow: hidden; }
.event-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.event-card:hover .event-card-img img { transform: scale(1.04); }
.event-card-body { padding: 1.5rem; background: var(--white); }
.event-card-body h3 { font-size: 1.15rem; color: var(--brun); margin-bottom: .5rem; }
.event-card-body p { font-size: .88rem; color: var(--text-light); margin: 0; }

/* ── CTA Banner ── */
.cta-banner {
    background: linear-gradient(135deg, var(--bordeaux) 0%, var(--bordeaux-d) 100%);
    color: var(--white); text-align: center; padding: 5rem 1.5rem;
}
.cta-banner h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.cta-banner p { font-size: 1.1rem; opacity: .92; margin-bottom: 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Contacts / Map ── */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 3rem; align-items: start;
}
.boutique-cards { display: flex; flex-direction: column; gap: 1.5rem; }
.boutique-card {
    background: var(--white); border-radius: 8px; padding: 1.5rem;
    box-shadow: var(--shadow); border-left: 4px solid var(--bordeaux);
}
.boutique-card h3 { font-size: 1.1rem; color: var(--brun); margin-bottom: .8rem; }
.boutique-info { display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.boutique-info-row { display: flex; gap: .6rem; align-items: flex-start; color: var(--text-light); }
.boutique-info-row svg { color: var(--bordeaux); flex-shrink: 0; margin-top: 2px; }
.boutique-info-row a:hover { color: var(--bordeaux); }
.horaires-table { width: 100%; border-collapse: collapse; font-size: .85rem; margin-top: .5rem; }
.horaires-table td { padding: .3rem .4rem; }
.horaires-table td:first-child { font-weight: 700; color: var(--brun); width: 80px; }
.horaires-table tr:nth-child(even) td { background: var(--creme); }
.map-frame { border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 420px; border: none; display: block; }

/* ── Contact Form ── */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block; margin-bottom: .4rem;
    font-size: .88rem; font-weight: 700; color: var(--brun);
}
.form-control {
    width: 100%; padding: .75rem 1rem;
    border: 1.5px solid #DDD; border-radius: var(--radius);
    font-family: var(--ff-body); font-size: .95rem; color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--white);
}
.form-control:focus {
    outline: none; border-color: var(--bordeaux);
    box-shadow: 0 0 0 3px rgba(139,26,46,.1);
}
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; }

/* ── Footer ── */
.footer {
    background: var(--brun); color: rgba(255,255,255,.8);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem; margin-bottom: 3rem;
}
.footer-brand img { height: 52px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: .88rem; opacity: .8; }
.footer-col h4 {
    font-family: var(--ff-title); font-size: 1rem; color: var(--white);
    margin-bottom: 1rem; font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul li a {
    font-size: .88rem; opacity: .75; transition: opacity var(--transition);
}
.footer-col ul li a:hover { opacity: 1; color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: .8rem; font-size: .8rem; opacity: .7;
}
.footer-bottom a { opacity: 1; }
.footer-bottom a:hover { color: var(--gold); }

/* ── Admin ── */
.admin-wrap { max-width: 900px; margin: 6rem auto 3rem; padding: 0 1.5rem; }
.admin-card { background: var(--white); border-radius: 8px; box-shadow: var(--shadow); padding: 2rem; margin-bottom: 1.5rem; }
.admin-card h2 { font-size: 1.2rem; color: var(--brun); margin-bottom: 1.5rem; border-bottom: 1px solid var(--creme-d); padding-bottom: .8rem; }
.upload-zone {
    border: 2px dashed #CCC; border-radius: 6px; padding: 2.5rem;
    text-align: center; cursor: pointer; transition: border-color var(--transition);
}
.upload-zone:hover { border-color: var(--bordeaux); }
.upload-zone p { color: var(--text-light); font-size: .9rem; margin: 0; }

/* ── Prestation Page ── */
.presta-section { padding: 4rem 0; }
.presta-section:nth-child(even) { background: var(--creme); }
.presta-table { width: 100%; border-collapse: collapse; }
.presta-table th {
    background: var(--bordeaux); color: var(--white);
    padding: .85rem 1rem; text-align: left;
    font-size: .85rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.presta-table td { padding: .9rem 1rem; border-bottom: 1px solid var(--creme-d); font-size: .92rem; }
.presta-table tr:last-child td { border-bottom: none; }
.presta-table tr:nth-child(even) td { background: rgba(245,240,232,.5); }
.presta-table .price { font-weight: 700; color: var(--bordeaux); white-space: nowrap; }

.presta-pdf-block {
    margin-top: 2rem; background: var(--creme); border-radius: 8px;
    padding: 1.5rem 2rem; display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
}
.presta-pdf-block p { margin: 0; font-size: .95rem; color: var(--brun); }

/* ── Hero page (catégories) ── */
.page-hero {
    margin-top: 72px; height: 360px; position: relative; overflow: hidden;
    background: var(--brun);
}
.page-hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
}
.page-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(44,24,16,.85) 0%, rgba(44,24,16,.45) 100%);
    display: flex; align-items: center;
}
.page-hero-content { padding: 2rem 1.5rem; max-width: var(--max-w); margin: 0 auto; width: 100%; color: var(--white); }
.page-hero-content .label {
    display: block; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
    color: var(--gold); font-weight: 700; margin-bottom: .6rem;
}
.page-hero-content h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
.page-hero-content p { opacity: .88; font-size: 1.05rem; margin-top: .6rem; max-width: 600px; }

/* ── Galerie ── */
.galerie-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .75rem;
}
.galerie-item { aspect-ratio: 1; overflow: hidden; border-radius: 6px; cursor: pointer; }
.galerie-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.galerie-item:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.92); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 4px; }
.lightbox-close {
    position: absolute; top: 1.5rem; right: 1.5rem;
    background: none; border: none; color: white; font-size: 2rem; cursor: pointer;
}

/* ── Animations ── */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--creme); }
::-webkit-scrollbar-thumb { background: var(--bordeaux); border-radius: 3px; }

/* ── Responsive ── */
@media (max-width: 992px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-badge { bottom: -.5rem; right: .5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .map-frame iframe { height: 300px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 1rem 1.5rem; border-bottom: 1px solid var(--creme-d); box-shadow: var(--shadow); gap: 0; }
    .nav-links.open { display: flex; }
    .nav-links > li > a { padding: .75rem .5rem; display: block; border-radius: 0; border-bottom: 1px solid var(--creme-d); }
    .dropdown-menu { position: static; box-shadow: none; border: none; border-top: none; padding-left: 1rem; opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
    .nav-toggle { display: flex; }
    .nav-cta { margin-top: .5rem; display: inline-flex; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 3rem 0; }
    .hero-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; }
    .presta-grid { grid-template-columns: 1fr; }
    .cta-actions { flex-direction: column; align-items: center; }
}
