/* =============================================================================
   Little-Potes - Styles (mobile-first : la page est surtout lue sur telephone
   apres scan du QR code du pot)
   ============================================================================= */
:root {
    --bg: #fbf8f2;
    --paper: #fffdf9;
    --ink: #2b2620;
    --muted: #6f645a;
    --chestnut: #6e3f23;
    --accent: #b5451b;
    --line: #e6dccd;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

/* Noms composes jamais coupes en fin de ligne (Trás-os-Montes, Little-Potes) */
.nb { white-space: nowrap; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.55;
}

.wrap {
    max-width: 40rem;
    margin: 0 auto;
    padding: 0 1.1rem 2.5rem;
}

/* ---- Selecteur de langue ------------------------------------------------ */
.topbar {
    display: flex;
    justify-content: flex-end;
    padding: .85rem 0 .25rem;
}

.lang {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .4rem;
}

.lang a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    min-width: 2.75rem;
    min-height: 2.5rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--muted);
    cursor: pointer;
}

.lang a[aria-current="page"] {
    background: var(--chestnut);
    border-color: var(--chestnut);
    color: #fff;
}

.lang a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* ---- En-tete : logo + accroche ------------------------------------------ */
.hero {
    text-align: center;
    padding: .25rem 0 1.25rem;
}

.hero img {
    width: min(64vw, 15rem);
    height: auto;
    display: block;
    margin: 0 auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.tagline {
    font-family: var(--serif);
    font-size: clamp(1.35rem, 5.5vw, 1.8rem);
    line-height: 1.2;
    color: var(--chestnut);
    margin: .5rem 0 .75rem;
}

.badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: .3rem .8rem;
}

/* ---- Cartes -------------------------------------------------------------- */
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    padding: 1.4rem 1.2rem;
    margin-top: 1rem;
    box-shadow: 0 1px 2px rgba(60, 40, 20, .04);
}

.eyebrow {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 .35rem;
}

h2 {
    font-family: var(--serif);
    font-size: 1.65rem;
    line-height: 1.15;
    font-weight: 600;
    color: var(--chestnut);
    margin: 0;
}

/* Nom du produit : toujours sur une seule ligne, taille adaptee aux petits ecrans */
.product-name {
    white-space: nowrap;
    font-size: clamp(1.2rem, 6vw, 1.65rem);
}

/* Sans sous-titre (page PT) : espace entre le nom et le chiffre cle */
.product-name + .stat { margin-top: 1rem; }

.sub {
    color: var(--muted);
    font-style: italic;
    margin: .3rem 0 1.1rem;
}

.card p { margin: 0 0 .9rem; }
.card p:last-child { margin-bottom: 0; }

/* Produit phare : chiffre cle + faits */
.stat {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    margin: 0 0 .9rem;
}

.stat-num {
    font-family: var(--serif);
    font-size: 3rem;
    line-height: 1;
    color: var(--accent);
    font-weight: 600;
}

.stat-label {
    font-size: 1.05rem;
    color: var(--ink);
}

.facts {
    list-style: none;
    margin: 0 0 1.1rem;
    padding: 0;
    display: grid;
    gap: .5rem;
}

.facts li {
    position: relative;
    padding-left: 1.3rem;
}

.facts li::before {
    content: "";
    position: absolute;
    left: .1rem;
    top: .55em;
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: var(--chestnut);
}

/* Histoire : lettrine sur le premier paragraphe */
.story { margin-top: 1rem; }

.story p:first-of-type::first-letter {
    font-family: var(--serif);
    font-size: 3.1em;
    line-height: .85;
    float: left;
    padding: .08em .12em 0 0;
    color: var(--chestnut);
}

/* Points de vente */
.shops {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .75rem;
}

.shops li {
    display: grid;
    gap: .1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--line);
}

.shops strong {
    font-weight: 600;
    color: var(--chestnut);
}

.shops span {
    color: var(--muted);
    font-size: .95rem;
}

/* Origine */
address {
    font-style: normal;
    margin: .9rem 0 1rem;
    line-height: 1.6;
}

.map-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: .45rem 1.1rem;
    border-radius: 999px;
    background: var(--chestnut);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.map-link:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* Instagram */
.social p { margin: .6rem 0 1rem; }

.insta-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 2.75rem;
    padding: .45rem 1.1rem .45rem .9rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.insta-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: none;
}

.video-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    margin-left: .25rem;
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.insta-link:focus-visible,
.video-link:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* ---- Pied de page -------------------------------------------------------- */
footer {
    margin-top: 2rem;
    text-align: center;
    font-size: .85rem;
    color: var(--muted);
}

footer .sep { margin: 0 .5rem; }

footer a {
    color: var(--accent);
    text-decoration: none;
}

/* ---- Ecrans plus larges (tablette, ordinateur) --------------------------- */
@media (min-width: 40rem) {
    .wrap { padding: 0 1.5rem 3rem; }
    .card { padding: 1.8rem 1.7rem; }
    .hero img { width: 15rem; }
}
