:root {
    --fo-rouge: #e2001a;
    --fo-ink: #121212;
    --fo-gris: #55554f;
    --fo-bord: #e4e4e0;
    --fo-fond: #f4f4f2;
    --fo-marge: clamp(1.5rem, 6vw, 7.5rem);
}

.fo-h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.8vw, 2.25rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--fo-ink);
}
.fo-h2--petit { font-size: clamp(1.2rem, 2vw, 1.65rem); }
.fo-sous { margin: 0.6rem 0 0; font-size: 1.1rem; line-height: 1.6; color: var(--fo-gris); }

/* ---------- Bandeau ---------- */
.fo-hero {
    position: relative;
    height: clamp(20rem, 40vw, 36rem);
    overflow: hidden;
    background: var(--fo-ink);
}
.fo-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}
.fo-hero__voile {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.08) 58%);
}
.fo-hero__contenu {
    position: absolute;
    left: var(--fo-marge);
    right: var(--fo-marge);
    bottom: clamp(1.75rem, 3.5vw, 3.5rem);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(1.5rem, 3vw, 3rem);
    flex-wrap: wrap;
}
.fo-hero__texte { display: flex; flex-direction: column; gap: 1rem; }
.fo-surtitre {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
}
.fo-trait { width: 2.75rem; height: 3px; background: var(--fo-rouge); flex-shrink: 0; }
.fo-hero__titre {
    margin: 0;
    font-size: clamp(2rem, 4.6vw, 4.1rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: #fff;
}
.fo-hero__chiffre {
    flex-shrink: 0;
    background: var(--fo-rouge);
    padding: clamp(1.1rem, 2vw, 1.6rem) clamp(1.4rem, 2.4vw, 2.1rem);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.fo-hero__chiffre-valeur {
    font-size: clamp(2rem, 3.6vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
}
.fo-hero__chiffre-label { font-size: 1rem; font-weight: 600; color: #fff; }

/* ---------- Engagement ---------- */
.fo-engagement {
    padding: clamp(3rem, 6vw, 4.5rem) var(--fo-marge);
    display: flex;
    flex-direction: column;
    gap: clamp(1.75rem, 3.5vw, 2.75rem);
}
.fo-phrase {
    margin: 0;
    max-width: 50ch;
    font-size: clamp(1.4rem, 2.6vw, 2.25rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--fo-ink);
}
.fo-engagements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
}
.fo-engagement__item {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 1.2rem;
    border-top: 2px solid var(--fo-ink);
}
.fo-engagement__titre { font-size: 1.3rem; font-weight: 700; color: var(--fo-ink); }
.fo-engagement__texte { font-size: 1.05rem; line-height: 1.6; color: var(--fo-gris); }

/* ---------- Producteurs ---------- */
.fo-producteurs {
    padding: clamp(3rem, 6vw, 4.5rem) var(--fo-marge);
    background: var(--fo-fond);
    display: flex;
    flex-direction: column;
    gap: clamp(1.75rem, 3vw, 2.5rem);
}
.fo-producteurs__entete {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.fo-producteurs__intro { max-width: 40ch; }
.fo-producteurs__grille {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}
.fo-producteur { display: flex; flex-direction: column; }
.fo-producteur__media {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    background: #e2e2de;
    overflow: hidden;
}
.fo-producteur__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fo-producteur__region {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 0.4rem 0.9rem;
    background: var(--fo-rouge);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
}
.fo-producteur__texte {
    padding-top: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.fo-producteur__nom { font-size: 1.2rem; font-weight: 700; line-height: 1.2; color: var(--fo-ink); }
.fo-producteur__produit { font-size: 1rem; color: var(--fo-gris); }

/* ---------- La Foire ---------- */
.fo-foire {
    padding: clamp(3rem, 6vw, 4.5rem) var(--fo-marge);
    background: var(--fo-ink);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    align-items: center;
    gap: clamp(2rem, 4.5vw, 4.5rem);
}
.fo-foire__surtitre {
    margin: 0 0 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fo-rouge);
}
.fo-foire__titre {
    margin: 0 0 1.1rem;
    font-size: clamp(1.8rem, 3.4vw, 2.9rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #fff;
}
.fo-foire__corps {
    margin: 0;
    max-width: 42ch;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.78);
}
.fo-foire__media { position: relative; }
.fo-foire__video,
.fo-foire__media img,
.fo-foire__lien {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #26262a;
    border: none;
}
.fo-foire__lien { position: relative; }
.fo-foire__lien img { position: absolute; inset: 0; height: 100%; }
.fo-foire__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: var(--fo-rouge);
}
.fo-foire__play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 56%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 0.6rem 0 0.6rem 1rem;
    border-color: transparent transparent transparent #fff;
}

/* ---------- Logos ---------- */
.fo-logos {
    padding: clamp(3rem, 6vw, 4.5rem) var(--fo-marge);
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2.25rem);
}
.fo-logos__mur {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 1px;
    background: var(--fo-bord);
    border: 1px solid var(--fo-bord);
}
.fo-logo {
    aspect-ratio: 3 / 2;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem;
}
.fo-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ---------- Appel à contact ---------- */
.fo-cta {
    padding: clamp(3rem, 6vw, 4.5rem) var(--fo-marge);
    background: var(--fo-rouge);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    align-items: flex-start;
}
.fo-cta__titre {
    margin: 0;
    max-width: 24ch;
    font-size: clamp(1.7rem, 3.2vw, 2.75rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: #fff;
}
.fo-cta__texte {
    margin: 0;
    max-width: 44ch;
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}
.fo-cta__bouton {
    margin-top: 0.6rem;
    background: #fff;
    color: var(--fo-ink);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 1.1rem 2.1rem;
    text-decoration: none;
}
.fo-cta__bouton:hover { background: #f0f0ee; color: var(--fo-ink); }

/* Vignette producteur cliquable vers sa vidéo */
.fo-producteur__lien {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.fo-producteur__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.85);
}
.fo-producteur__play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 56%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 0.45rem 0 0.45rem 0.72rem;
    border-color: transparent transparent transparent #fff;
}
.fo-producteur__lien:hover .fo-producteur__play { background: var(--fo-rouge); border-color: var(--fo-rouge); }

/* Le mur de logos ne s'étire pas quand ils sont peu nombreux */
.fo-logos__mur {
    grid-template-columns: repeat(auto-fill, minmax(9rem, 13rem));
    justify-content: start;
}

/* Astra impose height:auto sur les images : on force le remplissage */
.fo-producteurs .fo-producteur__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fo-producteurs .fo-producteur__media { overflow: hidden; }

.fo-producteurs .fo-producteurs__grille { gap: clamp(1.75rem, 3.5vw, 3rem); }

.fo-producteurs .fo-producteur__media { aspect-ratio: 16 / 9; }

/* Correction : Elementor impose img { height: auto } et ecrase le remplissage. */
.fo-producteur__media img[class] { height: 100%; object-fit: cover; }
