/* ==========================================================================
   Fiche vin (refonte 2026), d'après la maquette validée.
   S'appuie sur catalogue.css (fil d'Ariane, absence de photo).
   ========================================================================== */

.gm-fiche { padding-top: 24px; padding-bottom: 96px; }
.gm-fiche .gm-ariane { margin-bottom: 40px; }

/* Haut de fiche : photo + achat */
.gm-fiche-haut { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.gm-fiche-photo {
	flex: 1 1 440px; min-width: 0; display: flex; justify-content: center;
	background: var(--gm-blanc); border: 1px solid var(--gm-filet); border-radius: var(--gm-rayon); padding: 40px;
}
.gm-fiche-photo img { display: block; width: 100%; max-width: 420px; height: 480px; object-fit: contain; }
.gm-fiche-achat { flex: 1 1 440px; min-width: 0; }

.gm-surtitre { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gm-bordeaux); font-weight: 500; }
.gm-fiche-achat h1 { margin: 0 0 20px; font-size: 40px; line-height: 1.2; }
.gm-fiche-prix { margin: 0 0 4px; font-size: 30px; font-weight: 500; }
.gm-fiche-prix del { font-size: 20px; font-weight: 400; color: var(--gm-texte-doux); }
.gm-fiche-prix-note { margin: 0 0 28px; font-size: 15px; color: #5F575F; }
.gm-fiche-resume { margin: 0 0 28px; color: var(--gm-texte-doux); }
.gm-fiche-resume p { margin: 0 0 10px; }
.gm-fiche-alerte { margin: 0 0 24px; padding: 12px 16px; background: var(--gm-fond-doux); border-radius: var(--gm-rayon); color: var(--gm-bordeaux); font-weight: 500; }

/* Quantité + bouton */
.gm-fiche-form { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin-bottom: 28px; }
.gm-qte { display: flex; flex-direction: column; gap: 6px; }
.gm-qte label { font-size: 14px; color: #5F575F; }
.gm-qte-champ { display: flex; height: 52px; border: 1px solid #CFC6C2; border-radius: var(--gm-rayon); }
.gm-qte-champ:focus-within { border-color: var(--gm-bordeaux); }
.gm-qte-champ button { width: 48px; border: 0; background: transparent; font: inherit; font-size: 22px; color: var(--gm-texte); cursor: pointer; }
.gm-qte-champ button:hover, .gm-qte-champ button:focus-visible { color: var(--gm-bordeaux); }
.gm-qte-champ input { width: 56px; border: 0; text-align: center; font: inherit; font-size: 17px; color: var(--gm-texte); background: transparent; -moz-appearance: textfield; appearance: textfield; }
.gm-qte-champ input::-webkit-outer-spin-button, .gm-qte-champ input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gm-fiche-ajout { flex: 1 1 220px; min-height: 52px; padding: 0 16px; border: 0; font: inherit; font-size: 16px; font-weight: 500; white-space: nowrap; cursor: pointer; }

/* Atouts */
.gm-fiche-atouts { list-style: none; margin: 0; padding: 24px 0 0; border-top: 1px solid var(--gm-filet); display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.gm-fiche-atouts li { display: flex; gap: 12px; align-items: center; }
.gm-fiche-atouts svg { flex: none; color: var(--gm-bordeaux); }

/* Présentation et fiche technique */
.gm-fiche-details { display: flex; flex-wrap: wrap; gap: 48px 64px; margin-top: 88px; }
.gm-fiche-details section { flex: 1 1 440px; min-width: 0; }
.gm-fiche-details h2, .gm-fiche-autres h2 { margin: 0 0 24px; font-size: 30px; line-height: 1.25; }
.gm-fiche-texte .gm-contenu { color: var(--gm-texte-doux); }
.gm-fiche-texte .gm-contenu p { margin: 0 0 12px; }
.gm-fiche-technique table { width: 100%; border-collapse: collapse; font-size: 16px; }
.gm-fiche-technique tr { border-top: 1px solid var(--gm-filet); }
.gm-fiche-technique tr:last-child { border-bottom: 1px solid var(--gm-filet); }
.gm-fiche-technique th { width: 45%; padding: 12px 16px 12px 0; text-align: left; font-weight: 500; }
.gm-fiche-technique td { padding: 12px 0; color: var(--gm-texte-doux); }

/* Vous aimerez aussi */
.gm-fiche-autres { margin-top: 88px; }
.gm-fiche-autres ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.gm-fiche-autres a {
	display: flex; gap: 20px; align-items: center; height: 100%; box-sizing: border-box; padding: 20px;
	background: var(--gm-fond-doux); border: 1px solid transparent; border-radius: var(--gm-rayon); color: var(--gm-texte); text-decoration: none;
}
.gm-fiche-autres a:hover, .gm-fiche-autres a:focus-visible { border-color: var(--gm-bordeaux); }
.gm-fiche-autres img { flex: none; width: 80px; height: 120px; object-fit: contain; mix-blend-mode: multiply; }
.gm-fiche-autres strong { display: block; margin-top: 4px; font-weight: 500; }

/* --- Mobile ----------------------------------------------------------------- */
@media (max-width: 767.98px) {
	.gm-fiche { padding-top: 8px; padding-bottom: 64px; }
	.gm-fiche .gm-ariane { margin-bottom: 16px; }
	.gm-fiche-haut { gap: 24px; }
	.gm-fiche-photo { flex-basis: 100%; padding: 16px; }
	.gm-fiche-photo img { height: 300px; }
	.gm-fiche-achat { flex-basis: 100%; }
	.gm-fiche-achat h1 { font-size: 28px; margin-bottom: 12px; }
	.gm-fiche-prix { font-size: 26px; }
	.gm-fiche-form { gap: 12px; flex-wrap: nowrap; }
	.gm-fiche-ajout { flex: 1 1 auto; min-width: 0; }
	.gm-fiche-details { margin-top: 56px; gap: 40px; }
	.gm-fiche-details section { flex-basis: 100%; }
	.gm-fiche-details h2, .gm-fiche-autres h2 { font-size: 24px; margin-bottom: 16px; }
	.gm-fiche-autres { margin-top: 56px; }
	.gm-fiche-autres ul { grid-template-columns: 1fr; gap: 12px; }
	.gm-fiche-autres a { padding: 12px 16px; }
	.gm-fiche-autres img { width: 56px; height: 84px; }
}
