/*
 * Accueil v4 (essai du 02-12-2026) : page /accueil-v4.html, non indexee.
 * Tout est sous body.acc4 : aucune autre page n'est touchee. Pour revenir en arriere,
 * il suffit de ne plus servir /accueil-v4.html (l'accueil / est inchange).
 */
body.acc4 { background: linear-gradient(180deg, #f6ebe1 0, #faf3ec 330px, #fbf7f3 100%); }

/* ---------- En-tete : transparent sur la photo, creme une fois la page defilee ---------- */
body.acc4 .header { position: fixed; left: 0; right: 0; top: 0; background: transparent; backdrop-filter: none; border-bottom: 1px solid rgba(255,255,255,.18); transition: background .25s, border-color .25s; }
body.acc4 .header .logo-text { color: #fff; font-weight: 400; letter-spacing: .24em; }
body.acc4 .header .burger { color: #fff; border-color: rgba(255,255,255,.4); }
body.acc4 .header.defile { background: rgba(250,243,235,.97); border-bottom-color: rgba(60,40,25,.1); }
body.acc4 .header.defile .logo-text { color: #1d1a17; }
body.acc4 .header.defile .burger { color: #1d1a17; border-color: var(--border-light); }
@media (min-width: 1281px) {
    body.acc4 .header nav a { color: #fff; }
    body.acc4 .header nav a.actif, body.acc4 .header nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
    body.acc4 .header nav a.cta-connexion { background: #fff; color: #1d1a17 !important; border-radius: 999px; text-decoration: none; }
    body.acc4 .header nav a.cta-contour { border: 0; color: #fff !important; font-weight: 500; }
    body.acc4 .header:not(.defile) .lang-toggle, body.acc4 .header:not(.defile) .lang-toggle * { color: #fff !important; }
    body.acc4 .header:not(.defile) .lang-toggle { background: rgba(255,255,255,.14) !important; border-color: rgba(255,255,255,.4) !important; }
    body.acc4 .header.defile nav a { color: var(--text-secondary); }
    body.acc4 .header.defile nav a.actif, body.acc4 .header.defile nav a:hover { color: var(--accent-wine); }
    body.acc4 .header.defile nav a.cta-connexion { background: #1d1a17; color: #fff !important; }
    body.acc4 .header.defile nav a.cta-contour { color: #5b4d43 !important; }
}

/* ---------- Hero ---------- */
.h4 { position: relative; width: 100%; aspect-ratio: 1672 / 520; min-height: 460px; overflow: hidden; background: #1c1612; }
.h4-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.h4-voile { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,14,12,.74) 0%, rgba(18,14,12,.46) 50%, rgba(18,14,12,.18) 100%), linear-gradient(180deg, rgba(18,14,12,.5) 0, rgba(18,14,12,0) 32%); }
.h4::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6%; background: linear-gradient(180deg, rgba(246,235,225,0), #f6ebe1); pointer-events: none; }
.h4-titre { position: absolute; left: 4.9vw; top: 25%; z-index: 2; max-width: 62vw; }
.h4-titre h1 { margin: 0; font-family: 'Playfair Display', serif; font-weight: 400; font-size: clamp(28px, 3.02vw, 54px); line-height: 1.1; letter-spacing: -.012em; color: #fff; }
.h4-titre p { margin: 1.2vw 0 0; max-width: 40vw; font-size: clamp(13px, .98vw, 17px); line-height: 1.6; color: rgba(255,255,255,.92); }
.h4-rech { position: absolute; left: 12.3%; width: 75.2%; top: 68%; height: 17%; min-height: 66px; z-index: 2; border-radius: 999px; background: linear-gradient(180deg, rgba(255,250,244,.82), rgba(247,238,228,.74)); border: 1px solid rgba(255,255,255,.75); box-shadow: 0 20px 50px -24px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.h4-haut { display: flex; align-items: center; height: 100%; padding: 0 1.8% 0 1.9%; gap: 1.2vw; }
.h4-etin { width: 3vw; min-width: 36px; height: 3vw; min-height: 36px; border-radius: 50%; background: #e9e5da; display: grid; place-items: center; flex-shrink: 0; }
.h4-etin svg { width: 46%; height: 46%; }
.h4-rech input#q { flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none; outline: none; font: inherit; font-family: 'Inter', sans-serif; font-size: clamp(13px, .98vw, 17px); color: #1d1a17; padding: .5em 0; }
.h4-rech input#q::placeholder { color: #7b7068; opacity: 1; }
.h4-go { width: 2.9vw; min-width: 40px; height: 2.9vw; min-height: 40px; border-radius: 50%; background: #1f1c19; color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.h4-bas { display: flex; align-items: center; justify-content: center; height: 35%; font-family: 'Inter', sans-serif; font-size: clamp(10px, .76vw, 13px); color: #3e342d; }
.h4-bas span { display: inline-flex; align-items: center; gap: .6em; padding: 0 2.4vw; white-space: nowrap; }
.h4-bas span + span { border-left: 1px solid rgba(60,40,25,.16); }

/* ---------- Chiffres ---------- */
.h4-chiffres { display: flex; justify-content: center; flex-wrap: wrap; padding: 1.5vw 1rem 1vw; background: linear-gradient(180deg, #f6ebe1, #f8eee6); }
.h4-chiffres > div { display: flex; align-items: center; gap: 1vw; padding: .3rem 4.2vw; }
.h4-chiffres > div + div { border-left: 1px solid rgba(60,40,25,.16); }
.h4-chiffres i { font-size: clamp(18px, 1.6vw, 28px); color: #4a3f37; }
.h4-chiffres b { display: block; font-family: 'Playfair Display', serif; font-weight: 400; font-size: clamp(20px, 1.7vw, 30px); line-height: 1.1; font-variant-numeric: lining-nums; color: #1d1a17; }
.h4-chiffres small { font-size: clamp(11px, .78vw, 13px); color: #6e625a; }

/* ---------- Page ---------- */
body.acc4 .accueil, body.acc4 .vues, body.acc4 .ia { display: none !important; }
body.acc4 .page.large { padding-top: 0; }
.onglets4 { display: flex; gap: 2.2rem; margin-top: 1.4rem; overflow-x: auto; border-bottom: 1px solid #eadfd3; scrollbar-width: none; }
.onglets4::-webkit-scrollbar { display: none; }
.onglets4 button { font-family: 'Playfair Display', serif; font-size: 1.05rem; background: none; border: 0; padding: .7rem .1rem; cursor: pointer; color: #8d8279; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.onglets4 button:hover { color: #1d1a17; }
.onglets4 button.actif { color: #1d1a17; font-weight: 700; border-bottom-color: #1d1a17; }
body.acc4 .fb { margin-top: .9rem; border-radius: 14px; background: rgba(255,255,255,.72); box-shadow: none; }
body.acc4 .resultats { background: transparent; border: 0; box-shadow: none; padding: 1rem 0 0; }
body.acc4 .resultats-tete h2 { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 1.15rem; font-variant-numeric: lining-nums; }

/* ---------- Cartes cuvee : photo en haut, texte dessous ---------- */
body.acc4 .liste { grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 1.2rem; }
@media (min-width: 1200px) { body.acc4 .liste { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1500px) { body.acc4 .liste { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
body.acc4 .cv { flex-direction: column; min-height: 0; border-radius: 12px; background: #fff; border: 1px solid #efe6dc; box-shadow: 0 1px 2px rgba(60,40,20,.04); }
body.acc4 .cv:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -22px rgba(60,35,15,.45); border-color: #e6d6c6; }
body.acc4 .cv-side { width: 100%; height: 225px; border-right: 0; background: linear-gradient(180deg, #f3e7da 0%, #ece0d2 100%); }
body.acc4 .cv-side img { height: 100%; mix-blend-mode: multiply; transform: translate(-50%, -50%) scale(1.15); top: 50%; }
body.acc4 .cv-side img.cadre-auto { transform: none; }
body.acc4 .cv-vintage { bottom: 10px; left: 12px; transform: none; background: rgba(255,255,255,.92); color: #1d1a17; border: 0; font-weight: 600; }
body.acc4 .cv-main { padding: .9rem 1rem .8rem; gap: .35rem; }
body.acc4 .cv-main > div:first-child { display: flex; flex-direction: column; }
body.acc4 .cv-name { order: 1; font-family: 'Playfair Display', serif; font-weight: 500; font-size: 1.06rem; letter-spacing: 0; min-height: 2.5em; }
body.acc4 .cv-producer { order: 2; margin-top: .25rem; font-weight: 400; color: #7a6a5d; }
body.acc4 .cv-app { order: 3; margin: .2rem 0 0; text-transform: none; letter-spacing: 0; font-size: .8rem; font-weight: 400; color: #8d8279; }
body.acc4 .cv-region, body.acc4 .cv-millesimes, body.acc4 .cv-grapes, body.acc4 .cv-certs { display: none; }
body.acc4 .cv-meta { border-top: 0; padding-top: .1rem; font-size: .78rem; color: #7a6a5d; }
body.acc4 .cv-foot { border-top: 0; padding-top: .15rem; }
body.acc4 .cv-go { font-size: 0; gap: 0; }
body.acc4 .cv-go i { font-size: .85rem; color: #1d1a17; }

/* ---------- Telephone / tablette ---------- */
@media (max-width: 900px) {
    .h4 { aspect-ratio: auto; min-height: 0; padding: 92px 1rem 1.4rem; }
    .h4-titre, .h4-rech { position: relative; left: 0; top: 0; width: auto; height: auto; max-width: none; }
    .h4-titre h1 { font-size: 1.9rem; }
    .h4-titre h1 br { display: none; }
    .h4-titre p { max-width: none; font-size: .95rem; margin-top: .7rem; }
    .h4-rech { margin-top: 1.2rem; border-radius: 22px; }
    .h4-haut { height: auto; padding: .7rem .8rem; gap: .6rem; }
    .h4-etin { display: none; }
    .h4-bas { height: auto; flex-wrap: wrap; padding: 0 .6rem .7rem; }
    .h4-bas span { padding: .15rem .7rem; }
    .h4-bas span + span { border-left: 0; }
    .h4-chiffres { flex-direction: column; align-items: flex-start; padding: 1rem 1.2rem; gap: .4rem; }
    .h4-chiffres > div { padding: 0; border: 0 !important; gap: .8rem; }
    .h4-chiffres i { width: 26px; text-align: center; }
    body.acc4 .cv-side { height: 190px; }
    body.acc4 .liste { gap: .8rem; }
}
@media (max-width: 640px) {
    body.acc4 .liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.acc4 .cv-side { height: 150px; }
    body.acc4 .cv-main { padding: .7rem .75rem; }
    body.acc4 .cv-name { font-size: .92rem; }
    body.acc4 .cv-meta { display: none; }
}

/* Lien « Voir la carte » (l'ancienne page avait un onglet La carte) */
.onglets4 .lien-carte { margin-left: auto; align-self: center; white-space: nowrap; font-family: 'Inter', sans-serif; font-size: .88rem; color: #5b4d43; text-decoration: none; padding-left: 1rem; }
.onglets4 .lien-carte:hover { color: #1d1a17; text-decoration: underline; text-underline-offset: 4px; }
.onglets4 .lien-carte i { margin-right: .35rem; }
/* Sur telephone, Type de vin et Couleur sont deja dans les onglets : pas de doublon dans la liste */
@media (max-width: 992px) { body.acc4 .fb .fg:has([data-ouvrir="types"]), body.acc4 .fb .fg:has([data-ouvrir="couleurs"]) { display: none !important; } }

/* Reste de bordeaux : la couleur de marque de la page devient l'encre (liens, pastilles de filtres, icones, menu actif) */
body.acc4 { --accent-wine: #1d1a17; --accent-wine-dark: #000000; }
body.acc4 .header.defile nav a.actif, body.acc4 .header.defile nav a:hover { color: #1d1a17; }

/* Selecteur de langue : encre au lieu du bordeaux (CSS/translation.css ecrit le bordeaux en dur) */
body.acc4 .lang-toggle { background: rgba(29,26,23,.06); border-color: rgba(29,26,23,.18); color: #1d1a17; }
body.acc4 .lang-toggle:hover { background: rgba(29,26,23,.12); }
body.acc4 .lang-menu button:hover { background: rgba(29,26,23,.06); color: #1d1a17; }
body.acc4 .lang-menu button[aria-current="true"] { background: rgba(29,26,23,.10); color: #1d1a17; }
