/* FDC — Recettes Fans de Chenin. Mise en page du carnet « Les recettes #FanDeChenin » :
   sommaire à gauche, page du carnet à droite (photo verticale, recette complète à côté).
   Charte : #F5C10F #1E2B3C #F7F3EC #FFFFFF. Les trois fonds des cartes fromages sont ceux
   du carnet, gardés par décision de Francis le 19/10/2026. */
.fdc-rec {
  --fdc-rec-nuit: #1E2B3C;
  --fdc-rec-jaune: #F5C10F;
  --fdc-rec-creme: #F7F3EC;
  --fdc-rec-titre: var(--e-global-typography-0d263b9-font-family, "Klavika Web Basic"), sans-serif;
  --fdc-rec-ombre: 5px 5px 10px rgba(0, 0, 0, .15);
  display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 40px; align-items: start;
  color: var(--fdc-rec-nuit);
}
.fdc-rec > * { min-width: 0; }
.fdc-rec img { display: block; max-width: 100%; height: auto; }
.fdc-rec button { font-family: var(--fdc-rec-titre); box-shadow: none; text-shadow: none; }

/* ---------- gauche : filtre et sommaire */
.fdc-rec-trier { margin: 0 0 12px; font-family: var(--fdc-rec-titre); font-weight: 700; font-size: 14px; text-transform: uppercase; }
.fdc-rec-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.fdc-rec .fdc-rec-chip {
  margin: 0; padding: 7px 14px; min-height: 36px; border: 1.5px solid var(--fdc-rec-nuit); border-radius: 6px;
  background: #fff; color: var(--fdc-rec-nuit); font-weight: 700; font-size: 14px; line-height: 1; text-transform: uppercase;
  letter-spacing: .02em; cursor: pointer; transition: background-color .15s, color .15s;
}
.fdc-rec .fdc-rec-chip:hover, .fdc-rec .fdc-rec-chip:focus, .fdc-rec .fdc-rec-chip.is-actif { background: var(--fdc-rec-nuit); color: #fff; border-color: var(--fdc-rec-nuit); }
.fdc-rec .fdc-rec-chip:focus-visible, .fdc-rec-item:focus-visible { outline: 3px solid var(--fdc-rec-jaune); outline-offset: 2px; }

.fdc-rec-sommaire { background: var(--fdc-rec-nuit); color: #fff; padding: 36px 0 28px; }
.fdc-rec-sommaire-titre { display: flex; align-items: center; gap: 22px; margin: 0 0 22px; font-family: var(--fdc-rec-titre); font-weight: 700; font-size: 32px; line-height: 1; text-transform: uppercase; color: #fff; }
.fdc-rec-sommaire-titre::before { content: ""; width: 64px; height: 30px; background: #fff; }
.fdc-rec-sommaire ul { list-style: none; margin: 0; padding: 0; }
.fdc-rec-sommaire li { margin: 0; padding: 0; }
.fdc-rec-sommaire li[hidden] { display: none; }
.fdc-rec .fdc-rec-item {
  display: block; padding: 8px 24px; color: #fff; text-decoration: none; font-family: var(--fdc-rec-titre);
  font-weight: 700; font-size: 18px; line-height: 1.3; transition: background-color .15s, color .15s;
}
.fdc-rec .fdc-rec-item:hover { color: var(--fdc-rec-jaune); }
.fdc-rec .fdc-rec-item.is-actif { background: var(--fdc-rec-jaune); color: var(--fdc-rec-nuit); }
.fdc-rec-item span { display: block; font-weight: 400; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }
.fdc-rec-compte { margin: 14px 0 0; font-size: 15px; font-style: italic; }

/* ---------- droite : le panneau, au format carré du carnet */
.fdc-rec-panneau { position: sticky; top: 24px; border-radius: 20px; overflow: hidden; box-shadow: var(--fdc-rec-ombre); background: #fff; scroll-margin-top: 90px; }
/* avec JavaScript, une seule page du carnet à la fois ; sans, tout s'affiche à la suite */
.fdc-rec.is-js .fdc-rec-panneau > :not(.is-actif) { display: none; }
.fdc-rec:not(.is-js) .fdc-rec-couverture, .fdc-rec:not(.is-js) .fdc-rec-retour { display: none; }

/* couverture : page 1 du carnet */
.fdc-rec-couverture { position: relative; aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.fdc-rec-couv-bande { position: absolute; inset: 0 0 auto 0; height: 50%; background: var(--fdc-rec-jaune); }
.fdc-rec-couv-bande::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: repeating-linear-gradient(115deg, var(--fdc-rec-nuit) 0 2px, transparent 2px 7px); }
.fdc-rec-couv-points { position: absolute; left: 0; right: 0; top: calc(50% + 22px); height: 6px; background: radial-gradient(circle, var(--fdc-rec-nuit) 2.2px, transparent 2.6px) 0 0 / 16px 6px repeat-x; }
.fdc-rec-couv-titre { position: relative; display: flex; align-items: center; gap: 4%; width: 100%; margin: 9% 0 5%; font-family: var(--fdc-rec-titre); font-weight: 700; font-size: clamp(22px, 3.2vw, 40px); line-height: 1; letter-spacing: -.01em; text-transform: uppercase; color: var(--fdc-rec-nuit); }
.fdc-rec-couv-titre::before { content: ""; flex: none; width: 12%; height: .85em; background: var(--fdc-rec-nuit); }
.fdc-rec .fdc-rec-couv-illu { position: relative; width: 52%; border: 1.5px solid var(--fdc-rec-nuit); }
.fdc-rec-couv-marque { position: relative; margin: auto 0 7%; text-align: center; font-family: var(--fdc-rec-titre); line-height: 1.2; }
.fdc-rec-couv-marque b { display: block; font-size: clamp(24px, 3.2vw, 38px); font-weight: 700; letter-spacing: .01em; }
.fdc-rec-couv-marque b span { font-weight: 400; }
.fdc-rec-couv-marque i { font-style: normal; font-size: 18px; }
.fdc-rec-couv-invite { position: absolute; left: 0; right: 0; bottom: 2.5%; margin: 0; text-align: center; font-family: var(--fdc-rec-titre); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; opacity: .6; }

/* fiche recette : pages 5 à 13 du carnet */
.fdc-rec-fiche { display: grid; grid-template-columns: 38% minmax(0, 1fr); aspect-ratio: 1 / 1; scroll-margin-top: 90px; }
.fdc-rec-photo { position: relative; min-height: 100%; }
.fdc-rec .fdc-rec-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* Klavika n'existe sur le site qu'en gras (700) : le corps de la fiche passe en Source Serif 4, la police de texte du site */
.fdc-rec-corps { display: flex; flex-direction: column; padding: 9% 7% 5% 6%; font-size: 15px; line-height: 1.5; }
.fdc-rec .fdc-rec-retour { display: none; align-self: flex-start; margin: 0 0 18px; padding: 0; border: 0; background: none; color: var(--fdc-rec-nuit); font-weight: 700; font-size: 14px; text-transform: uppercase; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.fdc-rec .fdc-rec-retour:hover, .fdc-rec .fdc-rec-retour:focus { background: none; color: var(--fdc-rec-nuit); }
.fdc-rec .fdc-rec-fiche h2 {
  margin: 0 0 22px; padding: 0; font-family: var(--fdc-rec-titre); font-weight: 400; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.55;
  letter-spacing: 0; text-transform: uppercase; color: var(--fdc-rec-nuit);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 10px;
}
.fdc-rec-infos { margin: 0 0 26px; font-family: var(--fdc-rec-titre); font-weight: 700; font-size: 16px; line-height: 1.3; }
.fdc-rec .fdc-rec-fiche h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding: 0; font-family: var(--fdc-rec-titre); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--fdc-rec-jaune); text-transform: uppercase; letter-spacing: .01em; }
.fdc-rec .fdc-rec-fiche h3::before { content: ""; width: 18px; height: 10px; background: var(--fdc-rec-jaune); }
.fdc-rec .fdc-rec-fiche ul { margin: 0 0 26px; padding: 0 0 0 20px; list-style: disc; }
.fdc-rec .fdc-rec-fiche li { margin: 0; }
.fdc-rec-ingredients.is-2col { columns: 2; column-gap: 24px; }
.fdc-rec-ingredients li { break-inside: avoid; }
.fdc-rec .fdc-rec-etapes li { margin: 0 0 6px; line-height: 1.6; text-align: justify; hyphens: auto; }
.fdc-rec-pied { margin-top: auto; padding: 12px 0 20px; text-align: center; }
.fdc-rec .fdc-rec-citation { position: relative; display: inline-block; max-width: 320px; margin: 0; padding: 4px 26px; border: 0; background: none; color: var(--fdc-rec-jaune); font-family: var(--fdc-rec-titre); font-style: normal; font-weight: 700; font-size: 16px; line-height: 1.4; text-align: center; quotes: none; }
.fdc-rec .fdc-rec-citation p { margin: 0; color: inherit; font: inherit; }
.fdc-rec .fdc-rec-citation::before, .fdc-rec .fdc-rec-citation::after { position: absolute; color: var(--fdc-rec-nuit); font-weight: 700; font-size: 44px; line-height: 1; }
.fdc-rec .fdc-rec-citation::before { content: "“"; left: 0; top: -6px; }
.fdc-rec .fdc-rec-citation::after { content: "”"; right: 0; bottom: -22px; }
.fdc-rec-liens { margin: 26px 0 0; font-size: 15px; }
.fdc-rec-liens span { font-family: var(--fdc-rec-titre); }
.fdc-rec-liens span { display: block; margin-bottom: 2px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.fdc-rec .fdc-rec-liens a { color: var(--fdc-rec-nuit); text-decoration: underline; text-decoration-color: var(--fdc-rec-jaune); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* « Le saviez-vous ? » : Chenins et fromages, page 14 du carnet, sous les recettes.
   Le titre h2 garde le style du kit, comme les autres titres de section du site. */
.fdc-rec-saviez { margin: 48px 0 56px; color: #1E2B3C; }
.fdc-rec-saviez-surtitre { margin: 0 0 8px; font-family: var(--e-global-typography-0d263b9-font-family, "Klavika Web Basic"), sans-serif; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .03em; }
.fdc-rec-saviez h2 { margin: 0 0 18px; }
.fdc-rec-saviez-intro { display: flex; gap: 14px; margin: 0 0 32px; font-family: var(--e-global-typography-0d263b9-font-family, "Klavika Web Basic"), sans-serif; font-weight: 700; font-size: 18px; line-height: 1.5; }
.fdc-rec-saviez-intro::before { content: ""; flex: none; width: 18px; height: 10px; margin-top: 9px; background: #1E2B3C; }
.fdc-rec-cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.fdc-rec-carte { display: flex; flex-direction: column; padding: 0 0 28px; color: #fff; font-size: 16px; line-height: 1.5; text-align: center; }
.fdc-rec-saviez .fdc-rec-carte img { display: block; width: 100%; max-width: 100%; height: auto; margin-bottom: 20px; }
.fdc-rec-carte p { margin: 0 9%; }
.fdc-rec-carte--dur, .fdc-rec-carte--persille { color: #1E2B3C; }

/* ---------- tablette */
@media (max-width: 1100px) {
  .fdc-rec { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .fdc-rec-panneau { position: static; }
  .fdc-rec.is-js .fdc-rec-retour { display: inline-block; }
}
/* ---------- mobile */
@media (max-width: 700px) {
  .fdc-rec-fiche { grid-template-columns: minmax(0, 1fr); aspect-ratio: auto; }
  .fdc-rec-photo { min-height: 0; height: min(110vw, 460px); }
  .fdc-rec-corps { padding: 26px 20px 30px; }
  .fdc-rec-ingredients.is-2col { columns: 1; }
  .fdc-rec-cartes { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .fdc-rec-carte { flex-direction: row; align-items: center; gap: 14px; padding: 0 14px 0 0; text-align: left; }
  .fdc-rec-saviez .fdc-rec-carte img { width: 38%; margin: 0; }
  .fdc-rec-carte p { margin: 0; font-size: 15px; }
  .fdc-rec-couv-invite { display: none; }
}
