/* ==========================================================================
   Page d'accueil (v1.3.1) — mise en page « grandes photos » (classes nx-*)
   Chargée seulement sur l'accueil (FR et EN). Contenu : blocs natifs + codes courts
   [poc_diaporama] et [poc_pastille].
   ========================================================================== */
:root { --nx-or: var(--wp--preset--color--or); --nx-or-clair: var(--wp--preset--color--or-clair); --nx-or-fonce: var(--wp--preset--color--or-fonce); --nx-encre: var(--wp--preset--color--encre); --nx-ivoire: var(--wp--preset--color--ivoire); --nx-texte: var(--wp--preset--color--texte-fonce); }
.poc-accueil .poc-sections > .nx-section { margin-block: 0 !important; }
:where(.nx-section) > * { margin-block-start: 0; }

/* Boutons --------------------------------------------------------------- */
.nx-boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 32px 0 0 !important; }
.nx-boutons .wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 28px; border-radius: 0; font-family: var(--wp--preset--font-family--manrope); font-size: .8125rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.nx-btn-or .wp-block-button__link { background: var(--nx-or); color: var(--nx-encre); border: 1px solid var(--nx-or); }
.nx-btn-or .wp-block-button__link:hover { background: var(--nx-or-clair); border-color: var(--nx-or-clair); color: var(--nx-encre); }
.nx-btn-clair .wp-block-button__link { background: transparent; border: 1px solid rgba(244,239,230,.6); color: var(--nx-ivoire); }
.nx-btn-clair .wp-block-button__link:hover { border-color: var(--nx-or-clair); color: var(--nx-or-clair); }
.nx-btn-contour .wp-block-button__link { background: transparent; border: 1px solid var(--nx-or); color: var(--nx-texte); }
.nx-btn-contour .wp-block-button__link:hover { background: var(--nx-or); color: var(--nx-encre); }
.nx-images .nx-btn-contour .wp-block-button__link { color: var(--nx-ivoire); }

/* Titres de section avec filet doré */
.nx-h2 { margin: 0 !important; font-family: var(--wp--preset--font-family--bodoni); font-weight: 500; font-size: clamp(2rem, 4.2vw, 3.5rem) !important; line-height: 1.05; text-align: center; }
.nx-h2::before { display: none !important; }
.nx-h2::after { content: ""; display: block; width: 56px; height: 2px; margin: 22px auto 30px; background: var(--nx-or); }
.nx-h2 em { color: var(--nx-or-fonce); }

/* 1. Grande photo d'ouverture ------------------------------------------- */
.nx-hero { position: relative; min-height: calc(100vh - 96px); min-height: calc(100svh - 96px); display: grid; place-items: center; overflow: hidden; background: var(--nx-encre); color: var(--nx-ivoire); text-align: center; }
.nx-diaporama { position: absolute; inset: 0; margin: 0 !important; }
.nx-diapo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); animation: nx-fondu var(--nx-total, 24s) infinite; }
.nx-diapo:first-child { opacity: 1; animation-name: nx-fondu-premiere; }
@keyframes nx-fondu { 0% { opacity: 0; transform: scale(1.06); } 5% { opacity: 1; } 25% { opacity: 1; } 30% { opacity: 0; transform: scale(1); } 100% { opacity: 0; } }
@keyframes nx-fondu-premiere { 0% { opacity: 1; transform: scale(1.06); } 25% { opacity: 1; } 30% { opacity: 0; transform: scale(1); } 95% { opacity: 0; } 100% { opacity: 1; transform: scale(1.06); } }
.nx-hero-voile { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(22,14,30,.62) 0%, rgba(22,14,30,.4) 70%), linear-gradient(180deg, rgba(22,14,30,.35) 0%, rgba(22,14,30,.2) 45%, rgba(22,14,30,.9) 100%); }
.nx-hero-contenu { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto !important; padding: 80px 24px 120px; }
.nx-hero-contenu > * { margin-block: 0; }
.nx-hero-titre { margin: 0 !important; font-family: var(--wp--preset--font-family--bodoni); font-weight: 500; font-size: clamp(3rem, 9vw, 8.5rem) !important; line-height: .95; letter-spacing: -.01em; color: var(--nx-ivoire); text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.nx-hero-accroche { margin-top: 22px !important; font-family: var(--wp--preset--font-family--bodoni); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 2rem); color: var(--nx-or-clair); }
.nx-hero-infos { margin-top: 14px !important; font-size: clamp(.875rem, 1.2vw, 1rem); letter-spacing: .06em; color: rgba(244,239,230,.85); }
.nx-hero .nx-boutons { margin-top: 36px !important; }
.nx-pastille { position: absolute; z-index: 3; right: clamp(16px, 5vw, 72px); top: clamp(24px, 8vh, 80px); width: clamp(130px, 13vw, 180px); aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 50%; background: var(--nx-or); color: var(--nx-encre) !important; font-family: var(--wp--preset--font-family--bodoni); line-height: 1.1; text-align: center; text-decoration: none !important; transform: rotate(10deg); box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .3s; }
.nx-pastille:hover { transform: rotate(0) scale(1.05); }
.nx-pastille strong { font-size: clamp(2.25rem, 3.4vw, 3rem); font-weight: 500; line-height: .9; }
.nx-pastille strong sup { font-size: .4em; vertical-align: super; }
.nx-pastille-texte { font-style: italic; font-size: clamp(.875rem, 1.1vw, 1.0625rem); max-width: 8em; }
.nx-pastille-j { margin-top: 4px; padding: 3px 10px; border: 1px solid var(--nx-encre); font-family: var(--wp--preset--font-family--manrope); font-size: .75rem; font-weight: 700; letter-spacing: .14em; }
.nx-defiler-p { position: absolute; z-index: 3; bottom: 28px; left: 50%; margin: 0 0 0 -26px !important; }
.nx-defiler { position: relative; display: block; width: 52px; height: 52px; border-radius: 50%; background: var(--nx-or); }
.nx-defiler::after { content: ""; position: absolute; left: 18px; top: 15px; width: 14px; height: 14px; border-right: 2px solid var(--nx-encre); border-bottom: 2px solid var(--nx-encre); transform: rotate(45deg); }

/* 2. Introduction + piliers --------------------------------------------- */
.nx-intro, .nx-laureats, .nx-images { padding: clamp(72px, 9vw, 120px) clamp(16px, 4vw, 40px) !important; text-align: center; }
.nx-intro { background: var(--nx-ivoire); color: var(--nx-texte); }
.nx-intro > p { max-width: 860px; margin: 0 auto 0 !important; font-size: 1.125rem; line-height: 1.75; }
.nx-piliers { max-width: 1240px; margin: 72px auto 0 !important; gap: 0 !important; text-align: left; }
.nx-piliers > .wp-block-column { padding: 0 24px; border-left: 1px solid rgba(201,164,92,.35); }
.nx-piliers > .wp-block-column:first-child { border-left: 0; }
.nx-pilier-img { margin: 0 0 30px !important; box-shadow: 10px 12px 0 var(--nx-or); }
.nx-pilier-img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 25%; }
.nx-piliers h3 { margin: 0 0 10px !important; padding: 0 !important; font-family: var(--wp--preset--font-family--bodoni); font-size: 1.5rem !important; line-height: 1.15; }
.nx-piliers h3::before { display: none !important; }
.nx-piliers p { margin: 0 !important; font-size: .9375rem; line-height: 1.65; }

/* 3. Frise des lauréats ------------------------------------------------- */
.nx-laureats { background: #fff; color: var(--nx-texte); }
.nx-sous { max-width: 760px; margin: 0 auto 40px !important; font-size: 1.0625rem; }
.nx-frise { display: flex !important; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 28px 4px 36px; max-width: 1240px; margin: 0 auto 24px !important; text-align: left; }
.nx-annee { position: relative; flex: 0 0 min(340px, 80vw); scroll-snap-align: start; margin: 0 !important; background: var(--nx-ivoire); box-shadow: 0 12px 30px rgba(28,18,38,.12); transition: transform .25s; }
.nx-annee:hover { transform: translateY(-6px); }
.nx-annee > * { margin-block: 0 !important; }
.nx-badge-annee { position: absolute; z-index: 2; left: -10px; top: -18px; margin: 0 !important; padding: 14px 18px; background: var(--nx-encre); font-family: var(--wp--preset--font-family--bodoni); font-size: 1.5rem; line-height: 1; }
.nx-badge-annee a { color: var(--nx-or-clair) !important; text-decoration: none !important; }
.nx-annee-img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
.nx-annee ul { list-style: none !important; margin: 0 !important; padding: 22px 24px 26px !important; font-size: .9375rem; line-height: 1.5; }
.nx-annee ul > li { padding-left: 0 !important; }
.nx-annee ul > li::before { display: none !important; }
.nx-annee li + li { margin-top: 8px !important; }
.nx-annee strong { display: block; font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--nx-or-fonce) !important; }

/* 4. Jury / Candidater -------------------------------------------------- */
.nx-duo { display: grid !important; grid-template-columns: 1fr 1fr; gap: 48px; padding: clamp(72px, 9vw, 112px) clamp(16px, 5vw, 72px) !important; background: var(--nx-ivoire); }
.nx-duo > * { margin: 0 !important; }
.nx-duo-carte { background: #fff; box-shadow: 0 14px 34px rgba(28,18,38,.1); align-items: stretch !important; }
.nx-duo-carte .wp-block-media-text__media { align-self: stretch; height: 100%; min-height: 320px; }
.nx-duo-carte .wp-block-media-text__media img { width: 100%; height: 100%; object-fit: cover; }
.nx-duo-carte .wp-block-media-text__content { padding: clamp(28px, 3.5vw, 48px) !important; color: var(--nx-texte); }
.nx-duo-carte h3 { margin: 0 0 12px !important; padding: 0 !important; font-family: var(--wp--preset--font-family--bodoni); font-size: clamp(1.75rem, 2.8vw, 2.5rem) !important; line-height: 1.05; }
.nx-duo-carte h3::before { display: none !important; }
.nx-duo-chapo { font-weight: 700; margin: 0 0 12px !important; }
.nx-duo-carte p { line-height: 1.65; }
.nx-duo-carte .nx-boutons { justify-content: flex-start; margin-top: 20px !important; }

/* 5. Mosaïque photo ------------------------------------------------------ */
.nx-images { background: var(--nx-encre); color: var(--nx-ivoire); }
.nx-images .nx-h2 { color: var(--nx-ivoire); }
.nx-images .nx-h2 em { color: var(--nx-or-clair); }
.nx-mosaique.wp-block-gallery { display: grid !important; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 10px !important; max-width: 1240px; margin: 0 auto 12px !important; }
.nx-mosaique.wp-block-gallery > figure.wp-block-image { width: auto !important; margin: 0 !important; }
.nx-mosaique.wp-block-gallery > figure.wp-block-image img { width: 100% !important; height: 100% !important; object-fit: cover; }
.nx-mosaique > figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.nx-mosaique > figure:nth-child(2), .nx-mosaique > figure:nth-child(5) { grid-row: span 2; }

/* Petits écrans --------------------------------------------------------- */
@media (max-width: 960px) {
	.nx-piliers { flex-wrap: wrap !important; row-gap: 56px !important; }
	.nx-piliers > .wp-block-column { flex-basis: 50% !important; }
	.nx-piliers > .wp-block-column:nth-child(3) { border-left: 0; }
	.nx-duo { grid-template-columns: 1fr; }
	.nx-mosaique.wp-block-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
}
@media (max-width: 600px) {
	.nx-piliers > .wp-block-column { flex-basis: 100% !important; border-left: 0; padding: 0; }
	.nx-duo-carte .wp-block-media-text__media { min-height: 220px; }
	.nx-pastille { top: 16px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) { .nx-diapo { animation: none; } .nx-diapo:first-child { opacity: 1; transform: none; } }
