/* ===========================================================
   La Ruche d'à Côté — Feuille de style
   Miel artisanal de la vallée d'Azergues (Beaujolais, Rhône)
   =========================================================== */

:root {
    /* Palette miel */
    --gold: #E3A02C;
    --gold-deep: #C57B17;
    --gold-soft: #F4D9A6;
    --amber: #8A5A1E;
    --cream: #FBF5E9;
    --cream-2: #F4E7CF;
    --brown: #2B1C10;
    --text: #4A3a2A;
    --muted: #7A6A58;
    --white: #ffffff;

    /* Liseré tricolore (rappel du drapeau de l'étiquette) */
    --bleu-fr: #0055A4;
    --rouge-fr: #EF4135;
    --liseret-fr: linear-gradient(
        90deg,
        var(--bleu-fr) 0 33.333%,
        #ffffff 33.333% 66.666%,
        var(--rouge-fr) 66.666% 100%
    );

    --shadow-sm: 0 6px 18px rgba(43, 28, 16, 0.08);
    --shadow-md: 0 18px 40px rgba(43, 28, 16, 0.12);
    --shadow-lg: 0 30px 60px rgba(43, 28, 16, 0.18);

    --radius: 18px;
    --radius-lg: 28px;
    --max: 1180px;
    --nav-h: 72px;

    --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-title: 'Playfair Display', Georgia, serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
}

h1, h2, h3, h4 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.2;
    color: var(--brown);
}

a {
    color: inherit;
}

/* ---------- Accessibilité ---------- */
.skip-link {
    position: absolute;
    left: 8px;
    top: -60px;
    z-index: 2000;
    background: var(--brown);
    color: var(--white);
    padding: 0.7rem 1.1rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 8px;
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.form-required-note {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
}

/* ---------- Utilitaires ---------- */
.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 5.5rem 0;
}

.section-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 3.5rem;
}

.section-header .eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 0.85rem;
}

.section-header h2 {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    margin-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 64px;
    height: 3px;
    border-radius: 3px;
    margin: 1.1rem auto 0;
    background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}

.section-header p {
    color: var(--muted);
    font-size: 1.02rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.95rem 2rem;
    border: none;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-primary {
    background: linear-gradient(120deg, var(--gold-deep), var(--gold));
    color: var(--white);
    box-shadow: 0 12px 26px rgba(197, 123, 23, 0.32);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(197, 123, 23, 0.42);
}

.btn-ghost {
    background: var(--cream);
    color: var(--brown);
    border: 1.5px solid rgba(43, 28, 16, 0.25);
}

.btn-ghost:hover {
    background: var(--brown);
    color: var(--white);
    transform: translateY(-3px);
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-h);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: rgba(251, 245, 233, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(43, 28, 16, 0.08);
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: var(--shadow-sm);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brown);
}

.brand img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    font-weight: 500;
    color: var(--text);
    transition: color 0.25s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.25s ease;
}

.nav-links a:hover {
    color: var(--gold-deep);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.menu-toggle span {
    width: 26px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--brown);
    transition: 0.3s ease;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-h) + 3rem) 5% 4rem;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/rucher.jpg') center/cover no-repeat;
    transform: scale(1.05);
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(43, 28, 16, 0.55) 0%, rgba(43, 28, 16, 0.35) 40%, rgba(43, 28, 16, 0.7) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 780px;
    animation: fadeUp 1s ease both;
}

.hero .eyebrow {
    display: inline-block;
    padding: 0.5rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.6rem;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.6rem, 7vw, 4.6rem);
    line-height: 1.05;
    margin-bottom: 1.2rem;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hero h1 .accent {
    color: var(--gold-soft);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 560px;
    margin: 0 auto 2.4rem;
    color: rgba(255, 255, 255, 0.92);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-hint {
    position: absolute;
    bottom: 1.6rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.4rem;
    animation: bob 2s ease-in-out infinite;
}

/* ---------- Histoire ---------- */
.story {
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 3.5rem;
    align-items: center;
}

.story-media {
    position: relative;
}

.story-media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.story-media .badge {
    position: absolute;
    bottom: -22px;
    right: -16px;
    background: var(--white);
    padding: 1rem 1.4rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    line-height: 1.2;
}

.story-media .badge strong {
    display: block;
    font-family: var(--font-title);
    font-size: 1.6rem;
    color: var(--gold-deep);
}

.story-media .badge span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.story-content h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1.2rem;
}

.story-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1.2rem;
}

.story-content p {
    color: var(--text);
    margin-bottom: 1.1rem;
}

.values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
    margin-top: 1.8rem;
}

.value {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    background: var(--white);
    border: 1px solid rgba(43, 28, 16, 0.08);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    font-size: 0.88rem;
}

.value .ico {
    font-size: 1.35rem;
}

/* ---------- Produit ---------- */
.product-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid rgba(43, 28, 16, 0.08);
    border-radius: var(--radius-lg);
    padding: 2.6rem;
    box-shadow: var(--shadow-md);
}

.product-image {
    background: linear-gradient(135deg, var(--gold-soft), var(--cream-2));
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    max-width: 280px;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(43, 28, 16, 0.25));
}

.product-details h3 {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
}

.product-details .subtitle {
    color: var(--gold-deep);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.product-details p.desc {
    color: var(--text);
    margin-bottom: 1.6rem;
}

.product-meta {
    display: flex;
    gap: 1.8rem;
    margin-bottom: 1.6rem;
    flex-wrap: wrap;
}

.product-meta .item {
    text-align: center;
}

.product-meta .item b {
    display: block;
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: var(--gold-deep);
}

.product-meta .item span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    font-weight: 600;
}

.price {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--gold-deep);
    margin-bottom: 1.5rem;
}

.price small {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
}

/* ---------- Galerie ---------- */
.gallery {
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-sm);
}

.gallery-item.tall {
    grid-row: span 2;
    aspect-ratio: 4 / 5;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.4rem 1.2rem 1.1rem;
    color: var(--white);
    background: linear-gradient(to top, rgba(43, 28, 16, 0.8), transparent);
    transform: translateY(8px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover figcaption {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item figcaption h4 {
    color: var(--white);
    font-size: 1.05rem;
}

.gallery-item figcaption p {
    font-size: 0.82rem;
    opacity: 0.9;
}

/* ---------- Commander ---------- */
.order {
    background: linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%);
}

.order-wrap {
    max-width: 720px;
    margin: 0 auto;
}

.order-form {
    background: var(--white);
    border: 1px solid rgba(43, 28, 16, 0.08);
    border-radius: var(--radius-lg);
    padding: 2.6rem;
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.3rem;
}

/* Champ piège anti-spam (honeypot) — masqué aux humains */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-group {
    margin-bottom: 1.3rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(43, 28, 16, 0.18);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--cream);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(227, 160, 44, 0.15);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.qty {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qty button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(43, 28, 16, 0.2);
    background: var(--white);
    color: var(--gold-deep);
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.qty button:hover {
    background: var(--gold);
    color: var(--white);
}

.qty input {
    width: 72px;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    background: var(--white);
}

.summary {
    background: var(--cream);
    border: 1px solid rgba(43, 28, 16, 0.08);
    border-radius: 14px;
    padding: 1.3rem 1.5rem;
    margin: 0.5rem 0 1.5rem;
}

.summary .row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.95rem;
}

.summary .row.total {
    border-top: 2px solid rgba(227, 160, 44, 0.5);
    margin-top: 0.4rem;
    padding-top: 0.9rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--brown);
}

.submit-btn {
    width: 100%;
    padding: 1.15rem;
    font-size: 1rem;
}

.form-note {
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
    margin-top: 1.2rem;
}

.success {
    display: none;
    text-align: center;
    background: var(--white);
    border: 1px solid rgba(43, 28, 16, 0.08);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-md);
    animation: fadeUp 0.5s ease both;
}

.success.show {
    display: block;
}

.success h3 {
    margin-bottom: 0.8rem;
}

/* ---------- Contact ---------- */
.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.6rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    text-align: center;
    padding: 2.2rem 1.5rem;
    border: 1px solid rgba(43, 28, 16, 0.08);
    border-radius: var(--radius);
    background: var(--cream);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.contact-card .ico {
    font-size: 2.4rem;
    margin-bottom: 0.8rem;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.contact-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

.contact-card a {
    color: var(--gold-deep);
    font-weight: 600;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--brown);
    color: rgba(255, 255, 255, 0.82);
    padding: 3.5rem 0 1.8rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer h4 {
    color: var(--gold-soft);
    margin-bottom: 1.1rem;
    font-size: 1rem;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.85;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.6rem;
}

.footer ul a {
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.25s ease, color 0.25s ease;
}

.footer ul a:hover {
    opacity: 1;
    color: var(--gold-soft);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.footer-brand img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-brand span {
    font-family: var(--font-title);
    font-size: 1.15rem;
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ---------- Liseré tricolore (discret) ---------- */
/* Fin trait bleu-blanc-rouge juste sous le header (barre de menu) */
.nav::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: var(--liseret-fr);
    z-index: 1;
    pointer-events: none;
}

/* Rappel en bordure haute du pied de page */
.footer {
    border-top: 3px solid transparent;
    border-image: var(--liseret-fr) 1;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .story-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .story-media .badge { right: 16px; }
    .product-card { grid-template-columns: 1fr; text-align: center; }
    .product-image { max-width: 320px; margin: 0 auto; }
    .product-meta { justify-content: center; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.tall { grid-row: span 1; aspect-ratio: 4 / 3; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 1.3rem;
        padding: 1.8rem 5%;
        background: var(--cream);
        box-shadow: var(--shadow-md);
        transform: translateY(-130%);
        transition: transform 0.3s ease;
    }
    .nav-links.open { transform: translateY(0); }
    .menu-toggle { display: flex; }
    .form-row { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; }
}
