/* style.css */

/* RESET LOCAL POUR #APP (Compense la désactivation de Preflight) */
#app * {
	box-sizing: border-box;
	border-width: 0;
	border-style: solid;
	border-color: #e5e7eb;
}

#app h1,
#app h2,
#app h3,
#app h4,
#app h5,
#app h6 {
	font-size: inherit;
	font-weight: inherit;
	margin: 0;
}

#app ul,
#app ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

#app img,
#app svg,
#app video,
#app canvas,
#app audio,
#app iframe,
#app embed,
#app object {
	display: block;
	vertical-align: middle;
}

#app input,
#app button,
#app textarea,
#app select {
	font-family: inherit;
	font-size: 100%;
	margin: 0;
	padding: 0;
	line-height: inherit;
	color: inherit;
}

#app button {
	cursor: pointer;
	background-color: transparent;
	background-image: none;
}


/* 1. CACHER L'ANCRE : On masque la div vide générée par Flatpickr */
input.flatpickr-input {
	display: none !important;
}

/* 2. On force l'affichage du conteneur s'il a reçu la classe */
div.flatpickr-input {
	display: block !important;
}

/* Cache l'élément d'ancrage s'il est considéré comme un input par Flatpickr */
#calendar-mount-point.flatpickr-input {
	display: none !important;
}

/* 2. STYLER LE CALENDRIER : C'est lui qui devient la "Card" */
/* Force le calendrier LUI-MÊME à s'afficher */
.flatpickr-calendar.inline {
	display: block !important;
	position: relative !important;
	/* Important pour qu'il reste dans le flux */
	top: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: unset !important;
	/* On applique ici le style "Card" que vous aviez sur la div */
	background: white !important;
	border: 1px solid #e2e8f0 !important;
	/* border-slate-200 */
	border-radius: 0.75rem !important;
	/* rounded-xl */
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
	/* shadow-sm */

	/* Reset des marges pour qu'il colle bien */
	top: 0 !important;
	margin-top: 0 !important;
	padding: 1rem !important;
}

/* Force les conteneurs internes à prendre toute la largeur */
.flatpickr-rContainer,
.flatpickr-days,
.dayContainer {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 100% !important;
}

/* 2. LES JOURS (Chiffres) : Force 1/7ème de largeur (14.28%) */
.flatpickr-day {
	flex-basis: 14.28% !important;
	/* 100% / 7 = 14.28% */
	max-width: 14.28% !important;
	width: 14.28% !important;
	margin: 0 !important;
	/* Pas de marge pour éviter le décalage */
	height: 38px !important;
	/* Hauteur fixe pour l'esthétique */
	line-height: 38px !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
}

/* 3. LES JOURS (En-tête Lun/Mar...) : Force aussi 1/7ème */
.flatpickr-weekday {
	flex-basis: 14.28% !important;
	max-width: 14.28% !important;
	width: 14.28% !important;
	text-align: center !important;
}

/* 4. DESIGN SÉLECTION (Pour garder le rond joli malgré le % de largeur) */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.selected:hover {
	background: #ea580c !important;
	/* Orange Bagelstein */
	border-color: #ea580c !important;
	color: white !important;
}

/* 5. Jours INDISPONIBLES du mois en cours (Fermés, passés, délais...) */
/* On met un fond gris clair pour bien les marquer */
.flatpickr-day.flatpickr-disabled {
	background-color: #f3f4f6 !important;
	/* Gris clair (Slate-100) */
	color: #94a3b8 !important;
	/* Texte gris moyen (Slate-400) */
	border-color: transparent !important;
	cursor: not-allowed;
}

/* 6. Jours des AUTRES MOIS (Précédent / Suivant) */
/* On force le fond blanc/transparent pour qu'ils soient discrets */
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
	background-color: transparent !important;
	/* Pas de fond gris */
	color: #e2e8f0 !important;
	/* Texte très pâle (Slate-200) */
	border-color: transparent !important;
}

/* Animations de transition VueJS */
.fade-enter-active,
.fade-leave-active {
	transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
	opacity: 0;
}

/* --- ANIMATION SUCCÈS (Checkmark) --- */
.checkmark-wrapper {
	width: 80px;
	height: 80px;
	margin: 0 auto;
}

.checkmark {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	display: block;
	stroke-width: 2;
	stroke: #ea580c;
	/* Orange succès */
	stroke-miterlimit: 10;
	box-shadow: inset 0px 0px 0px #ea580c;
	animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__circle {
	stroke-dasharray: 166;
	stroke-dashoffset: 166;
	stroke-width: 2;
	stroke-miterlimit: 10;
	stroke: #ea580c;
	/* Orange succès */
	fill: none;
	animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
	transform-origin: 50% 50%;
	stroke-dasharray: 48;
	stroke-dashoffset: 48;
	animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
	100% {
		stroke-dashoffset: 0;
	}
}

@keyframes scale {

	0%,
	100% {
		transform: none;
	}

	50% {
		transform: scale3d(1.1, 1.1, 1);
	}
}

@keyframes fill {
	100% {
		box-shadow: inset 0px 0px 0px 50px #fff7ed;
	}

	/* Fond orange très clair - orange-50 */
}

/* --- ANIMATION D'ATTENTION (POUR ÉTAPE 5) --- */
@keyframes pulse-orange-border {
	0% {
		box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.5);
		border-color: #f97316;
	}

	/* orange-500 */
	70% {
		box-shadow: 0 0 0 15px rgba(234, 88, 12, 0);
		border-color: #ea580c;
	}

	/* orange-600 */
	100% {
		box-shadow: 0 0 0 0 rgba(234, 88, 12, 0);
		border-color: #f97316;
	}
}

.animate-attention {
	/* L'animation se lance une seule fois à l'apparition */
	animation: pulse-orange-border 2s cubic-bezier(0.4, 0, 0.6, 1) 1 forwards;
}

/* Petit ajustement pour les inputs numériques pour cacher les flèches natives disgracieuses */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

input[type=number] {
	--moz-appearance: textfield;
}

#app {
	width: 100%;
	margin: 0;
	padding: 0;
}