:root {
	--papier: #f3efe5;
	--papier-clair: #fffaf2;
	--encre: #302138;
	--paprika: #e9470d;
	--texte: #292822;
	--texte-doux: #716c63;
	--ligne: #d7d0c1;
	--ombre: 0 24px 60px rgba(73, 60, 43, .15);
	font-family: "DM Sans", sans-serif;
	color: var(--texte);
	background: var(--papier);
	font-synthesis: none;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-width: 320px;
	background: var(--papier);
}

button,
input,
label {
	font: inherit;
}

button {
	color: inherit;
}

button:focus-visible,
label:has(input:focus-visible),
input:focus-visible {
	outline: 3px solid rgba(233, 71, 13, .28);
	outline-offset: 3px;
}

[hidden] {
	display: none !important;
}

.application {
	min-height: 100dvh;
	background: radial-gradient(circle at 83% 18%, rgba(233, 71, 13, .08), transparent 28%), var(--papier);
}

.navigation {
	height: 96px;
	max-width: 1280px;
	margin: auto;
	padding: 0 42px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid rgba(94, 87, 73, .18);
}

.marque {
	width: 154px;
	border: 0;
	padding: 0;
	background: transparent;
	cursor: pointer;
}

.marque img {
	display: block;
	width: 100%;
	height: 72px;
	object-fit: contain;
}

.actions-navigation {
	display: flex;
	align-items: center;
	gap: 24px;
}

.bouton-navigation {
	border: 0;
	border-bottom: 1px solid var(--encre);
	background: transparent;
	padding: 6px 0;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.signature {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .15em;
	color: var(--texte-doux);
}

.vue {
	animation: apparition .5s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes apparition {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

.vue-accueil {
	max-width: 1280px;
	margin: auto;
	padding: 70px 42px 46px;
	display: grid;
	grid-template-columns: 1.03fr .97fr;
	grid-template-rows: auto auto;
	gap: 30px 7vw;
}

.accroche {
	padding-top: 42px;
}

.surtitre,
.etiquette {
	color: var(--paprika);
	text-transform: uppercase;
	letter-spacing: .13em;
	font-size: 11px;
	font-weight: 700;
}

.accroche h1,
.texte-apercu h1,
.texte-analyse h1,
.titre-recette h1,
.entete-bibliotheque h1 {
	font: 600 clamp(48px, 6.1vw, 84px) / .95 "Manrope", sans-serif;
	letter-spacing: -.065em;
	margin: 22px 0 24px;
}

.accroche h1 em {
	color: var(--paprika);
	font-style: normal;
}

.introduction {
	font-size: 18px;
	line-height: 1.65;
	color: #625e55;
	max-width: 590px;
}

.arguments {
	display: flex;
	gap: 20px;
	margin-top: 34px;
	font-size: 13px;
	font-weight: 600;
	flex-wrap: wrap;
}

.arguments span::first-letter {
	color: var(--paprika);
}

.zone-chargement {
	position: relative;
}

input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.depot-photo {
	min-height: 450px;
	border: 1.5px dashed #b6ad9e;
	border-radius: 34px;
	background: rgba(255, 253, 248, .66);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 65px 25px;
	cursor: pointer;
	transition: .35s cubic-bezier(.16, 1, .3, 1);
}

.depot-photo:hover {
	border-color: var(--paprika);
	background: var(--papier-clair);
	transform: translateY(-3px);
}

.icone-photo {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--encre);
	color: white;
	font-size: 33px;
	margin-bottom: 22px;
}

.depot-photo strong {
	font: 600 20px "Manrope", sans-serif;
	letter-spacing: -.025em;
	text-align: center;
}

.depot-photo > span:not(.icone-photo):not(.bouton-principal) {
	font-size: 13px;
	color: var(--texte-doux);
	margin-top: 9px;
}

.bouton-principal,
.bouton-secondaire {
	border: 0;
	border-radius: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	font-weight: 700;
	cursor: pointer;
	transition: .25s cubic-bezier(.16, 1, .3, 1);
}

.bouton-principal {
	background: var(--paprika);
	color: #fff9f1;
	padding: 15px 21px;
	box-shadow: 0 10px 28px rgba(130, 58, 44, .18);
}

.bouton-principal:hover {
	background: #d33e09;
	transform: translateY(-2px);
}

.depot-photo .bouton-principal {
	margin-top: 25px;
}

.message-erreur {
	color: #9e3527;
	background: #f3d9d2;
	padding: 12px 15px;
	border-radius: 12px;
	margin-top: 15px;
	font-size: 13px;
}

.note-confidentialite {
	grid-column: 1;
	display: flex;
	align-items: center;
	gap: 12px;
	border-top: 1px solid var(--ligne);
	padding-top: 24px;
	max-width: 480px;
}

.note-confidentialite > span {
	color: var(--paprika);
	font-size: 24px;
}

.note-confidentialite div {
	display: flex;
	flex-direction: column;
	font-size: 12px;
}

.note-confidentialite small {
	color: var(--texte-doux);
	margin-top: 3px;
}

.retour {
	border: 0;
	background: transparent;
	padding: 0;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
}

.vue-apercu {
	max-width: 1180px;
	margin: auto;
	padding: 36px 42px 70px;
	display: grid;
	grid-template-columns: .75fr 1.25fr;
	gap: 25px 8vw;
}

.vue-apercu > .retour {
	grid-column: 1 / -1;
	justify-self: start;
}

.texte-apercu {
	padding-top: 90px;
}

.texte-apercu h1,
.texte-analyse h1 {
	font-size: 48px;
	line-height: 1.02;
	margin: 18px 0;
}

.texte-apercu > p,
.texte-analyse > p {
	color: var(--texte-doux);
	line-height: 1.7;
}

.conseil {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-top: 25px;
	margin-top: 28px;
	border-top: 1px solid var(--ligne);
	font-size: 13px;
}

.carte-apercu {
	position: relative;
}

.carte-apercu > img {
	display: block;
	width: 100%;
	height: 540px;
	object-fit: cover;
	border-radius: 30px;
	box-shadow: var(--ombre);
}

.actions-apercu {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 18px;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px;
}

.bouton-secondaire {
	background: rgba(255, 253, 248, .93);
	padding: 14px 18px;
	backdrop-filter: blur(12px);
}

.vue-analyse {
	max-width: 1120px;
	margin: auto;
	padding: 70px 42px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 9vw;
}

.photo-analyse {
	position: relative;
	height: 570px;
	overflow: hidden;
	border-radius: 32px;
	box-shadow: var(--ombre);
}

.photo-analyse img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ligne-analyse {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 0%, rgba(255, 246, 223, .9) 50%, transparent 100%);
	background-size: 100% 160px;
	animation: balayage 2.2s ease-in-out infinite;
}

@keyframes balayage {
	from { transform: translateY(-180px); }
	to { transform: translateY(570px); }
}

.points-animes {
	display: flex;
	gap: 5px;
	margin-bottom: 25px;
}

.points-animes i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--paprika);
	animation: points 1s infinite alternate;
}

.points-animes i:nth-child(2) { animation-delay: .2s; }
.points-animes i:nth-child(3) { animation-delay: .4s; }

@keyframes points {
	to { opacity: .25; transform: translateY(-4px); }
}

.progression {
	list-style: none;
	padding: 10px 0 0;
	margin: 34px 0 0;
	border-top: 1px solid var(--ligne);
}

.progression li {
	padding: 16px 0;
	border-bottom: 1px solid var(--ligne);
	font-size: 13px;
}

.page-recette,
.page-bibliotheque {
	max-width: 1280px;
	margin: auto;
	padding: 35px 42px 70px;
}

.entete-recette {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 7vw;
	align-items: center;
	padding: 38px 0 75px;
}

.photo-recette {
	position: relative;
}

.photo-recette img {
	display: block;
	width: 100%;
	height: 480px;
	object-fit: cover;
	border-radius: 30px;
}

.confiance {
	position: absolute;
	left: 16px;
	bottom: 16px;
	background: rgba(255, 253, 248, .93);
	padding: 11px 14px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 700;
}

.titre-recette h1 {
	font-size: clamp(44px, 5vw, 68px);
}

.titre-recette > p {
	color: var(--texte-doux);
	font-size: 17px;
}

.enregistrement {
	position: relative;
	width: max-content;
	max-width: 100%;
	margin-top: 25px;
}

.bouton-enregistrer {
	min-height: 48px;
	border: 1px solid #bdb5a7;
	border-radius: 14px;
	background: rgba(255, 253, 248, .72);
	padding: 0 14px;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
}

.bouton-enregistrer.est-enregistre {
	background: var(--encre);
	border-color: var(--encre);
	color: white;
}

.menu-categories {
	position: absolute;
	left: 0;
	top: 58px;
	width: 330px;
	max-width: calc(100vw - 40px);
	background: #fffdf8;
	border: 1px solid #d8d0c1;
	border-radius: 19px;
	padding: 9px;
	box-shadow: var(--ombre);
	z-index: 5;
}

.entete-categories {
	display: flex;
	justify-content: space-between;
	padding: 10px 10px 13px;
	border-bottom: 1px solid var(--ligne);
}

.entete-categories button,
.creer-categorie {
	border: 0;
	background: transparent;
	cursor: pointer;
}

.liste-categories {
	padding: 6px 0;
}

.liste-categories button {
	width: 100%;
	min-height: 42px;
	border: 0;
	border-radius: 11px;
	background: transparent;
	padding: 0 10px;
	display: flex;
	align-items: center;
	gap: 9px;
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
}

.liste-categories button:hover {
	background: #eee7da;
}

.liste-categories button b {
	margin-left: auto;
	color: transparent;
}

.liste-categories button:hover b {
	color: var(--paprika);
}

.creer-categorie {
	width: 100%;
	padding: 13px 10px 7px;
	border-top: 1px solid var(--ligne);
	color: var(--paprika);
	text-align: left;
	font-size: 13px;
	font-weight: 700;
}

#formulaire-categorie {
	padding: 10px 7px 5px;
	border-top: 1px solid var(--ligne);
}

#formulaire-categorie label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	margin-bottom: 7px;
}

#formulaire-categorie > div {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 6px;
}

#formulaire-categorie input {
	min-width: 0;
	border: 1px solid #c8c0b3;
	border-radius: 10px;
	padding: 10px;
}

#formulaire-categorie button {
	border: 0;
	border-radius: 10px;
	background: var(--paprika);
	color: white;
	font-weight: 700;
}

.metadonnees {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-top: 38px;
	border-top: 1px solid var(--ligne);
	padding-top: 25px;
}

.metadonnees span {
	display: flex;
	flex-direction: column;
}

.metadonnees b {
	font-size: 13px;
}

.metadonnees small {
	color: var(--texte-doux);
}

.corps-recette {
	display: grid;
	grid-template-columns: .8fr 1.2fr;
	gap: 7vw;
	padding: 72px 0;
	border-top: 1px solid var(--ligne);
}

.titre-section {
	display: flex;
	justify-content: space-between;
	align-items: end;
}

.corps-recette h2 {
	font: 600 34px "Manrope", sans-serif;
	letter-spacing: -.04em;
	margin: 9px 0 0;
}

.portions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.portions button {
	width: 30px;
	height: 30px;
	border: 1px solid var(--ligne);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.portions span {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.portions small {
	font-size: 9px;
	text-transform: uppercase;
}

.liste-ingredients {
	margin-top: 25px;
	border-top: 1px solid var(--ligne);
}

.liste-ingredients label {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 11px;
	padding: 15px 0;
	border-bottom: 1px solid var(--ligne);
	font-size: 13px;
	cursor: pointer;
}

.liste-ingredients input {
	position: absolute;
	opacity: 0;
}

.case-ingredient {
	width: 20px;
	height: 20px;
	border: 1px solid #bdb5a7;
	border-radius: 6px;
	display: grid;
	place-items: center;
	color: transparent;
}

.liste-ingredients input:checked + .case-ingredient {
	background: var(--paprika);
	border-color: var(--paprika);
	color: white;
}

.liste-ingredients input:checked ~ span:not(.case-ingredient) {
	text-decoration: line-through;
	color: #969084;
}

.placard,
.conseil-chef {
	background: #e8dfce;
	border-radius: 17px;
	padding: 18px;
	margin-top: 25px;
}

.placard p,
.conseil-chef p {
	margin: 5px 0 0;
	font-size: 12px;
	line-height: 1.55;
}

.preparation > h2 {
	margin-bottom: 28px;
}

.etape {
	display: grid;
	grid-template-columns: 45px 1fr;
	gap: 16px;
	padding-bottom: 29px;
	margin-bottom: 25px;
	border-bottom: 1px solid var(--ligne);
}

.numero-etape {
	color: var(--paprika);
	font-weight: 700;
	font-size: 13px;
	padding-top: 4px;
}

.titre-etape {
	display: flex;
	justify-content: space-between;
	gap: 15px;
}

.titre-etape h3 {
	font: 600 17px "Manrope", sans-serif;
	margin: 0;
}

.titre-etape span {
	color: var(--texte-doux);
	font-size: 11px;
}

.etape p {
	font-size: 14px;
	line-height: 1.7;
	color: #625e55;
	margin: 10px 0 0;
}

.conseil-chef {
	background: var(--encre);
	color: #f7f2e8;
	padding: 22px;
}

.conseil-chef p {
	color: #c6c0b4;
}

.entete-bibliotheque {
	max-width: 760px;
	margin: 64px 0 40px;
}

.entete-bibliotheque h1 {
	font-size: clamp(42px, 6vw, 72px);
}

.entete-bibliotheque p {
	color: var(--texte-doux);
}

.filtres-categories {
	display: flex;
	gap: 9px;
	flex-wrap: wrap;
	margin-bottom: 30px;
}

.filtres-categories button {
	border: 1px solid var(--ligne);
	border-radius: 999px;
	background: transparent;
	padding: 9px 15px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.filtres-categories button.actif {
	background: var(--encre);
	border-color: var(--encre);
	color: white;
}

.grille-recettes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.carte-recette-enregistree {
	background: rgba(255, 253, 248, .76);
	border: 1px solid rgba(215, 208, 193, .8);
	border-radius: 24px;
	overflow: hidden;
	cursor: pointer;
	transition: .25s cubic-bezier(.16, 1, .3, 1);
}

.carte-recette-enregistree:hover {
	transform: translateY(-5px);
	box-shadow: var(--ombre);
}

.carte-recette-enregistree img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
}

.carte-recette-enregistree > div {
	padding: 20px;
}

.carte-recette-enregistree span {
	color: var(--paprika);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .12em;
}

.carte-recette-enregistree h2 {
	font: 600 21px "Manrope", sans-serif;
	margin: 9px 0;
}

.carte-recette-enregistree p {
	color: var(--texte-doux);
	font-size: 13px;
	line-height: 1.5;
}

.etat-vide,
.chargement-liste {
	grid-column: 1 / -1;
	border: 1px dashed #b6ad9e;
	border-radius: 20px;
	padding: 50px;
	text-align: center;
	color: var(--texte-doux);
}

@media (max-width: 900px) {
	.navigation {
		height: 80px;
		padding: 0 20px;
	}

	.marque {
		width: 128px;
	}

	.signature {
		display: none;
	}

	.vue-accueil,
	.vue-apercu,
	.vue-analyse {
		display: block;
		padding: 35px 20px 55px;
	}

	.accroche {
		padding-top: 8px;
	}

	.accroche h1 {
		font-size: 49px;
	}

	.introduction {
		font-size: 16px;
	}

	.arguments {
		margin-bottom: 42px;
	}

	.note-confidentialite {
		margin-top: 28px;
	}

	.texte-apercu {
		padding: 55px 0 25px;
	}

	.texte-apercu h1,
	.texte-analyse h1 {
		font-size: 39px;
	}

	.carte-apercu > img {
		height: 470px;
	}

	.photo-analyse {
		height: 410px;
		margin-bottom: 45px;
	}

	.page-recette,
	.page-bibliotheque {
		padding: 25px 20px 55px;
	}

	.entete-recette,
	.corps-recette {
		display: block;
		padding: 35px 0 50px;
	}

	.photo-recette img {
		height: 390px;
	}

	.titre-recette {
		padding-top: 35px;
	}

	.enregistrement,
	.bouton-enregistrer {
		width: 100%;
	}

	.menu-categories {
		width: 100%;
	}

	.ingredients {
		margin-bottom: 65px;
	}

	.grille-recettes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.bouton-navigation {
		font-size: 11px;
	}

	.accroche h1 {
		font-size: 43px;
	}

	.depot-photo {
		min-height: 380px;
		padding: 45px 18px;
	}

	.carte-apercu > img,
	.photo-recette img {
		height: 350px;
	}

	.actions-apercu {
		position: static;
		grid-template-columns: 1fr;
		margin-top: 12px;
	}

	.actions-apercu .bouton-principal,
	.actions-apercu .bouton-secondaire {
		min-height: 50px;
	}

	.titre-recette h1 {
		font-size: 38px;
	}

	.metadonnees {
		gap: 8px;
	}

	.metadonnees small {
		font-size: 9px;
	}

	.titre-etape {
		display: block;
	}

	.titre-etape span {
		display: block;
		margin-top: 7px;
	}

	.grille-recettes {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

