@font-face {
    font-family: 'Dancing Script';
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/dancing-script-600.woff2') format('woff2');
}

:root {
    --bleu: #3a8682; /* turquoise du logo des étiquettes */
    --bleu-texte: #31716e; /* même teinte, plus foncée : lisible en petit texte */
    --jaune: #f6dc74;
    --jaune-bouton: #f5d04a; /* onglets et boutons : plus soutenu que les rayures */
    --jaune-bouton-survol: #ecc12a;
    --brun: #8a6a48;
    --orange: #e8772e;
    --encre: #1d1d1f;
    --doux: #6e6e73;
    --fond-vide: #f4efe6;
    --rayon: 14px;
    --largeur: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: #fff;
    color: var(--encre);
    font: 17px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.01em; }

/* ---------- Entête ---------- */

.entete {
    position: relative;
    padding: 72px 16px 40px;
    text-align: center;
    overflow: hidden;
}

/* Rayures jaunes / blanches, fondu vers le blanc de la page */
.entete::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: repeating-linear-gradient(90deg, var(--jaune) 0 56px, #fff 56px 112px);
    mask-image: linear-gradient(#000 30%, transparent 95%);
    -webkit-mask-image: linear-gradient(#000 30%, transparent 95%);
}

.branche {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: auto;
    max-width: 22vw;
    pointer-events: none;
}

.branche .tige { fill: none; stroke: var(--bleu); stroke-width: 3.5; stroke-linecap: round; }
.branche .feuilles { fill: var(--bleu); }

.logo {
    display: inline-block;
    font-family: 'Dancing Script', cursive;
    font-weight: 600;
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 1;
    color: var(--bleu);
    text-decoration: none;
}

.coeur {
    display: block;
    width: 28px;
    height: 28px;
    margin: 14px auto 40px;
    fill: none;
    stroke: var(--bleu);
    stroke-width: 2.2;
}

.onglets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.onglets a {
    padding: 10px 22px;
    border-radius: 10px;
    background: var(--jaune-bouton);
    color: #000;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .15s;
}

.onglets a:hover { background: var(--jaune-bouton-survol); }

/* ---------- Contenu ---------- */

main {
    max-width: var(--largeur);
    margin: 0 auto;
    padding: 0 16px 80px;
}

.section {
    padding: 56px 0;
    scroll-margin-top: 16px;
}

.section > h1,
.section > h2 {
    margin: 0 0 48px;
    text-align: center;
    color: var(--bleu);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 600;
}

.vide {
    aspect-ratio: 4 / 3;
    border-radius: var(--rayon);
    background: var(--fond-vide);
}

.texte > :first-child { margin-top: 0; }
.texte h2 { color: var(--bleu); font-size: 1.4rem; margin: 2em 0 .5em; }
.texte a { color: var(--bleu-texte); }

.bouton {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 999px;
    background: var(--jaune-bouton);
    color: #000;
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .15s;
}

.bouton:hover { background: var(--jaune-bouton-survol); }

/* Notre histoire */

.histoire {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 56px;
    align-items: start;
}

.histoire:not(:has(.histoire-photos)) { grid-template-columns: minmax(0, 680px); justify-content: center; }

.histoire-photos { display: grid; gap: 16px; }
.histoire-photos img { width: 100%; border-radius: var(--rayon); }

/* Nos produits */

.intro { max-width: 620px; margin: -24px auto 48px; text-align: center; color: var(--doux); }

.produits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 32px;
}

.produit { color: var(--brun); }
.produit img, .produit .vide { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); }
.produit h3 { margin: 16px 0 4px; font-size: 1.1rem; font-weight: 600; }
.produit p { margin: 0 0 14px; font-size: .95rem; }

/* Texte, image */

.texte-seul { max-width: 680px; margin: 0 auto; }
.texte-seul > h1, .texte-seul > h2 { text-align: left; margin-bottom: 24px; }
.image-seule img, .image-seule .vide { width: 100%; border-radius: var(--rayon); }

/* Où nous trouver */

.carte {
    height: 380px;
    margin-bottom: 64px;
    border-radius: var(--rayon);
    background: var(--fond-vide);
    z-index: 0;
}

.trouver {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 56px;
    align-items: start;
}

.trouver h3 { margin: 0 0 24px; font-size: 1.3rem; font-weight: 600; }
.trouver ul + h3 { margin-top: 56px; }

.evenements {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 28px;
}

.evenement img, .evenement .vide { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--rayon); }
.evenement h4 { margin: 14px 0 2px; font-size: 1.05rem; font-weight: 600; }
.evenement time, .evenement .lieu { display: block; color: var(--brun); font-size: .95rem; }
.evenement p { margin: 8px 0 0; color: var(--doux); font-size: .95rem; }

.contact {
    display: grid;
    gap: 8px;
    padding: 28px;
    border-radius: var(--rayon);
    background: var(--fond-vide);
}

.contact a { color: var(--bleu-texte); text-decoration: none; overflow-wrap: anywhere; }
.contact a:hover { text-decoration: underline; }

/* Galerie */

.galerie {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.galerie img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; transition: opacity .15s; }
.galerie a:hover img { opacity: .9; }

/* ---------- Pied de page ---------- */

.pied {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    padding: 32px 16px 48px;
    font-size: .875rem;
    color: var(--doux);
}

.pied a, .pied button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}

.pied a:hover, .pied button:hover { color: var(--bleu-texte); text-decoration: underline; }

/* ---------- Bandeau cookies (CookieConsent) aux couleurs du site ---------- */

#cc-main {
    --cc-font-family: inherit;
    --cc-modal-border-radius: var(--rayon);
    --cc-btn-border-radius: 999px;
    --cc-primary-color: var(--encre);
    --cc-secondary-color: var(--doux);
    --cc-btn-primary-bg: var(--jaune-bouton);
    --cc-btn-primary-color: #000;
    --cc-btn-primary-border-color: var(--jaune-bouton);
    --cc-btn-primary-hover-bg: var(--jaune-bouton-survol);
    --cc-btn-primary-hover-color: #000;
    --cc-btn-primary-hover-border-color: var(--jaune-bouton-survol);
    --cc-btn-secondary-bg: var(--jaune-bouton);
    --cc-btn-secondary-color: #000;
    --cc-btn-secondary-border-color: var(--jaune-bouton);
    --cc-btn-secondary-hover-bg: var(--jaune-bouton-survol);
    --cc-btn-secondary-hover-color: #000;
    --cc-btn-secondary-hover-border-color: var(--jaune-bouton-survol);
    --cc-toggle-on-bg: var(--bleu-texte);
    --cc-link-color: var(--bleu-texte);
}

#cc-main a { color: var(--bleu-texte); }

/* ---------- Mobile ---------- */

@media (max-width: 800px) {
    .entete { padding-top: 56px; }
    .branche { max-width: 15vw; }
    .section { padding: 40px 0; }
    .section > h1, .section > h2 { margin-bottom: 32px; }
    .histoire, .trouver { grid-template-columns: 1fr; gap: 32px; }
    /* Photos en bande horizontale de vignettes carrées : le texte arrive vite. */
    .histoire-photos {
        grid-auto-flow: column;
        grid-auto-columns: calc(50% - 6px);
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }
    .histoire-photos img { aspect-ratio: 1; object-fit: cover; scroll-snap-align: start; }
    .produits { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; }
    .galerie { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .carte { height: 300px; margin-bottom: 48px; }
}

@media (max-width: 480px) {
    .onglets { gap: 8px; }
    .onglets a { padding: 8px 14px; font-size: .95rem; }
    .produits, .evenements { grid-template-columns: 1fr; }
    .galerie { grid-template-columns: repeat(2, 1fr); }
}
