/* Socle des nouvelles pages du site : police, en-tête, menu du téléphone, pied de page.
   Repris des maquettes validées le 19 novembre 2026 (lib/pages-pgif.css, lib/menu-maquette.css, lib/pied-pgif.js).
   Ici, seulement des classes propres à l'en-tête et au pied : le reste d'une page vient de sa propre feuille,
   chargée après celle-ci. */
@font-face { font-family: "Inter"; src: url("../../../../themes/pgif/assets/fonts/Inter-Regular.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../../../../themes/pgif/assets/fonts/Inter-Medium.ttf"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../../../../themes/pgif/assets/fonts/Inter-Bold.ttf"); font-weight: 700; font-display: swap; }

:root { --ink: #111; --text: #333; --muted: #777; --line: #e4e4e4; --bg: #f4f4f4; --card: #fff; --gold: #b18d17; --gold-deep: #8c6f10; --gold-pale: #f3ecd6; --gold-clair: #d9bf6a; --wrap: 1160px; }
.site-tete, .site-tete *, .pied, .pied *, .site-apercu { box-sizing: border-box; }

/* En-tête : le logo exactement au centre, trois liens de chaque côté */
.site-tete { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); font-family: "Inter", system-ui, sans-serif; }
.site-tete .site-tete-in { display: grid; justify-content: normal; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: var(--wrap); height: 72px; margin: 0 auto; padding: 0 16px; font-size: 13px; line-height: 1.6; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }
.site-tete .site-tete-in > nav { display: flex; gap: 34px; }
/* Les deux moitiés du menu se serrent contre le logo, à la même distance de chaque côté : collées aux bords de la page,
   elles laissaient deux vides inégaux autour du logo (137 px à gauche, 66 px à droite à 1280 px), les libellés n'ayant
   pas la même largeur (remarque de Ferdinand, 20 novembre 2026). Les deux pictos restent au bord droit. */
.site-tete .site-tete-in { --tete-ecart: clamp(12px, calc((100vw - 880px) / 8), 48px); }
.site-tete .site-tete-in > nav:first-child { justify-self: end; margin-right: var(--tete-ecart); }
.site-tete .site-tete-in > nav:last-of-type { justify-self: stretch; margin-left: var(--tete-ecart); }
.site-tete .site-tete-in > nav:last-of-type > .site-outil:first-of-type { margin-left: auto; }
.site-tete nav a { color: inherit; text-decoration: none; white-space: nowrap; }
.site-tete nav a:hover, .site-tete nav a.is-ici { color: var(--gold); }
.site-tete .logo { display: block; flex: none; justify-self: center; line-height: 0; text-decoration: none; }
.site-tete .logo img { display: block; width: auto; max-width: none; height: 50px; }
.site-tete a:focus-visible, .site-tete button:focus-visible, .pied a:focus-visible, .pied button:focus-visible, .pied input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Menu du téléphone : le bouton à droite du logo, le volet sous l'en-tête */
.site-menu-bouton { display: none; align-items: center; justify-content: center; justify-self: end; grid-column: 3; width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.site-menu-bouton span { position: relative; display: block; width: 22px; height: 2px; background: currentColor; transition: background .2s ease; }
.site-menu-bouton span::before, .site-menu-bouton span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink); transition: transform .25s ease, top .25s ease; }
.site-menu-bouton span::before { top: -7px; }
.site-menu-bouton span::after { top: 7px; }
.site-menu-bouton[aria-expanded="true"] span { background: transparent; }
.site-menu-bouton[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.site-menu-bouton[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.site-tete nav.site-menu { display: none; }
@media (max-width: 900px) {
	.site-tete .site-tete-in > nav { display: none; }
	.site-tete .logo { grid-column: 2; }
	.site-menu-bouton { display: inline-flex; }
	.site-tete nav.site-menu { position: absolute; top: 100%; left: 0; right: 0; display: grid; gap: 0; max-height: calc(100vh - 72px); padding: 6px 16px 18px; overflow-y: auto; background: #fff; box-shadow: 0 1px 0 var(--line), 0 18px 30px rgba(0,0,0,.08); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
	.site-tete nav.site-menu.is-ouvert { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
	.site-tete nav.site-menu a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
	.site-tete nav.site-menu a:last-child { border-bottom: 0; }
	.site-tete nav.site-menu a.is-ici { color: var(--gold); }
}

/* Pied de page : newsletter, menu, Wishlist, mentions, sur fond noir */
.pied { margin-top: 96px; background: var(--ink); color: #fff; font: 400 16px/1.6 "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.pied-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; max-width: var(--wrap); margin: 0 auto; padding: 64px 16px 52px; }
.pied h2 { margin: 0; padding: 0; color: #fff; font-size: 26px; line-height: 1.1; font-weight: 700; letter-spacing: 0; text-align: left; text-transform: uppercase; }
.pied .pied-filet { display: block; width: 64px; height: 5px; margin: 16px 0 18px; border-top: 1px solid var(--gold-clair); border-bottom: 1px solid var(--gold-clair); }
.pied-lettre p { margin: 0 0 22px; color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.6; }
.pied-lettre form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 8px; margin: 0; }
.pied-lettre input[type="email"], .pied-lettre input[type="text"] { width: auto; min-width: 0; height: 50px; margin: 0; padding: 0 14px; border: 0; border-radius: 0; background: #fff; color: var(--ink); font: inherit; }
.pied-lettre input::-webkit-calendar-picker-indicator { display: none !important; }
.pied-lettre .pied-piege { position: absolute; left: -5000px; }
.pied .pied-bouton { display: inline-flex; flex: none; align-items: center; justify-content: center; height: 50px; margin: 0; padding: 0 20px; border: 0; border-radius: 0; background: var(--gold); color: #fff; font: inherit; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: background .2s ease, color .2s ease; }
.pied .pied-bouton:hover { background: var(--gold-deep); }
.pied-menu { padding-top: 6px; }
.pied-liens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); grid-auto-flow: column; gap: 14px 24px; }
.pied-menu a { color: rgba(255,255,255,.85); font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; }
.pied-menu a:hover { color: var(--gold-clair); }
.pied-menu a.pied-wishlist { display: inline-flex; align-items: center; justify-content: center; height: 46px; margin-top: 28px; padding: 0 20px; border: 1px solid rgba(255,255,255,.6); color: #fff; font-size: 12px; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.pied-menu a.pied-wishlist:hover { background: #fff; color: var(--ink); }
.pied-menu a.pied-wishlist svg { width: 15px; height: 15px; margin-right: 10px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pied-bas { border-top: 1px solid rgba(255,255,255,.12); }
.pied-bas p { max-width: var(--wrap); margin: 0 auto; padding: 20px 16px 24px; color: rgba(255,255,255,.55); font-size: 12px; line-height: 1.6; letter-spacing: .06em; }
.pied-bas a { color: inherit; text-decoration: none; }
.pied-bas a:hover { color: #fff; }
.pied-bas span { margin: 0 10px; color: rgba(255,255,255,.25); }
@media (max-width: 900px) {
	.pied { margin-top: 56px; }
	.pied-in { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 44px 16px 36px; }
	.pied-lettre form { grid-template-columns: minmax(0, 1fr); }
}

/* Pour l'équipe seulement : la page est montrée en aperçu, elle n'est pas encore en ligne */
.site-apercu { position: fixed; left: 16px; bottom: 16px; z-index: 9999; display: flex; gap: 14px; align-items: center; padding: 10px 14px; background: var(--ink); color: #fff; font: 500 12px/1.4 "Inter", system-ui, sans-serif; letter-spacing: .04em; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.site-apercu a { color: var(--gold-clair); text-decoration: none; }
.site-apercu a:hover { color: #fff; }

/* Connecté au back-office : la barre de WordPress pousse l'en-tête collant */
@media (min-width: 783px) {
	.admin-bar .site-tete { top: 32px; }
	.admin-bar .barre { top: 104px; }
}
@media (prefers-reduced-motion: reduce) { .site-menu, .site-menu-bouton span, .site-menu-bouton span::before, .site-menu-bouton span::after { transition: none !important; } }

/* Menu du téléphone ouvert : la page ne défile plus derrière lui. */
html.site-menu-ouvert, html.site-menu-ouvert body { overflow: hidden; }

/* Recherche et liste d'envies dans l'en-tête (ajout du 2026-11-20) : deux pictos au trait, à droite des liens. */
.site-tete .site-outil { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin: 0; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.site-tete .site-outil svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.site-tete .site-outil:hover, .site-tete .site-outil[aria-expanded="true"] { color: var(--gold); }
.site-tete .site-tete-in > nav:last-of-type { align-items: center; }
.site-tete .site-outil + .site-outil { margin-left: -12px; }
.site-recherche { position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: #fff; box-shadow: 0 1px 0 var(--line), 0 18px 30px rgba(0,0,0,.08); }
.site-recherche[hidden] { display: none; }
.site-recherche-in { display: flex; gap: 8px; max-width: var(--wrap); margin: 0 auto; padding: 14px 16px; }
.site-recherche input { flex: 1; min-width: 0; height: 48px; margin: 0; padding: 0 14px; border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); font: 400 15px/1 "Inter", system-ui, sans-serif; outline: none; }
.site-recherche input:focus { border-color: var(--gold); }
.site-recherche button { height: 48px; margin: 0; padding: 0 22px; border: 0; border-radius: 0; background: var(--gold); color: #fff; font: 500 12px/1 "Inter", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.site-recherche button:hover { background: var(--gold-deep); }
.site-menu-recherche { display: none; }
/* Entre 901 et 1100 px, les liens se resserrent pour laisser la place aux deux pictos (au-delà de 1100 px, tout tient
   sans pousser le logo hors du milieu). */
@media (min-width: 901px) and (max-width: 1100px) { .site-tete .site-tete-in > nav { gap: 20px; } .site-tete .site-tete-in { font-size: 12px; } }
@media (max-width: 900px) {
	.site-recherche { display: none; }
	.site-tete nav.site-menu .site-menu-recherche { display: flex; margin: 10px 0 4px; border: 1px solid var(--line); }
	.site-menu-recherche input { flex: 1; min-width: 0; height: 46px; margin: 0; padding: 0 12px; border: 0; border-radius: 0; background: #fff; color: var(--ink); font: 400 15px/1 "Inter", system-ui, sans-serif; outline: none; }
	.site-menu-recherche button { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: 0; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
	.site-menu-recherche svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
}
.site-tete .site-recherche input:focus-visible, .site-tete .site-menu-recherche input:focus-visible { outline: 0; }

/* Propositions de la recherche de l'en-tête (même liste que celle de l'accueil, ouverte SOUS le champ). */
.site-tete .recherche-liste { position: absolute; z-index: 3; top: calc(100% - 6px); bottom: auto; left: max(16px, calc(50% - var(--wrap) / 2 + 16px)); right: max(16px, calc(50% - var(--wrap) / 2 + 16px)); max-height: min(420px, 60vh); overflow-y: auto; background: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.16); text-shadow: none; text-transform: none; letter-spacing: 0; }
.site-tete .recherche-liste[hidden] { display: none; }
.site-tete .recherche-liste a, .site-tete nav.site-menu .recherche-liste a { display: flex; align-items: center; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--line); border-bottom: 0; color: var(--ink); font-size: 14px; font-weight: 400; letter-spacing: 0; text-decoration: none; text-transform: none; }
.site-tete .recherche-liste a:first-child { border-top: 0; }
.site-tete .recherche-liste a:hover, .site-tete .recherche-liste a.is-on { background: var(--gold-pale); color: var(--ink); }
.site-tete .recherche-image { flex: none; width: 56px; height: 42px; overflow: hidden; background: #ddd; }
.site-tete .recherche-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.site-tete .recherche-liste b { display: block; font: 500 14px/1.3 "Inter", system-ui, sans-serif; }
.site-tete .recherche-liste small { display: block; margin-top: 2px; color: var(--gold-deep); font: 500 10.5px/1.4 "Inter", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 900px) {
	/* Dans le menu du téléphone, la liste se déroule sous le champ, dans le menu. */
	.site-tete nav.site-menu .site-menu-recherche { flex-wrap: wrap; }
	.site-tete nav.site-menu .recherche-liste { position: static; flex: 0 0 100%; width: 100%; min-width: 0; max-height: 46vh; box-shadow: none; border-top: 1px solid var(--line); }
	/* Un nom long passe à la ligne au lieu de sortir de l'écran. */
	.site-tete nav.site-menu .recherche-liste a { white-space: normal; }
	.site-tete nav.site-menu .recherche-liste a > :last-child { min-width: 0; overflow-wrap: anywhere; }
}
