/* Unité de taille du concours : indépendante du thème. Certains thèmes (TheGem…) réduisent la taille racine
   (html { font-size: 10px }), ce qui rapetissait tous les textes exprimés en rem. */
:root { --agcn-u: 16px; }

/* Audacieuse – Concours photo : front-office.
   Toutes les règles sont préfixées .agcn pour éviter les collisions avec le thème. */

.agcn {
	--agcn-ink: #111111;
	--agcn-text: #2a2a2a;
	--agcn-muted: #6e6e6b;
	--agcn-line: #dcdbd7;
	--agcn-soft: #f5f4f1;
	--agcn-paper: #ffffff;
	--agcn-glow: rgba(17, 17, 17, .55);
	--agcn-gap: clamp(20px, 3vw, 44px);
	--agcn-ease: cubic-bezier(.22, .61, .36, 1);
	color: var(--agcn-text);
	font: inherit;
	line-height: 1.6;
	position: relative;
	box-sizing: border-box;
}
.agcn *, .agcn *::before, .agcn *::after { box-sizing: inherit; }
.agcn img { max-width: 100%; height: auto; display: block; }
.agcn p { margin: 0 0 1em; }

.agcn-hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

/* Intro & textes */
.agcn-intro { max-width: 760px; margin: 0 auto calc(var(--agcn-gap) * 1.2); text-align: center; }
.agcn-intro p { color: var(--agcn-text); }
.agcn-closing { font-size: calc(.78 * var(--agcn-u, 16px)); letter-spacing: .16em; text-transform: uppercase; color: var(--agcn-muted); margin: 1.4em 0 .6em; }
.agcn-closing::before, .agcn-closing::after { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--agcn-line); vertical-align: middle; margin: 0 14px; }
.agcn-textlink { color: var(--agcn-ink); text-decoration: none; border-bottom: 1px solid var(--agcn-line); padding-bottom: 1px; font-size: calc(.9 * var(--agcn-u, 16px)); transition: border-color .3s var(--agcn-ease); }
.agcn-textlink:hover, .agcn-textlink:focus-visible { border-color: var(--agcn-ink); }
.agcn-empty { text-align: center; color: var(--agcn-muted); font-style: italic; padding: 3em 0; }
.agcn-title { font-weight: 400; letter-spacing: .02em; margin: 0 0 .8em; text-align: center; }
.agcn-lead { text-align: center; max-width: 680px; margin: 0 auto 2em; }

.agcn-notice { border: 1px solid var(--agcn-line); border-left: 2px solid var(--agcn-ink); background: var(--agcn-paper); padding: 16px 22px; margin: 0 auto var(--agcn-gap); max-width: 760px; font-size: calc(.95 * var(--agcn-u, 16px)); }
.agcn-notice--error { border-left-color: #8a3b2e; }

/* Grille */
.agcn-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--agcn-gap); grid-template-columns: repeat(var(--agcn-cols, 3), minmax(0, 1fr)); align-items: start; }
@media (max-width: 1024px) { .agcn-grid { grid-template-columns: repeat(min(var(--agcn-cols, 3), 2), minmax(0, 1fr)); } }
@media (max-width: 600px) { .agcn-grid { grid-template-columns: minmax(0, 1fr); } }

.agcn-card { margin: 0; padding: 0; background: transparent; scroll-margin-top: 120px; }
.agcn-figure { margin: 0; background: var(--agcn-soft); position: relative; outline: 1px solid transparent; outline-offset: 6px; transition: outline-color .6s var(--agcn-ease); }
.agcn-figure .agcn-img { width: 100%; height: auto; }
.agcn-body { padding: 16px 0 0; }
.agcn-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--agcn-line); padding-bottom: 12px; }
.agcn-name { margin: 0; font-size: calc(.95 * var(--agcn-u, 16px)); letter-spacing: .03em; color: var(--agcn-ink); }
.agcn-count { margin: 0; white-space: nowrap; font-size: calc(.8 * var(--agcn-u, 16px)); letter-spacing: .12em; text-transform: uppercase; color: var(--agcn-muted); }
.agcn-count__n { color: var(--agcn-ink); font-variant-numeric: tabular-nums; font-size: calc(1 * var(--agcn-u, 16px)); letter-spacing: .02em; }
.agcn-actions { display: flex; gap: 10px; margin: 14px 0 10px; flex-wrap: wrap; }
.agcn-card__link { display: inline-block; margin-top: 4px; font-size: calc(.82 * var(--agcn-u, 16px)); }

/* Boutons */
.agcn-btn { -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border: 1px solid var(--agcn-ink); background: var(--agcn-ink); color: #fff; font: inherit; font-size: calc(.74 * var(--agcn-u, 16px)); letter-spacing: .18em; text-transform: uppercase; line-height: 1.2; cursor: pointer; border-radius: 0; text-decoration: none; transition: background-color .3s var(--agcn-ease), color .3s var(--agcn-ease), border-color .3s var(--agcn-ease), opacity .3s; }
.agcn-btn:hover, .agcn-btn:focus-visible { background: #fff; color: var(--agcn-ink); }
.agcn-btn:focus-visible, .agcn-share__btn:focus-visible, .agcn-choice:focus-visible, .agcn-switch__item:focus-visible { outline: 2px solid var(--agcn-ink); outline-offset: 3px; }
.agcn-btn--ghost { background: transparent; color: var(--agcn-ink); border-color: var(--agcn-line); }
.agcn-btn--ghost:hover, .agcn-btn--ghost:focus-visible { border-color: var(--agcn-ink); background: transparent; }
.agcn-btn--vote { flex: 1 1 auto; }
.agcn-btn--primary { min-width: 260px; }
.agcn-btn[disabled], .agcn-btn[aria-disabled="true"] { cursor: default; }
.agcn-btn.is-busy { opacity: .55; pointer-events: none; }

/* États de vote */
.agcn-card.is-voted .agcn-btn--vote { background: #fff; color: var(--agcn-ink); border-color: var(--agcn-ink); }
.agcn-card.is-voted .agcn-btn--vote .agcn-btn__label::before { content: ""; display: inline-block; width: 9px; height: 5px; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(-45deg) translateY(-3px); margin-right: 10px; }
.agcn-card.is-pending .agcn-btn--vote { background: #fff; color: var(--agcn-muted); border-color: var(--agcn-line); border-style: dashed; }
.agcn-gallery.has-voted .agcn-card:not(.is-voted):not(.is-pending) .agcn-btn--vote,
.agcn-gallery.is-closed .agcn-btn--vote { background: transparent; color: var(--agcn-muted); border-color: var(--agcn-line); }
.agcn-card.is-refused .agcn-btn--vote { border-color: #8a3b2e; }
.agcn-card.is-mine .agcn-btn--ghost { border-color: var(--agcn-ink); }

/* Confirmation lumineuse */
@keyframes agcn-glow {
	0% { box-shadow: 0 0 0 0 var(--agcn-glow); outline-color: var(--agcn-ink); }
	55% { box-shadow: 0 0 0 10px rgba(17, 17, 17, 0); outline-color: var(--agcn-ink); }
	100% { box-shadow: 0 0 0 0 rgba(17, 17, 17, 0); outline-color: transparent; }
}
.agcn-card.is-glow .agcn-figure { animation: agcn-glow 1.6s var(--agcn-ease) 1; }
.agcn-card.is-focus .agcn-figure { outline-color: var(--agcn-ink); }

/* Message discret */
.agcn-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px); max-width: min(92vw, 560px); background: var(--agcn-ink); color: #fff; padding: 14px 22px; font-size: calc(.9 * var(--agcn-u, 16px)); line-height: 1.5; z-index: 99999; opacity: 0; transition: opacity .35s var(--agcn-ease), transform .35s var(--agcn-ease); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.agcn-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.agcn-more { text-align: center; margin-top: calc(var(--agcn-gap) * 1.2); }

/* Fenêtre de partage */
.agcn-dialog { border: 0; padding: 0; max-width: min(92vw, 440px); width: 100%; background: var(--agcn-paper); color: var(--agcn-text); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.agcn-dialog::backdrop { background: rgba(17, 17, 17, .55); }
.agcn-dialog__inner { padding: 34px 30px 26px; }
.agcn-dialog__title { font-size: calc(.78 * var(--agcn-u, 16px)); letter-spacing: .2em; text-transform: uppercase; color: var(--agcn-ink); margin: 0 0 .8em; text-align: center; }
.agcn-dialog__hint { font-size: calc(.88 * var(--agcn-u, 16px)); color: var(--agcn-muted); text-align: center; margin: 0 0 1.4em; }
.agcn-share { display: grid; gap: 8px; }
.agcn-share__btn { display: block; width: 100%; padding: 13px 16px; border: 1px solid var(--agcn-line); background: #fff; color: var(--agcn-ink); text-align: center; font: inherit; font-size: calc(.78 * var(--agcn-u, 16px)); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: border-color .3s var(--agcn-ease); }
.agcn-share__btn:hover { border-color: var(--agcn-ink); color: var(--agcn-ink); }
.agcn-share__btn[hidden] { display: none; }
.agcn-dialog__close { display: block; margin: 18px auto 0; background: none; border: 0; color: var(--agcn-muted); font: inherit; font-size: calc(.78 * var(--agcn-u, 16px)); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.agcn-dialog__close:hover { color: var(--agcn-ink); }

/* Confirmation */
.agcn-confirm { max-width: 980px; margin: 0 auto; }
.agcn-confirm__welcome { max-width: 680px; margin: 0 auto 2em; text-align: center; }
.agcn-confirm__photo { margin: 0 auto 2em; max-width: 900px; background: var(--agcn-soft); }
.agcn-confirm__photo .agcn-img { width: 100%; }
.agcn-choices { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--agcn-gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .agcn-choices { grid-template-columns: minmax(0, 1fr); } }
.agcn-choice { display: block; text-decoration: none; color: var(--agcn-ink); }
.agcn-choice .agcn-img { transition: opacity .4s var(--agcn-ease); }
.agcn-choice:hover .agcn-img { opacity: .88; }
.agcn-choice__label { display: block; text-align: center; margin-top: 14px; font-size: calc(.74 * var(--agcn-u, 16px)); letter-spacing: .18em; text-transform: uppercase; }
.agcn-switch { text-align: center; margin: 0 0 2.6em; }
.agcn-switch__label { font-size: calc(.85 * var(--agcn-u, 16px)); color: var(--agcn-muted); }
.agcn-switch__list { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 12px; }
.agcn-switch__item { display: block; width: 88px; opacity: .55; outline: 1px solid transparent; outline-offset: 4px; transition: opacity .3s, outline-color .3s; }
.agcn-switch__item img { width: 88px; height: 88px; object-fit: cover; }
.agcn-switch__item:hover, .agcn-switch__item.is-current { opacity: 1; }
.agcn-switch__item.is-current { outline-color: var(--agcn-ink); }
.agcn-confirm__info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--agcn-gap); border-top: 1px solid var(--agcn-line); border-bottom: 1px solid var(--agcn-line); padding: 2em 0; margin-bottom: 2.4em; }
@media (max-width: 760px) { .agcn-confirm__info { grid-template-columns: minmax(0, 1fr); } }
.agcn-confirm__block h3 { font-size: calc(.74 * var(--agcn-u, 16px)); letter-spacing: .18em; text-transform: uppercase; font-weight: 400; color: var(--agcn-ink); margin: 0 0 .9em; }
.agcn-confirm__block p, .agcn-confirm__block li { font-size: calc(.92 * var(--agcn-u, 16px)); }
.agcn-confirm__block ul { margin: 0; padding-left: 1.1em; }
.agcn-confirm__block .agcn-closing { text-align: left; }
.agcn-confirm__block .agcn-closing { letter-spacing: .1em; }
.agcn-confirm__block .agcn-closing::before, .agcn-confirm__block .agcn-closing::after { display: none; }
.agcn-form { max-width: 620px; margin: 0 auto; text-align: center; }
.agcn-check { display: flex; gap: 12px; align-items: flex-start; text-align: left; margin: 0 0 14px; font-size: calc(.92 * var(--agcn-u, 16px)); cursor: pointer; }
.agcn-check input { margin-top: .3em; accent-color: var(--agcn-ink); flex: 0 0 auto; }
.agcn-form__note { font-size: calc(.82 * var(--agcn-u, 16px)); color: var(--agcn-muted); margin: 1.4em 0; }
.agcn-privacy, .agcn-rules__privacy { max-width: 680px; margin: 2.4em auto 0; font-size: calc(.78 * var(--agcn-u, 16px)); color: var(--agcn-muted); text-align: center; }

/* Classement */
.agcn-ranking__list { list-style: none; margin: 0; padding: 0; max-width: 640px; margin-inline: auto; }
.agcn-ranking__item { display: grid; grid-template-columns: 36px 64px 1fr auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--agcn-line); }
.agcn-ranking__pos { font-variant-numeric: tabular-nums; color: var(--agcn-muted); }
.agcn-ranking__thumb img { width: 64px; height: 64px; object-fit: cover; }
.agcn-ranking__votes { font-size: calc(.8 * var(--agcn-u, 16px)); letter-spacing: .1em; text-transform: uppercase; color: var(--agcn-muted); }

/* Gagnant */
.agcn-winner { max-width: 980px; margin: 0 auto; text-align: center; }
.agcn-winner__figure { margin: 2em 0; }
.agcn-winner__figure figcaption { margin-top: 18px; }
.agcn-winner__label { display: block; font-size: calc(.74 * var(--agcn-u, 16px)); letter-spacing: .2em; text-transform: uppercase; color: var(--agcn-muted); }
.agcn-winner__name { display: block; font-size: calc(1.3 * var(--agcn-u, 16px)); margin-top: 6px; color: var(--agcn-ink); }
.agcn-winner__prize { color: var(--agcn-muted); font-style: italic; }

.agcn-rules { max-width: 760px; margin: 0 auto; }
.agcn-rules h3 { font-size: calc(.8 * var(--agcn-u, 16px)); letter-spacing: .16em; text-transform: uppercase; font-weight: 400; margin: 2em 0 .7em; color: var(--agcn-ink); }

/* Navigation par étapes */
.agcn-steps { margin: 0 auto calc(var(--agcn-gap) * 1.1); max-width: 1100px; container-type: inline-size; }
.agcn-steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--agcn-line); border-bottom: 1px solid var(--agcn-line); }
.agcn-steps__item { margin: 0; position: relative; }
.agcn-steps__item + .agcn-steps__item::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--agcn-line); }
.agcn-steps__link { display: flex; align-items: center; gap: 16px; padding: 22px 24px; color: var(--agcn-muted); text-decoration: none; height: 100%; transition: color .3s var(--agcn-ease), background-color .3s var(--agcn-ease); }
a.agcn-steps__link:hover, a.agcn-steps__link:focus-visible { color: var(--agcn-ink); background: var(--agcn-soft); }
a.agcn-steps__link:focus-visible { outline: 2px solid var(--agcn-ink); outline-offset: -2px; }
.agcn-steps__num { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-size: calc(1.15 * var(--agcn-u, 16px)); line-height: 1; font-variant-numeric: tabular-nums; }
.agcn-steps__label { font-size: calc(.95 * var(--agcn-u, 16px)); letter-spacing: .12em; text-transform: uppercase; line-height: 1.45; min-width: 0; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.agcn-steps__hint { display: block; margin-top: 4px; font-size: calc(.85 * var(--agcn-u, 16px)); letter-spacing: .04em; text-transform: none; font-style: italic; color: var(--agcn-muted); }
.agcn-steps__item.is-current .agcn-steps__link { color: var(--agcn-ink); box-shadow: inset 0 -2px 0 var(--agcn-ink); }
.agcn-steps__item.is-current .agcn-steps__num { background: var(--agcn-ink); border-color: var(--agcn-ink); color: #fff; }
.agcn-steps__item.is-locked .agcn-steps__link { cursor: not-allowed; opacity: .7; }
@media (max-width: 860px) {
	.agcn-steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.agcn-steps__item:nth-child(3)::before { display: none; }
	.agcn-steps__item:nth-child(n+3) { border-top: 1px solid var(--agcn-line); }
}
/* Colonne de contenu étroite (selon le thème) : 2 × 2 plutôt que 4 étapes serrées. */
@container (max-width: 900px) {
	.agcn-steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.agcn-steps__item:nth-child(3)::before { display: none; }
	.agcn-steps__item:nth-child(n+3) { border-top: 1px solid var(--agcn-line); }
}
@media (max-width: 480px) {
	.agcn-steps__link { padding: 16px 12px; gap: 10px; }
	.agcn-steps__num { width: 36px; height: 36px; font-size: calc(1 * var(--agcn-u, 16px)); }
	.agcn-steps__label { font-size: calc(.8 * var(--agcn-u, 16px)); letter-spacing: .08em; }
	.agcn-steps__hint { font-size: calc(.75 * var(--agcn-u, 16px)); }
}

/* Remerciement des votants : code de réduction */
.agcn-gift { max-width: 760px; margin: 0 auto var(--agcn-gap); padding: 26px 30px; border: 1px solid var(--agcn-ink); text-align: center; background: var(--agcn-paper); }
.agcn-gift__title { font-size: calc(.78 * var(--agcn-u, 16px)); letter-spacing: .2em; text-transform: uppercase; color: var(--agcn-ink); margin: 0 0 .7em; }
.agcn-gift__text { margin: 0 0 1.1em; }
.agcn-gift__inline { color: var(--agcn-ink); letter-spacing: .08em; font-weight: 600; }
.agcn-gift__code { display: inline-flex; align-items: stretch; border: 1px solid var(--agcn-line); }
.agcn-gift__code[hidden] { display: none; }
.agcn-gift__value { display: inline-flex; align-items: center; padding: 0 22px; font-size: calc(1.05 * var(--agcn-u, 16px)); letter-spacing: .24em; color: var(--agcn-ink); font-variant-numeric: tabular-nums; border-right: 1px solid var(--agcn-line); }
.agcn-gift__code .agcn-btn { border: 0; }
.agcn-dialog--gift .agcn-dialog__inner { text-align: center; }
.agcn-dialog--gift .agcn-gift__code { margin: 4px 0 18px; }
.agcn-dialog__actions { margin: 0 0 4px; }

/* Étape 3 verrouillée */
.agcn-locked { max-width: 640px; margin: 0 auto; text-align: center; padding: calc(var(--agcn-gap) * 1.2) 0; }
.agcn-locked__icon { display: inline-flex; width: 64px; height: 64px; border: 1px solid var(--agcn-line); border-radius: 50%; align-items: center; justify-content: center; color: var(--agcn-ink); margin-bottom: 18px; }

/* Résultats */
.agcn-grid--results { counter-reset: none; }
.agcn-rank { position: absolute; top: 0; left: 0; min-width: 46px; height: 46px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--agcn-paper); color: var(--agcn-ink); font-size: calc(1.05 * var(--agcn-u, 16px)); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.agcn-card.is-podium .agcn-rank { background: var(--agcn-ink); color: #fff; }
.agcn-admin-note { max-width: 760px; margin: 0 auto 18px; padding: 8px 14px; font-size: calc(.8 * var(--agcn-u, 16px)); color: var(--agcn-muted); border: 1px dashed var(--agcn-line); text-align: center; }

/* Cadre du gagnant */
.agcn-winner { max-width: 1100px; }
.agcn-frame { display: inline-block; max-width: 100%; margin: 1.6em auto 1.4em; filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .16)) drop-shadow(0 4px 8px rgba(0, 0, 0, .10)); }
.agcn-frame__moulding { padding: clamp(10px, 1.6vw, 18px); background: linear-gradient(135deg, #3a3a3a 0%, #121212 38%, #1d1d1d 62%, #050505 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 0 0 3px rgba(0, 0, 0, .6); }
.agcn-frame__mat { background: #fbfaf7; padding: clamp(16px, 4vw, 54px); box-shadow: inset 0 3px 8px rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(0, 0, 0, .06); line-height: 0; }
.agcn-frame__photo { display: block; width: auto; height: auto; max-width: 100%; max-height: 72vh; margin: 0 auto; }
.agcn-frame--empty .agcn-frame__mat { width: min(380px, 70vw); aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; line-height: 1; background: radial-gradient(ellipse at 50% 38%, #fefdfb 0%, #f2f0eb 100%); }
.agcn-frame__question { font-family: Georgia, "Times New Roman", serif; font-weight: 300; font-size: clamp(110px, 18vw, 210px); color: #cfcbc2; line-height: 1; animation: agcn-breathe 4.5s ease-in-out infinite; }
@keyframes agcn-breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.agcn-winner.is-revealed .agcn-frame { animation: agcn-reveal 1.4s var(--agcn-ease) 1 both; }
@keyframes agcn-reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* Textes de la page gagnant : pleine largeur du conteneur, centrés (indépendamment des marges du thème). */
.agcn.agcn-winner p.agcn-lead,
.agcn.agcn-winner .agcn-winner__intro,
.agcn.agcn-winner .agcn-winner__prize,
.agcn.agcn-winner .agcn-winner__thanks { box-sizing: border-box; width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; text-align: center; }
.agcn.agcn-winner p.agcn-lead { margin-top: 0; margin-bottom: 1.6em; }
.agcn.agcn-winner .agcn-winner__intro p, .agcn.agcn-winner .agcn-winner__thanks p { text-align: center; }
.agcn-winner__thanks { max-width: 680px; margin: 2.2em auto 0; padding-top: 1.6em; border-top: 1px solid var(--agcn-line); }
.agcn .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Centrage robuste : les thèmes (TheGem, Elementor…) imposent souvent leurs propres marges et alignements
   aux paragraphes et aux blocs ; ces règles recentrent tous les éléments du concours quel que soit le thème. */
.agcn-gallery, .agcn-single, .agcn-results, .agcn-confirm, .agcn-locked, .agcn-winner, .agcn-rules, .agcn-ranking, .agcn-steps {
	box-sizing: border-box; width: 100%; margin-left: auto !important; margin-right: auto !important;
}
.agcn-confirm, .agcn-locked, .agcn-winner { text-align: center !important; }
.agcn .agcn-frame { display: table; margin-left: auto !important; margin-right: auto !important; }
.agcn .agcn-title { text-align: center !important; margin-left: auto !important; margin-right: auto !important; }
.agcn .agcn-lead, .agcn .agcn-intro, .agcn .agcn-intro p, .agcn .agcn-confirm__welcome, .agcn .agcn-confirm__welcome p,
.agcn .agcn-notice, .agcn .agcn-gift, .agcn .agcn-admin-note, .agcn .agcn-form, .agcn .agcn-privacy, .agcn .agcn-privacy p,
.agcn .agcn-rules__privacy, .agcn .agcn-switch, .agcn .agcn-more, .agcn .agcn-empty, .agcn .agcn-closing, .agcn .agcn-confirm__photo,
.agcn .agcn-winner__figure, .agcn .agcn-winner__intro, .agcn .agcn-winner__prize, .agcn .agcn-winner__thanks {
	margin-left: auto !important; margin-right: auto !important; text-align: center !important;
}
.agcn .agcn-lead { font-size: calc(1.12 * var(--agcn-u, 16px)); line-height: 1.7; }
.agcn-confirm p:has(> .agcn-btn), .agcn-locked p:has(> .agcn-btn), .agcn-winner p:has(> .agcn-btn), .agcn-dialog__actions { text-align: center !important; margin-left: auto !important; margin-right: auto !important; }
.agcn-confirm > p > .agcn-btn, .agcn-locked > p > .agcn-btn { margin: 0 auto; }
.agcn .agcn-grid { width: 100%; margin-left: 0 !important; margin-right: 0 !important; }
.agcn .agcn-confirm__info { text-align: left; }
.agcn .agcn-rules h3, .agcn .agcn-rules p, .agcn .agcn-rules ul { text-align: left; }
.agcn .agcn-admin-note { font-size: calc(.85 * var(--agcn-u, 16px)); max-width: 760px; }

/* Libellés un peu plus lisibles */
.agcn-btn { font-size: calc(.8 * var(--agcn-u, 16px)); }
.agcn-closing { font-size: calc(.85 * var(--agcn-u, 16px)); }
.agcn-count { font-size: calc(.85 * var(--agcn-u, 16px)); }
.agcn-gift__title, .agcn-dialog__title { font-size: calc(.85 * var(--agcn-u, 16px)); }

/* ------------------------------------------------------------------
   Typographie : tailles lisibles, indépendantes des tailles imposées par le thème
   ------------------------------------------------------------------ */
.agcn { font-size: calc(1.0625 * var(--agcn-u, 16px)); line-height: 1.65; }
.agcn p, .agcn li { font-size: calc(1.0625 * var(--agcn-u, 16px)); line-height: 1.65; }
.agcn .agcn-lead, .agcn .agcn-intro p, .agcn .agcn-confirm__welcome p { font-size: calc(1.2 * var(--agcn-u, 16px)); line-height: 1.7; }
.agcn .agcn-title { font-size: clamp(calc(1.6 * var(--agcn-u, 16px)), 2.6vw, calc(2.2 * var(--agcn-u, 16px))); line-height: 1.25; }
.agcn .agcn-closing, .agcn p.agcn-closing, .agcn .agcn-intro p.agcn-closing { font-size: calc(.95 * var(--agcn-u, 16px)); letter-spacing: .14em; line-height: 1.5; }
.agcn .agcn-textlink { font-size: calc(1 * var(--agcn-u, 16px)); }
.agcn .agcn-notice { font-size: calc(1.1 * var(--agcn-u, 16px)); }
.agcn .agcn-name { font-size: calc(1.15 * var(--agcn-u, 16px)); }
.agcn .agcn-count { font-size: calc(.95 * var(--agcn-u, 16px)); }
.agcn .agcn-count__n { font-size: calc(1.25 * var(--agcn-u, 16px)); }
.agcn .agcn-btn { font-size: calc(.92 * var(--agcn-u, 16px)); letter-spacing: .14em; min-height: 52px; padding: 12px 22px; }
.agcn-toast { font-size: calc(1.05 * var(--agcn-u, 16px)); }
.agcn-dialog .agcn-dialog__title { font-size: calc(1 * var(--agcn-u, 16px)); }
.agcn-dialog .agcn-dialog__hint { font-size: calc(1.1 * var(--agcn-u, 16px)); line-height: 1.6; }
.agcn-dialog .agcn-share__btn { font-size: calc(.95 * var(--agcn-u, 16px)); padding: 15px 16px; }
.agcn-dialog .agcn-dialog__close { font-size: calc(.92 * var(--agcn-u, 16px)); }
.agcn .agcn-choice__label { font-size: calc(.95 * var(--agcn-u, 16px)); }
.agcn .agcn-switch__label { font-size: calc(1.05 * var(--agcn-u, 16px)); }
.agcn .agcn-switch__item, .agcn .agcn-switch__item img { width: 120px; }
.agcn .agcn-switch__item img { height: 120px; }
.agcn .agcn-confirm__block h3 { font-size: calc(1 * var(--agcn-u, 16px)); letter-spacing: .14em; }
.agcn .agcn-confirm__block p, .agcn .agcn-confirm__block li { font-size: calc(1.1 * var(--agcn-u, 16px)); line-height: 1.65; }
.agcn .agcn-confirm__block .agcn-closing { text-align: left !important; margin-left: 0 !important; margin-right: 0 !important; font-size: calc(.9 * var(--agcn-u, 16px)); margin-top: 1em; }
.agcn .agcn-check { font-size: calc(1.1 * var(--agcn-u, 16px)); }
.agcn .agcn-check input { width: 20px; height: 20px; }
.agcn .agcn-form__note { font-size: calc(1 * var(--agcn-u, 16px)); }
.agcn .agcn-privacy, .agcn .agcn-privacy p, .agcn .agcn-rules__privacy, .agcn .agcn-rules__privacy p { font-size: calc(.95 * var(--agcn-u, 16px)); line-height: 1.6; }
.agcn .agcn-ranking__votes { font-size: calc(.95 * var(--agcn-u, 16px)); }
.agcn .agcn-winner__label { font-size: calc(.95 * var(--agcn-u, 16px)); }
.agcn .agcn-winner__name { font-size: calc(1.7 * var(--agcn-u, 16px)); }
.agcn .agcn-winner__prize { font-size: calc(1.15 * var(--agcn-u, 16px)); }
.agcn .agcn-rules h3 { font-size: calc(1.05 * var(--agcn-u, 16px)); }
.agcn .agcn-rules p, .agcn .agcn-rules li { font-size: calc(1.1 * var(--agcn-u, 16px)); }
.agcn-steps .agcn-steps__label { font-size: calc(.95 * var(--agcn-u, 16px)); }
.agcn-steps .agcn-steps__num { font-size: calc(1.25 * var(--agcn-u, 16px)); }
.agcn-steps .agcn-steps__hint { font-size: calc(.92 * var(--agcn-u, 16px)); }
.agcn .agcn-gift__title { font-size: calc(1 * var(--agcn-u, 16px)); }
.agcn .agcn-gift__text { font-size: calc(1.15 * var(--agcn-u, 16px)); }
.agcn .agcn-gift__value { font-size: calc(1.3 * var(--agcn-u, 16px)); }
.agcn .agcn-rank { font-size: calc(1.2 * var(--agcn-u, 16px)); min-width: 52px; height: 52px; }
.agcn .agcn-admin-note { font-size: calc(.92 * var(--agcn-u, 16px)); }
@media (max-width: 480px) {
	.agcn-steps .agcn-steps__label { font-size: calc(.85 * var(--agcn-u, 16px)); }
	.agcn-steps .agcn-steps__num { font-size: calc(1.05 * var(--agcn-u, 16px)); }
	.agcn-steps .agcn-steps__hint { font-size: calc(.8 * var(--agcn-u, 16px)); }
	.agcn .agcn-btn { font-size: calc(.85 * var(--agcn-u, 16px)); letter-spacing: .1em; }
}

/* Boutons des cartes : vote et partage côte à côte (largeur égale), prestation sur toute la largeur. */
.agcn .agcn-actions { display: flex; gap: 10px; margin: 16px 0 10px; }
.agcn .agcn-actions .agcn-btn { flex: 1 1 0; min-width: 0; }
.agcn .agcn-btn { gap: 10px; }
.agcn .agcn-btn--block { display: flex; width: 100%; box-sizing: border-box; margin-top: 0; }
.agcn .agcn-card__link:hover, .agcn .agcn-card__link:focus-visible { border-color: var(--agcn-ink); color: var(--agcn-ink); }
.agcn-ico { flex: 0 0 auto; width: 20px; height: 20px; }
.agcn-card.is-voted .agcn-btn--vote .agcn-ico { display: none; }
@media (max-width: 380px) { .agcn .agcn-actions { flex-direction: column; } }

/* Page gagnant : décor festif (cotillons, rubans sous les étapes) */
.agcn-stage { position: relative; isolation: isolate; overflow-x: clip; }
.agcn-stage, .agcn-confetti { --agcn-gold: #c4a265; --agcn-gold-pale: #ead9b0; --agcn-wine: #6e1f2a; }
.agcn-stage > .agcn-steps, .agcn-stage > .agcn-winner { position: relative; z-index: 1; }
.agcn-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.agcn-confetti__fall { position: absolute; top: 0; left: var(--x); height: 100%; width: 1px; transform: translateY(-100%); animation: agcn-fall var(--t) linear var(--d) infinite; will-change: transform; }
.agcn-confetti__piece { position: absolute; bottom: 0; left: 0; display: block; width: var(--s); height: calc(var(--s) * .55); animation: agcn-flutter var(--w) ease-in-out infinite alternate; opacity: .92; }
.agcn-confetti__piece.is-strip { width: calc(var(--s) * .35); height: calc(var(--s) * 1.5); border-radius: 1px; }
.agcn-confetti__piece.is-dot { width: calc(var(--s) * .7); height: calc(var(--s) * .7); border-radius: 50%; }
.agcn-confetti__piece.is-gold { background: linear-gradient(135deg, #e3c88e, var(--agcn-gold) 55%, #9c7a3e); }
.agcn-confetti__piece.is-pale { background: var(--agcn-gold-pale); }
.agcn-confetti__piece.is-ink { background: #151515; }
.agcn-confetti__piece.is-ivory { background: #fbf7ee; box-shadow: 0 0 0 1px rgba(160, 130, 80, .35); }
.agcn-confetti__piece.is-wine { background: var(--agcn-wine); }
/* Pluie de cotillons d'un instant (confirmation, vote) : sur tout l'écran, une seule chute. */
.agcn-confetti.agcn-confetti--screen { position: fixed; inset: 0; z-index: 2147483000; }
.agcn-confetti--screen .agcn-confetti__fall { animation-iteration-count: 1; animation-fill-mode: backwards; animation-timing-function: cubic-bezier(.35, .1, .6, 1); }
@keyframes agcn-fall { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes agcn-flutter {
	0% { transform: translate3d(calc(var(--dx) * -.5), 0, 0) rotateX(0deg) rotateZ(-25deg); }
	50% { transform: translate3d(0, 0, 0) rotateX(180deg) rotateZ(10deg); }
	100% { transform: translate3d(calc(var(--dx) * .5), 0, 0) rotateX(360deg) rotateZ(35deg); }
}

/* Rubans qui se déroulent sous les quatre cases */
.agcn-steps { transition: margin-bottom .9s var(--agcn-ease, ease); }
.agcn-steps:not(.is-festive) .agcn-ribbon { display: none; }
.agcn-steps.is-festive { overflow: visible; margin-bottom: clamp(70px, 9vw, 110px) !important; }
.agcn-steps.is-festive .agcn-steps__list { overflow: visible; }
.agcn-steps.is-festive .agcn-steps__item.is-current .agcn-steps__num { background: var(--agcn-ink); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--agcn-gold, #c4a265); }
.agcn-ribbon { position: absolute; top: 100%; width: 40px; margin-left: -20px; margin-top: -1px; pointer-events: none; z-index: 3; transform-origin: 50% 0; }
.agcn-ribbon svg { display: block; width: 40px; height: auto; overflow: visible; clip-path: inset(0 0 0 0); animation: agcn-unroll 2.2s cubic-bezier(.3, .7, .2, 1) both; }
.agcn-ribbon__band { fill: none; stroke: var(--agcn-gold, #c4a265); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.agcn-ribbon__shine { fill: none; stroke: rgba(255, 246, 222, .85); stroke-width: 1; stroke-linecap: round; transform: translate(-.7px, -.4px); }
.agcn-ribbon__knot { position: absolute; top: -4px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f3e3bb, var(--agcn-gold, #c4a265) 60%, #8f6f36); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.agcn-ribbon--1 { left: 14%; }
.agcn-ribbon--2 { left: 30%; }
.agcn-ribbon--3 { left: 70%; }
.agcn-ribbon--4 { left: 86%; }
.agcn-ribbon--2 .agcn-ribbon__band, .agcn-ribbon--4 .agcn-ribbon__band { stroke: #1a1a1a; }
.agcn-ribbon--2 .agcn-ribbon__shine, .agcn-ribbon--4 .agcn-ribbon__shine { stroke: rgba(255, 255, 255, .35); }
.agcn-ribbon--1 svg { animation-delay: .2s; }
.agcn-ribbon--2 svg { animation-delay: .55s; }
.agcn-ribbon--3 svg { animation-delay: .9s; }
.agcn-ribbon--4 svg { animation-delay: 1.25s; }
.agcn-ribbon { animation: agcn-sway 6s ease-in-out 2.4s infinite alternate; }
.agcn-ribbon--2, .agcn-ribbon--4 { animation-duration: 7.5s; animation-direction: alternate-reverse; }
@keyframes agcn-unroll { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes agcn-sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
/* Grille 2 × 2 : seuls les rubans de la rangée du bas se déroulent.

   Ils glissent vers les bords extérieurs et raccourcissent pour ne pas croiser le titre. */
@media (max-width: 860px) {
	.agcn-steps.is-festive .agcn-steps__item:nth-child(-n+2) .agcn-ribbon { display: none; }
	.agcn-steps.is-festive .agcn-ribbon { width: 28px; margin-left: -14px; }
	.agcn-steps.is-festive .agcn-ribbon svg { width: 28px; }
	.agcn-steps.is-festive .agcn-ribbon--3 { left: 10%; }
	.agcn-steps.is-festive .agcn-ribbon--4 { left: 90%; }
}
@container (max-width: 900px) {
	.agcn-steps.is-festive .agcn-steps__item:nth-child(-n+2) .agcn-ribbon { display: none; }
	.agcn-steps.is-festive .agcn-ribbon { width: 28px; margin-left: -14px; }
	.agcn-steps.is-festive .agcn-ribbon svg { width: 28px; }
	.agcn-steps.is-festive .agcn-ribbon--3 { left: 10%; }
	.agcn-steps.is-festive .agcn-ribbon--4 { left: 90%; }
}
@media (max-width: 480px) {
	.agcn-steps.is-festive { margin-bottom: 96px !important; }
	.agcn-steps.is-festive .agcn-ribbon { width: 22px; margin-left: -11px; }
	.agcn-steps.is-festive .agcn-ribbon svg { width: 22px; }
	.agcn-steps.is-festive .agcn-ribbon--3 { left: 6%; }
	.agcn-steps.is-festive .agcn-ribbon--4 { left: 94%; }
}

/* Filet doré sous le titre */
.agcn-stage .agcn-winner .agcn-title { position: relative; }
.agcn-stage .agcn-winner .agcn-title::after { content: ""; display: block; width: 64px; height: 1px; margin: .55em auto 0; background: linear-gradient(90deg, transparent, var(--agcn-gold), transparent); }

/* Règlement en fenêtre */
.agcn-dialog.agcn-dialog--rules { max-width: min(92vw, 760px); max-height: 88vh; overflow: hidden; position: fixed; }
.agcn-dialog--rules[open] { display: flex; flex-direction: column; }
.agcn-dialog--rules .agcn-dialog__inner { overflow-y: auto; overscroll-behavior: contain; padding: clamp(30px, 5vw, 54px) clamp(22px, 5vw, 56px) 30px; text-align: left; }
.agcn-dialog--rules .agcn-dialog__title { font-size: calc(1.05 * var(--agcn-u, 16px)); margin-bottom: 1.6em; padding: 0 40px; }
.agcn-dialog--rules .agcn-rules__text h3 { font-size: calc(1 * var(--agcn-u, 16px)); letter-spacing: .16em; text-transform: uppercase; font-weight: 400; margin: 1.8em 0 .6em; color: var(--agcn-ink); }
.agcn-dialog--rules .agcn-rules__text p, .agcn-dialog--rules .agcn-rules__text li { font-size: calc(1.05 * var(--agcn-u, 16px)); line-height: 1.7; text-align: left; margin-left: 0; margin-right: 0; }
.agcn-dialog--rules .agcn-rules__text ul, .agcn-dialog--rules .agcn-rules__text ol { padding-left: 1.3em; }
.agcn-dialog--rules .agcn-rules__privacy { text-align: left !important; max-width: none; margin-top: 2em; padding-top: 1.4em; border-top: 1px solid var(--agcn-line); }
.agcn-dialog--rules .agcn-rules__privacy p { font-size: calc(.95 * var(--agcn-u, 16px)); line-height: 1.6; color: var(--agcn-muted); }
.agcn-dialog__x { position: absolute; top: 10px; right: 12px; z-index: 2; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--agcn-paper); border: 0; border-radius: 50%; color: var(--agcn-muted); font-size: 28px; line-height: 1; cursor: pointer; }
.agcn-dialog__x:hover, .agcn-dialog__x:focus-visible { color: var(--agcn-ink); }
.agcn-dialog__x:focus-visible { outline: 1px solid var(--agcn-ink); }
.agcn-dialog--rules .agcn-dialog__close { border: 1px solid var(--agcn-line); padding: 14px 34px; margin-top: 28px; }
html:has(dialog.agcn-dialog[open]) { overflow: hidden; }

/* Confirmation : la photographie entre en scène */
.agcn .agcn-spotlight { position: relative; max-width: 680px; margin: 0 auto calc(var(--agcn-gap) * .8) !important; padding: 30px 34px 26px; text-align: center !important; background: linear-gradient(180deg, #fbf8f1 0%, #ffffff 100%); border: 1px solid #e3d6b8; }
.agcn .agcn-spotlight::before { content: ""; position: absolute; top: -1px; left: 50%; width: 64px; height: 2px; margin-left: -32px; background: #c4a265; }
.agcn .agcn-spotlight__title { font-size: calc(.95 * var(--agcn-u, 16px)); letter-spacing: .2em; text-transform: uppercase; color: var(--agcn-ink); margin: 0 0 .8em; text-align: center !important; }
.agcn .agcn-spotlight__text { font-size: calc(1.08 * var(--agcn-u, 16px)); line-height: 1.7; margin: 0; text-align: center !important; }
@media (max-width: 480px) { .agcn .agcn-spotlight { padding: 24px 18px 20px; } }

/* Respect de la préférence « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
	.agcn *, .agcn *::before, .agcn *::after, .agcn-toast, .agcn-ribbon, .agcn-ribbon svg { animation: none !important; transition: none !important; }
	.agcn-confetti { display: none; }
	.agcn-card.is-glow .agcn-figure { outline-color: var(--agcn-ink); }
}
