/* La Gourmandine : jaune des vitrines, ardoise des étagères, vert de la crème de pomme */

@font-face { font-family: 'Zilla Slab'; src: url('fonts/zilla-slab-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Zilla Slab'; src: url('fonts/zilla-slab-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Zilla Slab'; src: url('fonts/zilla-slab-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('fonts/hanken-grotesk-latin-300-normal.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('fonts/hanken-grotesk-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('fonts/hanken-grotesk-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
    --jaune: #F0B92A;
    --jaune-fonce: #D9A21A;
    --ardoise: #272D33;
    --ardoise-claire: #3A424A;
    --pomme: #A8C43F;
    --texte-sur-jaune: #2F2A1A;
    --espace: clamp(3.5rem, 9vw, 7rem);
    --marge: clamp(1.25rem, 5vw, 4rem);
    --sortie: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--ardoise) var(--jaune); }
body { font-family: 'Hanken Grotesk', system-ui, sans-serif; font-weight: 400; font-size: 1.125rem; line-height: 1.6; color: var(--texte-sur-jaune); background: var(--jaune); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.25em; }
::selection { background: var(--ardoise); color: var(--jaune); }
:focus-visible { outline: 3px solid var(--ardoise); outline-offset: 3px; border-radius: 2px; }
.degustations :focus-visible, .lenclos :focus-visible, .pied :focus-visible { outline-color: var(--jaune); }

h1, h2, h3 { font-family: 'Zilla Slab', Georgia, serif; line-height: 1.05; text-wrap: balance; }
h2 { font-weight: 700; font-size: clamp(2.2rem, 5.6vw, 4.2rem); letter-spacing: -0.01em; }
p { max-width: 62ch; text-wrap: pretty; }

/* En-tête */
.entete { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem var(--marge); font-weight: 600; font-size: 0.95rem; }
.entete a { text-decoration: none; }
.entete-lieu { letter-spacing: 0.04em; }
.entete-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.2rem); }
.entete-nav a:not(.entete-venir):hover { text-decoration: underline; }
.entete-venir { background: var(--ardoise); color: var(--jaune); padding: 0.55rem 1rem; border-radius: 2px; }
.entete-venir:hover { background: var(--ardoise-claire); }
@media (max-width: 1100px) {
    .entete-nav a:nth-child(3), .entete-nav a:nth-child(4) { display: none; }
}
@media (max-width: 720px) {
    .entete-nav a:not(.entete-venir) { display: none; }
}
@media (min-width: 900px) {
    /* le menu pose sa propre tablette jaune pour rester lisible sur la photo */
    .entete { padding: 0 0 0 var(--marge); align-items: stretch; }
    .entete-lieu { align-self: center; }
    .entete-nav { background: var(--jaune); padding: 1rem var(--marge) 1rem 2rem; }
}

/* Accueil */
.accueil { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; }
.accueil-texte { padding: 7rem var(--marge) 2.5rem; align-self: center; }
.accueil h1 { font-weight: 700; font-size: clamp(3rem, 10vw, 6rem); letter-spacing: -0.02em; max-width: 9ch; }
.accueil-slogan { margin-top: 1.6rem; font-family: 'Zilla Slab', Georgia, serif; font-weight: 600; font-size: clamp(1.5rem, 3.6vw, 2.5rem); line-height: 1.15; letter-spacing: -0.005em; }
.accueil-accroche { margin-top: 1.2rem; font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 400; line-height: 1.5; max-width: 40ch; }
.accueil-etiquette { position: absolute; z-index: 2; left: clamp(1rem, 3vw, 2rem); bottom: clamp(1.2rem, 3vw, 2.2rem); background: var(--ardoise); color: var(--jaune); font-family: 'Zilla Slab', Georgia, serif; font-weight: 700; font-size: clamp(1rem, 1.8vw, 1.35rem); padding: 0.7rem 1.1rem; transform: rotate(-4deg); transform-origin: left bottom; }
.accueil-actions { margin-top: 2rem; display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; }
.accueil-image { position: relative; margin: 0; min-height: 46svh; overflow: hidden; background: var(--jaune-fonce); }
.accueil-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; position: absolute; inset: 0; }
@media (min-width: 900px) {
    .accueil { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: stretch; }
    .accueil-texte { padding: 8rem var(--marge) 4rem; }
    .accueil h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); max-width: none; }
    .accueil-image { min-height: 100svh; }
}

.bouton { display: inline-block; background: var(--ardoise); color: var(--jaune); font-weight: 600; text-decoration: none; padding: 0.95rem 1.7rem; border-radius: 2px; transition: background 0.25s var(--sortie), transform 0.25s var(--sortie); }
.bouton:hover { background: var(--ardoise-claire); transform: translateY(-2px); }
.bouton-clair { background: var(--jaune); color: var(--ardoise); }
.bouton-clair:hover { background: #F6CB57; }
.lien { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; }
.lien:hover { text-decoration-color: var(--ardoise); }

/* Bandeau défilant */
.defile { background: var(--pomme); color: var(--ardoise); overflow: hidden; padding: 0.95rem 0; border-block: 2px solid var(--ardoise); }
.defile-piste { display: flex; width: max-content; }
.defile ul { display: flex; flex: none; list-style: none; }
.defile li { font-family: 'Zilla Slab', Georgia, serif; font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.6rem); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; display: flex; align-items: center; }
.defile li::after { content: ""; width: 0.55rem; height: 0.55rem; background: var(--ardoise); margin: 0 1.6rem; transform: rotate(45deg); }

/* Dégustations */
.degustations { background: var(--ardoise); color: #EDEAE0; padding: var(--espace) var(--marge); }
.degustations h2 { color: var(--jaune); max-width: 17ch; }
.degustations-tete p { margin-top: 1.4rem; font-weight: 300; font-size: 1.2rem; }
.degustations-listes { margin-top: clamp(2.5rem, 6vw, 4.5rem); display: grid; gap: 2.5rem clamp(2rem, 6vw, 6rem); }
@media (min-width: 800px) { .degustations-listes { grid-template-columns: 1.2fr 1fr; } }
.liste h3 { color: var(--pomme); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase; font-family: 'Hanken Grotesk', system-ui, sans-serif; padding-bottom: 0.9rem; border-bottom: 2px solid var(--pomme); }
.liste ul { list-style: none; }
.liste li { font-family: 'Zilla Slab', Georgia, serif; font-weight: 500; font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.2; padding: 0.85rem 0; border-bottom: 1px solid rgba(237, 234, 224, 0.2); transition: padding-left 0.35s var(--sortie), color 0.35s var(--sortie); }
.liste li:hover { padding-left: 1rem; color: var(--jaune); }

.frais { margin-top: clamp(3rem, 7vw, 5.5rem); display: grid; gap: 1.8rem 3rem; align-items: center; }
@media (min-width: 800px) { .frais { grid-template-columns: 1.15fr 1fr; } }
.frais figure { margin: 0; }
.frais img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.frais h3 { color: var(--jaune); font-weight: 700; font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.frais-texte p { margin-top: 0.8rem; font-weight: 300; font-size: 1.2rem; }

/* La boutique */
.boutique { padding: var(--espace) var(--marge); }
.boutique h2 { max-width: 14ch; }
.boutique-tete p { margin-top: 1.4rem; font-size: 1.2rem; }
.mosaique { margin-top: clamp(2.5rem, 6vw, 4.5rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.8rem); }
.mosaique figure, .souvenirs-photos figure { position: relative; margin: 0; overflow: hidden; }
.mosaique img, .souvenirs-photos img { width: 100%; object-fit: cover; transition: transform 0.9s var(--sortie); }
.mosaique figure:hover img, .souvenirs-photos figure:hover img { transform: scale(1.04); }
.mosaique figcaption, .souvenirs-photos figcaption { position: absolute; left: 0.9rem; bottom: 0.9rem; background: var(--jaune); color: var(--ardoise); font-family: 'Zilla Slab', Georgia, serif; font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.2; padding: 0.4rem 0.8rem; transform: rotate(-1.5deg); transform-origin: left bottom; }
.mosaique figure:nth-child(even) figcaption, .souvenirs-photos figure:nth-child(even) figcaption { transform: rotate(1.2deg); }
.m-cidres, .m-bieres, .m-terrines, .m-vins { grid-column: span 12; }
.mosaique img { aspect-ratio: 3 / 2; }
.m-bieres img, .m-terrines img { aspect-ratio: 4 / 5; }
@media (min-width: 800px) {
    .m-cidres { grid-column: span 7; } .m-bieres { grid-column: span 5; }
    .m-terrines { grid-column: span 5; } .m-vins { grid-column: span 7; }
    .m-cidres img, .m-vins img { aspect-ratio: 9 / 8; }
}

/* Souvenirs */
.souvenirs { background: var(--ardoise); color: #EDEAE0; padding: var(--espace) var(--marge); }
.souvenirs h2 { color: var(--jaune); max-width: 12ch; }
.souvenirs-tete p { margin-top: 1.4rem; font-weight: 300; font-size: 1.2rem; }
.souvenirs-photos { margin-top: clamp(2.5rem, 6vw, 4.5rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.8rem); }
.s-boites, .s-honfleur { grid-column: span 12; }
.s-boites img { aspect-ratio: 3 / 2; }
.s-honfleur img { aspect-ratio: 4 / 5; object-position: 100% 50%; }
@media (min-width: 800px) {
    .s-boites { grid-column: span 7; } .s-honfleur { grid-column: span 5; }
    .s-boites img { aspect-ratio: 9 / 8; }
}

/* Caramels et sablés */
.douceurs { padding: var(--espace) var(--marge); display: grid; gap: 2.5rem clamp(2rem, 6vw, 5rem); align-items: center; }
@media (min-width: 800px) { .douceurs { grid-template-columns: 5fr 6fr; } }
.douceurs-photo { position: relative; margin: 0; overflow: hidden; }
.douceurs-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.9s var(--sortie); }
.douceurs-photo:hover img { transform: scale(1.04); }
.douceurs-photo figcaption { position: absolute; left: 0.9rem; bottom: 0.9rem; background: var(--jaune); color: var(--ardoise); font-family: 'Zilla Slab', Georgia, serif; font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.2; padding: 0.4rem 0.8rem; transform: rotate(-1.5deg); transform-origin: left bottom; }
.douceurs h2 { max-width: 14ch; }
.douceurs-texte p { margin-top: 1.3rem; font-size: 1.2rem; }
.douceurs-texte .bouton { margin-top: 2rem; }

/* L'Enclos */
/* Le bistrot garde ses couleurs : taupe et vert sauge, comme sur son propre site */
.lenclos { background: #5D534E; color: #EFE9DE; padding: var(--espace) var(--marge); }
.lenclos-contenu { max-width: 46rem; }
.lenclos h2 { color: #F7F3EC; }
.lenclos p { margin: 1.4rem 0 2rem; font-weight: 300; font-size: 1.2rem; }
.lenclos .bouton-clair { background: #587770; color: #fff; }
.lenclos .bouton-clair:hover { background: #4a6760; }
.lenclos :focus-visible { outline-color: #F7F3EC; }

/* Nous trouver */
.venir { padding: var(--espace) var(--marge); }
.venir address { margin: 1.6rem 0 2rem; font-style: normal; font-family: 'Zilla Slab', Georgia, serif; font-weight: 500; font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.3; }

.venir-horaires { margin: -0.8rem 0 2rem; font-weight: 600; }

/* Pages simples : mentions légales, page introuvable */
.page-simple { min-height: 100vh; display: flex; flex-direction: column; }
.entete-simple { position: static; }
.legal { flex: 1; width: 100%; max-width: 46rem; margin: 0 auto; padding: clamp(2.5rem, 7vw, 5rem) var(--marge); }
.legal h1 { font-family: 'Zilla Slab', Georgia, serif; font-weight: 700; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.05; margin-bottom: 2rem; }
.legal section { margin-top: 2.2rem; }
.legal h2 { font-size: 1.5rem; margin-bottom: 0.7rem; }
.legal p { margin-top: 0.7rem; font-size: 1.05rem; }
.legal a { font-weight: 600; }
.erreur { text-align: left; }
.erreur .bouton { margin-top: 1.8rem; }
.pied a { color: inherit; }

.pied { background: var(--ardoise); color: #CFCBBE; padding: 1.6rem var(--marge); font-size: 0.9rem; border-top: 1px solid rgba(237, 234, 224, 0.18); }

/* Mouvement : une entrée à l'ouverture, une apparition douce au défilement */
@media (prefers-reduced-motion: no-preference) {
    .accueil-image img { animation: ouverture 1.4s var(--sortie) both; }
    .accueil-texte > * { animation: monter 0.9s var(--sortie) both; }
    .accueil-texte > *:nth-child(2) { animation-delay: 0.12s; }
    .accueil-texte > *:nth-child(3) { animation-delay: 0.24s; }
    .accueil-texte > *:nth-child(4) { animation-delay: 0.36s; }
    .accueil-etiquette { animation: tampon 0.7s var(--sortie) 1.1s both; }
    .defile-piste { animation: defile 42s linear infinite; }
    .defile:hover .defile-piste { animation-play-state: paused; }
    .js .rev { opacity: 0; transform: translateY(1.4rem); transition: opacity 0.8s var(--sortie), transform 0.8s var(--sortie); }
    .js .rev.vu { opacity: 1; transform: none; }
}
@keyframes ouverture { from { clip-path: inset(0 0 0 100%); transform: scale(1.06); } to { clip-path: inset(0); transform: none; } }
@keyframes monter { from { opacity: 0; transform: translateY(1.2rem); } to { opacity: 1; transform: none; } }
@keyframes tampon { from { opacity: 0; transform: rotate(-12deg) scale(1.6); } to { opacity: 1; transform: rotate(-4deg) scale(1); } }
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .defile-piste { width: auto; flex-wrap: wrap; }
    .defile ul + ul { display: none; }
    .defile ul { flex-wrap: wrap; padding: 0 var(--marge); }
}
