/*
 * WinWin : page Connexion (shortcode [winwin_connexion]) : ecran de connexion puis espace membre (fiche),
 * et page de connexion de WordPress (mot de passe oublie...) aux couleurs du site. Charte : site.css.
 */

/* ---------- Commun ---------- */

:is(.ww-auth, .ww-espace, .ww-rdv) {
	font-family: var(--ww-sans);
	color: var(--ww-ink);
}

:is(.ww-auth, .ww-espace, .ww-rdv) :is(h1, p, fieldset, legend) {
	margin: 0;
}

.ww-auth-surtitre {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--ww-bronze);
}

/* Champs a etiquette flottante */
:is(.ww-auth, .ww-espace, .ww-rdv) .ww-champ {
	position: relative;
}

:is(.ww-auth, .ww-espace, .ww-rdv) .ww-champ :is(input, textarea) {
	display: block;
	width: 100%;
	margin: 0;
	padding: 26px 16px 10px;
	border: 1px solid var(--ww-sand-light);
	border-radius: 6px;
	background: #fff;
	box-shadow: none;
	font: 400 1rem/1.5 var(--ww-sans);
	color: var(--ww-ink);
	transition: border-color .3s, box-shadow .3s;
}

:is(.ww-auth, .ww-espace, .ww-rdv) .ww-champ textarea {
	min-height: 180px;
	resize: vertical;
}

:is(.ww-auth, .ww-espace, .ww-rdv) .ww-champ label {
	position: absolute;
	top: 18px;
	left: 17px;
	font-size: 1rem;
	color: var(--ww-ink-soft);
	pointer-events: none;
	transform-origin: left top;
	transition: transform .25s var(--ww-ease), color .25s;
}

:is(.ww-auth, .ww-espace, .ww-rdv) .ww-champ :is(input, textarea):is(:focus, :not(:placeholder-shown)) + label {
	color: var(--ww-bronze);
	transform: translateY(-11px) scale(.76);
}

:is(.ww-auth, .ww-espace, .ww-rdv) .ww-champ :is(input, textarea):focus {
	outline: none;
	border-color: var(--ww-bronze);
	box-shadow: 0 0 0 4px rgba(212, 181, 158, .3);
}

/* Champ en lecture seule (e-mail du compte) */
:is(.ww-auth, .ww-espace, .ww-rdv) .ww-champ--fixe input {
	background: var(--ww-cream);
	color: var(--ww-ink-soft);
	cursor: default;
}

:is(.ww-auth, .ww-espace, .ww-rdv) .ww-champ--erreur :is(input, textarea) {
	border-color: #b3261e;
}

.ww-aide,
.ww-erreur {
	margin-top: 8px !important;
	font-size: .85rem;
	line-height: 1.5;
	color: var(--ww-ink-soft);
}

.ww-erreur {
	color: #b3261e;
}

/* Cases a cocher */
.ww-case {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: .92rem;
	color: var(--ww-ink-soft);
	cursor: pointer;
}

/* Case figee (date limite de reponse passee) : elle montre l'etat, estompee */
.ww-case:has(input:disabled) {
	opacity: .6;
	cursor: default;
}

:is(.ww-auth, .ww-espace, .ww-rdv) .ww-case input {
	appearance: none;
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	border: 1px solid var(--ww-sand);
	border-radius: 4px;
	background: #fff center / 12px no-repeat;
	cursor: pointer;
	transition: background-color .25s, border-color .25s;
}

:is(.ww-auth, .ww-espace, .ww-rdv) .ww-case input:checked {
	border-color: var(--ww-bronze);
	background-color: var(--ww-bronze);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.3l2.3 2.3 4.7-5'/%3E%3C/svg%3E");
}

/* Boutons radio (statut, page Back) : ronds, un point blanc au centre une fois choisis */
:is(.ww-auth, .ww-espace, .ww-rdv) .ww-case input[type="radio"] {
	border-radius: 50%;
}

:is(.ww-auth, .ww-espace, .ww-rdv) .ww-case input[type="radio"]:checked {
	background-image: none;
	box-shadow: inset 0 0 0 4px #fff;
}

:is(.ww-auth, .ww-espace, .ww-rdv) .ww-case input:focus-visible {
	outline: 2px solid var(--ww-bronze);
	outline-offset: 2px;
}

/* Bouton : reflet qui traverse au survol, indicateur pendant l'envoi */
:is(.ww-auth, .ww-espace, .ww-rdv) .ww-bouton {
	position: relative;
	overflow: hidden;
	padding: 17px 34px;
	border: 0;
	border-radius: 999px;
	background: var(--ww-ink);
	box-shadow: none;
	font: 500 .8rem/1 var(--ww-sans);
	letter-spacing: .2em;
	text-transform: uppercase;
	color: #fff;
	cursor: pointer;
	transition: transform .4s var(--ww-ease), box-shadow .4s var(--ww-ease), background-color .4s;
}

:is(.ww-auth, .ww-espace, .ww-rdv) .ww-bouton::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
	transform: translateX(-100%);
	transition: transform .9s var(--ww-ease);
}

:is(.ww-auth, .ww-espace, .ww-rdv) .ww-bouton:is(:hover, :focus-visible) {
	background: var(--ww-bronze);
	box-shadow: 0 18px 32px -18px rgba(42, 35, 32, .8);
	transform: translateY(-2px);
}

:is(.ww-auth, .ww-espace, .ww-rdv) .ww-bouton:is(:hover, :focus-visible)::after {
	transform: translateX(100%);
}

:is(.ww-auth, .ww-espace, .ww-rdv) .ww-bouton.is-loading {
	color: transparent;
	pointer-events: none;
}

:is(.ww-auth, .ww-espace, .ww-rdv) .ww-bouton.is-loading::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ww-tourne .8s linear infinite;
}

/* Messages */
.ww-alerte {
	padding: 14px 18px 14px 46px !important;
	border-radius: 6px;
	font-size: .95rem;
	line-height: 1.5;
	background: #fbeceb center left 16px / 18px no-repeat;
	color: #8c1d18;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3261e' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.1'/%3E%3C/svg%3E");
}

.ww-alerte--ok {
	background-color: #edf5ee;
	color: #24562d;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7a3b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.4l2.7 2.7L16.2 9.6'/%3E%3C/svg%3E");
}

/* ---------- Ecran de connexion ---------- */

.ww-auth {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	min-height: calc(100svh - 80px);
	background: var(--ww-cream);
}

.ww-auth-visuel {
	position: relative;
	min-height: 260px;
	overflow: hidden;
	isolation: isolate;
	background: var(--ww-sand);
}

.ww-auth .ww-auth-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.ww-auth-voile {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(18px, 4vh, 34px);
	padding: 32px;
	text-align: center;
	background: linear-gradient(160deg, rgba(212, 181, 158, .9) 0%, rgba(212, 181, 158, .72) 55%, rgba(176, 137, 104, .62) 100%);
}

.ww-auth .ww-auth-logo {
	width: clamp(96px, 12vw, 170px);
	height: auto;
}

.ww-auth-devise {
	max-width: 16ch;
	font-family: var(--ww-serif);
	font-size: clamp(1.5rem, 2.6vw, 2.4rem);
	font-weight: 500;
	line-height: 1.15;
	color: var(--ww-ink);
	text-wrap: balance;
}

.ww-auth-panneau {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(44px, 7vw, 96px) var(--ww-gutter);
}

.ww-auth-form {
	display: grid;
	gap: 20px;
	width: min(420px, 100%);
}

.ww-auth-titre {
	margin-bottom: 8px !important;
	font-family: var(--ww-serif);
	font-size: clamp(2.8rem, 4.6vw, 3.8rem);
	font-weight: 500;
	line-height: 1;
	color: var(--ww-ink);
}

.ww-auth-titre::after {
	content: "";
	display: block;
	width: 48px;
	height: 1px;
	margin-top: 22px;
	background: var(--ww-bronze);
}

.ww-auth-options {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ww-auth-options a {
	font-size: .92rem;
	color: var(--ww-bronze);
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
	transition: background-size .4s var(--ww-ease);
}

.ww-auth-options a:is(:hover, :focus-visible) {
	background-size: 100% 1px;
}

.ww-auth .ww-bouton {
	width: 100%;
	margin-top: 6px;
}

/* Bascule connexion / creation de fiche */
.ww-auth-bascule {
	font-size: .92rem;
	text-align: center;
	color: var(--ww-ink-soft);
}

.ww-auth-bascule a {
	font-weight: 500;
	color: var(--ww-bronze);
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px;
	transition: background-size .4s var(--ww-ease);
}

.ww-auth-bascule a:is(:hover, :focus-visible) {
	background-size: 100% 2px;
}

/* Invitation : prenom et nom cote a cote */
.ww-auth-duo {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 14px;
}

/* Afficher le mot de passe */
.ww-champ--mdp input {
	padding-right: 52px !important;
}

/* Centre sur le champ (62 px de haut), meme quand un texte d'aide suit */
.ww-auth .ww-voir-mdp {
	position: absolute;
	top: 13px;
	right: 10px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.ww-auth .ww-voir-mdp::before {
	content: "";
	position: absolute;
	inset: 8px;
	background: var(--ww-ink-soft);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ww-auth .ww-voir-mdp[aria-pressed="true"]::before {
	background: var(--ww-bronze);
}

.ww-auth .ww-voir-mdp:focus-visible {
	outline: 2px solid var(--ww-bronze);
}

@media (min-width: 900px) {
	.ww-auth {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	}
}

/* ---------- Espace membre ---------- */

.ww-espace {
	padding-bottom: clamp(64px, 9vw, 120px);
	background: var(--ww-cream);
}

.ww-espace-bandeau {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 10px;
	overflow: hidden;
	isolation: isolate;
	padding: clamp(26px, 4.5vw, 60px) var(--ww-gutter) clamp(64px, 8vw, 104px);
	text-align: center;
	background: var(--ww-sand);
}

.ww-espace-bandeau::before {
	content: "";
	position: absolute;
	inset: -30%;
	z-index: -1;
	background:
		radial-gradient(closest-side at 50% 40%, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 75%),
		radial-gradient(closest-side at 12% 90%, rgba(142, 107, 82, .28), rgba(142, 107, 82, 0) 70%);
}

.ww-espace-titre {
	font-family: var(--ww-serif);
	font-size: clamp(2.3rem, 5vw, 4.2rem);
	font-weight: 500;
	line-height: 1.02;
	color: var(--ww-ink);
	text-wrap: balance;
}

.ww-espace-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px clamp(20px, 3vw, 30px);
	margin-top: 8px;
}

.ww-lien {
	padding-bottom: 4px;
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--ww-ink);
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
	transition: background-size .4s var(--ww-ease);
}

.ww-lien:is(:hover, :focus-visible),
.ww-lien[aria-current="page"] {
	color: var(--ww-ink);
	background-size: 100% 1px;
}

/* Carte de la fiche, a cheval sur le bandeau */
.ww-fiche {
	position: relative;
	display: grid;
	gap: clamp(28px, 4vw, 44px);
	width: min(1120px, calc(100% - 2 * var(--ww-gutter)));
	margin: calc(-1 * clamp(40px, 5vw, 72px)) auto 0;
	padding: clamp(24px, 4.5vw, 60px);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 50px 90px -60px rgba(42, 35, 32, .55);
}

/* .ww-espace devant : l'emporte sur la marge des formulaires du theme (.single-content form) */
.ww-espace .ww-fiche {
	margin-top: calc(-1 * clamp(40px, 5vw, 72px));
}

.ww-fiche-grille {
	display: grid;
	gap: clamp(36px, 5vw, 64px);
}

.ww-fiche-bloc {
	display: grid;
	align-content: start;
	gap: 18px;
	min-width: 0;
	padding: 0;
	border: 0;
}

.ww-fiche-bloc legend {
	float: left;
	width: 100%;
	padding: 0;
	font-family: var(--ww-serif);
	font-size: clamp(1.8rem, 2.6vw, 2.3rem);
	font-weight: 500;
	line-height: 1.1;
	color: var(--ww-ink);
}

.ww-fiche-bloc legend::before {
	content: "";
	display: block;
	width: 40px;
	height: 1px;
	margin-bottom: 16px;
	background: var(--ww-bronze);
}

.ww-fiche-bloc legend + * {
	clear: both;
}

/* Galerie de la fiche : vignettes dans l'ordre d'affichage, puis la case d'ajout (.ww-espace devant : l'emporte sur le retrait des listes du theme) */
.ww-espace .ww-galerie {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ww-galerie > li {
	position: relative;
	aspect-ratio: 4 / 5;
	margin: 0;
	overflow: hidden;
	border-radius: 8px;
}

.ww-galerie-photo {
	background: var(--ww-cream);
	box-shadow: 0 16px 30px -24px rgba(42, 35, 32, .65);
	transition: transform .4s var(--ww-ease), box-shadow .4s var(--ww-ease), opacity .3s;
}

.ww-galerie--active .ww-galerie-photo {
	cursor: grab;
}

.ww-galerie-photo:hover {
	box-shadow: 0 24px 40px -26px rgba(42, 35, 32, .7);
	transform: translateY(-3px);
}

.ww-espace .ww-galerie-photo :is(img, video) {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform .9s var(--ww-ease), opacity .4s, filter .4s;
}

.ww-galerie-photo:hover :is(img, video) {
	transform: scale(1.06);
}

.ww-galerie-photo--nouvelle :is(img, video) {
	animation: ww-apparait .7s var(--ww-ease);
}

.ww-galerie-photo--nouvelle::before,
.ww-galerie-photo:has(.ww-galerie-retirer input:checked)::before {
	content: "Nouvelle";
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	padding: 4px 8px;
	border-radius: 999px;
	background: var(--ww-bronze);
	font-size: .6rem;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #fff;
}

.ww-galerie-photo:has(.ww-galerie-retirer input:checked)::before {
	content: "Retirée";
	background: var(--ww-ink);
}

.ww-galerie-photo:has(.ww-galerie-retirer input:checked) :is(img, video) {
	opacity: .3;
	filter: grayscale(1);
}

.ww-galerie-photo--glissee {
	opacity: .35;
	transform: scale(.95);
}

/* Retrait : case a cocher (photo deja enregistree, reversible) ou bouton (photo pas encore envoyee) */
.ww-galerie-retirer,
.ww-espace .ww-galerie-supprimer {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(42, 35, 32, .75);
	cursor: pointer;
	transition: background-color .25s, transform .25s var(--ww-ease);
}

.ww-galerie-retirer::before,
.ww-galerie-retirer::after,
.ww-galerie-supprimer::before,
.ww-galerie-supprimer::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 1.5px;
	margin: -.75px 0 0 -6px;
	background: #fff;
	transform: rotate(45deg);
}

.ww-galerie-retirer::after,
.ww-galerie-supprimer::after {
	transform: rotate(-45deg);
}

.ww-galerie-retirer:hover,
.ww-espace .ww-galerie-supprimer:hover,
.ww-galerie-retirer:has(input:focus-visible),
.ww-espace .ww-galerie-supprimer:focus-visible {
	background: #b3261e;
	transform: scale(1.08);
}

.ww-galerie-retirer:has(input:focus-visible),
.ww-espace .ww-galerie-supprimer:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 1px;
}

/* Photo retiree : la croix devient une fleche "annuler" */
.ww-galerie-retirer:has(input:checked) {
	background: var(--ww-bronze);
}

.ww-galerie-retirer:has(input:checked)::before {
	width: 10px;
	height: 10px;
	margin: -6px 0 0 -5px;
	border: 1.5px solid #fff;
	border-right-color: transparent;
	border-radius: 50%;
	background: none;
	transform: rotate(-30deg);
}

.ww-galerie-retirer:has(input:checked)::after {
	display: none;
}

.ww-galerie-retirer input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

/* Fleches pour changer l'ordre (avec le script ; toujours visibles sur ecran tactile) */
.ww-galerie-outils {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	display: none;
	justify-content: space-between;
	padding: 28px 8px 8px;
	background: linear-gradient(transparent, rgba(42, 35, 32, .55));
	opacity: 0;
	transition: opacity .3s;
}

.ww-galerie--active .ww-galerie-outils {
	display: flex;
}

.ww-galerie-photo:is(:hover, :focus-within) .ww-galerie-outils {
	opacity: 1;
}

@media (hover: none) {
	.ww-galerie-outils {
		opacity: 1;
	}
}

.ww-espace .ww-galerie-outils button {
	position: relative;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	cursor: pointer;
	transition: transform .25s var(--ww-ease), background-color .25s;
}

.ww-galerie-outils button::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 7px;
	height: 7px;
	border-top: 1.5px solid var(--ww-ink);
	border-right: 1.5px solid var(--ww-ink);
	transform: translate(-65%, -50%) rotate(45deg);
}

.ww-galerie-outils .ww-galerie-avant::before {
	transform: translate(-35%, -50%) rotate(-135deg);
}

.ww-espace .ww-galerie-outils button:is(:hover, :focus-visible) {
	background: var(--ww-sand-light);
	transform: scale(1.08);
}

.ww-galerie-photo:first-child .ww-galerie-avant,
.ww-galerie-photo:nth-last-child(2) .ww-galerie-apres {
	visibility: hidden;
}

/* Case d'ajout (clic, ou fichiers deposes sur la galerie) */
.ww-galerie-zone {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 10px;
	border: 1px dashed var(--ww-sand);
	border-radius: 8px;
	background: var(--ww-cream);
	font-family: var(--ww-serif);
	font-size: 1.1rem;
	font-style: italic;
	line-height: 1.2;
	text-align: center;
	color: var(--ww-bronze);
	cursor: pointer;
	transition: border-color .3s, background-color .3s, transform .4s var(--ww-ease);
}

.ww-galerie-zone::before {
	content: "+";
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--ww-sand);
	border-radius: 50%;
	font-family: var(--ww-sans);
	font-size: 1.4rem;
	font-style: normal;
	font-weight: 300;
	transition: background-color .3s, color .3s, transform .5s var(--ww-ease);
}

.ww-galerie-zone:hover,
.ww-galerie--survol .ww-galerie-zone,
.ww-fiche-bloc:has(.ww-photo-fichier:focus-visible) .ww-galerie-zone {
	border-color: var(--ww-bronze);
	background: #fff;
}

.ww-galerie-zone:hover::before,
.ww-galerie--survol .ww-galerie-zone::before {
	background: var(--ww-bronze);
	color: #fff;
	transform: rotate(90deg);
}

.ww-galerie--survol .ww-galerie-zone {
	transform: scale(1.03);
}

.ww-fiche-bloc:has(.ww-photo-fichier:focus-visible) .ww-galerie-zone {
	outline: 2px solid var(--ww-bronze);
	outline-offset: 3px;
}

.ww-photo-fichier {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.ww-galerie-message:empty {
	display: none;
}

/* Colonne de gauche : galeries des photos puis des videos */
.ww-fiche-colonne {
	display: grid;
	align-content: start;
	gap: clamp(36px, 5vw, 56px);
	min-width: 0;
}

/* Video dans la galerie : un pictogramme de lecture la distingue d'une photo */
.ww-galerie-photo--video::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	width: 38px;
	height: 38px;
	margin: -19px 0 0 -19px;
	border-radius: 50%;
	background: rgba(42, 35, 32, .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 7l8 5-8 5z'/%3E%3C/svg%3E") center / 20px no-repeat;
	pointer-events: none;
}

.ww-fiche-infos {
	gap: 16px;
}

.ww-aide a {
	color: var(--ww-bronze);
}

.ww-fiche-envoi {
	display: flex;
	justify-content: flex-end;
	padding-top: clamp(20px, 3vw, 32px);
	border-top: 1px solid var(--ww-sand-light);
}

/* Invitation : qui l'a invite et son rendez-vous (invite), ses invites avec leur prochain rendez-vous */
.ww-fiche-parrainage {
	padding-top: clamp(28px, 4vw, 40px);
	border-top: 1px solid var(--ww-sand-light);
}

.ww-parrainage-parrain {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 28px;
	font-size: 1.02rem;
	line-height: 1.6;
	color: var(--ww-ink-soft);
}

.ww-parrainage-parrain strong {
	font-weight: 500;
	color: var(--ww-ink);
}

.ww-espace .ww-invites {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ww-invite {
	display: grid;
	gap: 14px;
	align-items: center;
	padding: 16px 18px;
	border-radius: 8px;
	background: var(--ww-cream);
}

.ww-invite-nom {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 16px;
	min-width: 0;
}

.ww-invite-nom strong {
	font-family: var(--ww-serif);
	font-size: 1.45rem;
	font-weight: 500;
	line-height: 1.2;
}

.ww-invite-nom span {
	font-size: .92rem;
	color: var(--ww-ink-soft);
	overflow-wrap: anywhere;
}

.ww-invite-nom .ww-lien {
	font-size: .7rem;
}

/* Bouton secondaire (lien) : contour, rempli au survol */
.ww-espace .ww-bouton--clair {
	display: inline-block;
	padding: 15px 28px;
	border: 1px solid var(--ww-ink);
	background: transparent;
	color: var(--ww-ink);
	text-decoration: none;
}

.ww-espace .ww-bouton--clair:is(:hover, :focus-visible) {
	background: var(--ww-ink);
	color: #fff;
}

/* Invitation : carte plus etroite, "Annuler" a cote du bouton */
.ww-invitation {
	width: min(720px, calc(100% - 2 * var(--ww-gutter)));
}

.ww-invitation .ww-fiche-bloc {
	gap: 16px;
}

/* Invitation : identité à gauche, "on s'en occupe" (texte et/ou image) à droite, dessous sur téléphone */
.ww-invite-colonnes {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.ww-invite-identite {
	display: grid;
	gap: 16px;
}

@media (max-width: 760px) {
	.ww-invite-colonnes {
		grid-template-columns: minmax(0, 1fr);
	}
}

.ww-demande {
	display: grid;
	gap: 12px;
	padding: 18px 20px;
	border: 1px dashed var(--ww-bronze);
	border-radius: 8px;
	background: var(--ww-sand-light);
}

.ww-demande .ww-aide {
	margin: 0;
}

.ww-demande-titre {
	display: flex;
	gap: 10px;
	align-items: center;
	margin: 0;
	font-weight: 600;
	color: var(--ww-ink);
}

.ww-demande-icone {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font-size: .9rem;
	background: var(--ww-bronze);
	color: #fff;
}

/* Image : un bouton aux couleurs du site à la place du champ fichier natif */
.ww-demande-image {
	position: relative;
	display: flex;
	gap: 12px;
	align-items: center;
	cursor: pointer;
}

.ww-demande-image input {
	position: absolute;
	inset: 0;
	width: 100%;
	opacity: 0;
	cursor: pointer;
}

.ww-demande-image-bouton {
	flex: none;
	padding: 9px 16px;
	border: 1px solid var(--ww-bronze);
	border-radius: 999px;
	font-size: .9rem;
	color: var(--ww-bronze);
	background: #fff;
	transition: background .3s var(--ww-ease), color .3s var(--ww-ease);
}

.ww-demande-image:is(:hover, :focus-within, .is-choisie) .ww-demande-image-bouton {
	background: var(--ww-bronze);
	color: #fff;
}

.ww-demande-image:focus-within .ww-demande-image-bouton {
	outline: 2px solid var(--ww-ink);
	outline-offset: 2px;
}

.ww-demande-image-nom {
	min-width: 0;
	overflow: hidden;
	font-size: .9rem;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: var(--ww-ink-soft);
}

.ww-fiche-envoi {
	align-items: center;
	gap: 16px 28px;
}

@media (max-width: 599px) {
	.ww-fiche-envoi {
		flex-direction: column-reverse;
	}

	.ww-fiche-envoi .ww-bouton {
		width: 100%;
	}

	.ww-lien {
		letter-spacing: .14em;
	}
}

@media (min-width: 700px) {
	.ww-invite {
		grid-template-columns: minmax(0, 1fr) 240px;
	}
}

@media (min-width: 900px) {
	.ww-fiche-grille {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

/* ---------- Animations ---------- */

@keyframes ww-tourne {
	to { transform: rotate(360deg); }
}

@keyframes ww-apparait {
	from { opacity: 0; transform: scale(1.12); }
}

@keyframes ww-zoom-lent {
	from { transform: scale(1); }
	to { transform: scale(1.12) translate3d(-2%, -1%, 0); }
}

@keyframes ww-secoue {
	20%, 60% { transform: translateX(-6px); }
	40%, 80% { transform: translateX(6px); }
}

@media (prefers-reduced-motion: no-preference) {
	.ww-auth .ww-auth-photo {
		animation: ww-zoom-lent 26s ease-in-out infinite alternate;
	}

	.ww-auth-logo,
	.ww-auth-devise,
	.ww-auth-form > *,
	.ww-espace-bandeau > *,
	.ww-fiche {
		animation: ww-rise 1.2s var(--ww-ease) both;
	}

	.ww-auth-devise { animation-delay: .25s; }
	.ww-auth-form > :nth-child(2) { animation-delay: .08s; }
	.ww-auth-form > :nth-child(3) { animation-delay: .16s; }
	.ww-auth-form > :nth-child(4) { animation-delay: .24s; }
	.ww-auth-form > :nth-child(5) { animation-delay: .32s; }
	.ww-auth-form > :nth-child(n+6) { animation-delay: .4s; }
	.ww-espace-bandeau > :nth-child(2) { animation-delay: .1s; }
	.ww-espace-bandeau > :nth-child(3) { animation-delay: .2s; }
	.ww-espace-bandeau > :nth-child(4) { animation-delay: .3s; }
	.ww-fiche { animation-delay: .35s; }

	.ww-espace-bandeau::before {
		animation: ww-breathe 14s ease-in-out infinite alternate;
	}

	.ww-auth-form--erreur .ww-alerte {
		animation: ww-rise .6s var(--ww-ease) both, ww-secoue .5s .6s;
	}
}

/* ---------- Page de connexion de WordPress (mot de passe oublie...) ---------- */

body.login {
	background: var(--ww-cream, #f8f3ee);
	font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
}

.login h1 a {
	width: 110px;
	height: 115px;
	background-size: contain;
	box-shadow: 0 14px 30px -16px rgba(42, 35, 32, .5);
}

.login form {
	border: 0;
	border-radius: 10px;
	box-shadow: 0 40px 70px -50px rgba(42, 35, 32, .55);
}

.login .button-primary {
	border-color: #2a2320 !important;
	border-radius: 999px !important;
	background: #2a2320 !important;
	padding: 0 22px !important;
}

.login .button-primary:hover {
	border-color: #8e6b52 !important;
	background: #8e6b52 !important;
}

.login input:focus {
	border-color: #8e6b52 !important;
	box-shadow: 0 0 0 1px #8e6b52 !important;
}

.login #nav a,
.login #backtoblog a {
	color: #8e6b52 !important;
}

.login :is(.message, .notice, .success) {
	border-left-color: #8e6b52 !important;
	border-radius: 6px;
}

.login .language-switcher,
.login #nav,
.login #backtoblog,
.login .privacy-policy-page-link {
	display: none;
}

/* La page tient l'ecran : le formulaire au milieu, le pied de page du site en bas */
body.login {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	height: auto;
}

body.login #login {
	flex: 1 0 auto;
	box-sizing: border-box;
	width: min(360px, 100% - 32px);
	margin: 0 auto;
	padding: 96px 0 48px;
}

.login label {
	font-size: .95rem;
	color: #2a2320;
}

/* Champ envoye vide : le message du site, a la place de la bulle du navigateur */
.login .ww-login-champ--erreur {
	border-color: #b3261e !important;
	box-shadow: 0 0 0 1px #b3261e !important;
}

.login .ww-login-erreur {
	margin: -8px 0 16px;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: .88rem;
	line-height: 1.45;
	color: #8c1d18;
	background: #fbeceb;
}

.login .ww-login-erreur[hidden] {
	display: none;
}

/* Retour a l'accueil : la pastille ronde des fiches, en haut a gauche */
.ww-login-retour {
	position: absolute;
	top: 16px;
	left: 16px;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	color: #2a2320;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 16px 40px -18px rgba(42, 35, 32, .55);
}

.ww-login-retour svg {
	box-sizing: border-box;
	width: 40px;
	height: 40px;
	padding: 10px;
	border: 1px solid #d4b59e;
	border-radius: 50%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: background-color .3s, border-color .3s, transform .3s;
}

.ww-login-retour:is(:hover, :focus-visible) svg {
	border-color: #8e6b52;
	background: #eadbcf;
	transform: translateX(-2px);
}

/* Reconnexion dans une fenetre de l'administration : ni retour ni pied de page */
.interim-login :is(.ww-login-retour, .ww-login-pied) {
	display: none;
}

/* Pied de page du site */
.ww-login-pied {
	padding: 28px 24px;
	font-size: .95rem;
	line-height: 1.7;
	letter-spacing: .04em;
	text-align: center;
	color: #f8f3ee;
	background: #2a2320;
}

.ww-login-pied p {
	margin: 0;
}

.ww-login-pied a {
	color: #eadbcf;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ww-login-pied a:is(:hover, :focus-visible) {
	color: #fff;
}
