@charset "utf-8";

@font-face {
    font-family: 'futura';
    src: url('fonts/Futura-Std-Light.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'Crimson Text';
    src: url('fonts/CrimsonText-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'Playfair';
    src: url('fonts/PlayfairDisplay-Regular.ttf') format('truetype'),
         url('fonts/PlayfairDisplay-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: 'Alegreya Sans';
    src: local('Alegreya Sans Thin'), local('Alegreya-Sans-Thin'),
        url('fonts/AlegreyaSans-Thin.woff2') format('woff2'),
        url('fonts/AlegreyaSans-Thin.woff') format('woff'),
        url('fonts/AlegreyaSans-Thin.ttf') format('truetype');
    font-style: normal;
  }


.chapeau {
	margin-top: 10px;
	display:flex;
	flex-direction:column;
	align-items:center;
}

h1{
	font-family: 'Alegreya Sans';
	font-size: 40;
	width:350px;
	text-align: center;
	color: rgb(101, 92, 67);
	margin-bottom: 10px;
	padding-bottom: 10px;
	font-weight: 1000;
	
}

.soustitre{
	font-family: 'Alegreya Sans', sans-serif;
	font-size: 30;
	width:250px;
	text-align: center;
	color: rgb(107, 117, 111);
	margin-bottom: 40px;
}

.intro{
	font-family: 'futura';
	border:2px solid rgb(230, 222, 183);
	color: rgb(97, 92, 68);
	text-align: center;
	padding: 20px;
	border-radius: 10px;
	width:95%;
	max-width: 550px;
	margin-bottom: 10px;
	border:2px solid rgb(184, 174, 125);
	
}

.erreurs{
	list-style: none;
	background-color: rgb(238, 84, 84);
	font-family: 'futura';
	color: rgb(109, 25, 25);
	text-align: center;
	padding: 20px;
	border-radius: 10px;
	width:95%;
	max-width: 550px;
	margin-bottom: 10px;
	margin-left:auto;
	margin-right:auto;
}

.fiche_contact {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lot_nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.g-recaptcha{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.form-group {
    margin-bottom: 15px;
    color: rgb(97, 92, 68);
}


legend {
    color:rgb(104, 51, 51);
    font-weight: 500;
}

label {
    display: block;
    margin-bottom: 5px;
}


textarea {
    height: 100px;
    resize: vertical;
}


/* Style de base pour input[type="date"] et input[type="number"] */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
input[type="date"],
input[type="number"] {
    width: 100%;
    padding: 12px 15px; /* Espacement interne généreux */
    border: 1px solid rgb(203, 203, 203); /* Bordure légère */
    border-radius: 6px; /* Coins arrondis */
    box-sizing: border-box;
    font-size: 16px;
    color: rgb(101, 92, 67);
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Animation fluide */
}

/* Style au survol */
input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
textarea:hover,
input[type="date"]:hover,
input[type="number"]:hover {
    border-color: rgb(174, 114, 114);
}

/* Style au focus */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
input[type="date"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: rgb(174, 114, 114);
}

/* Style spécifique pour input[type="date"] */
input[type="date"] {
    position: relative;
}

/* Icône de calendrier pour input[type="date"] (via pseudo-élément) */
input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0; /* Masque l'icône par défaut */
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Ajoute une icône personnalisée pour le champ date */
input[type="date"] {
    background-image: url("images/logos/nav_hor.png");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px; /* Espace pour l'icône */
}

/*NOMBRE*/
/* Style spécifique pour input[type="number"] */
input[type="number"] {
    -moz-appearance: textfield; /* Supprime les flèches par défaut sur Firefox */
}

/* Supprime les flèches de incrémentation/décrémentation sur Chrome/Safari/Edge */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Ajoute des boutons personnalisés pour incrémenter/décrémenter */
input[type="number"] {
    position: relative;
}

input[type="number"]::after {
    content: "+";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #4CAF50;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    pointer-events: none; /* Désactive le clic direct */
}

input[type="number"]::before {
    content: "-";
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: #4CAF50;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    pointer-events: none;
}

/*SELECT*/
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    color: rgb(101, 92, 67);
    background-color: #fff;
    appearance: none; /* Supprime l'apparence par défaut */
    -webkit-appearance: none; /* Pour Safari */
    -moz-appearance: none; /* Pour Firefox */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 30px; /* Espace pour l'icône */
    cursor: pointer;
}


select:hover {
    border-color: rgb(174, 114, 114);
}


select:focus {
    outline: none;
    border-color:rgb(174, 114, 114);
}


select option {
    padding: 8px;
    background-color: #fff;
    color: rgb(101, 92, 67)
}

/* TOOGLE */
select option:checked {
    background-color: #f5f5f5;
}

.field-group {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}
.field-group.active {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
}



.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 15px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(214, 188, 188);;
    transition: .4s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color:rgb(174, 114, 114);
}
input:checked + .slider:before {
    transform: translateX(26px);
}
.switch-label {
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}
.switch-container {
    margin-bottom: 10px;
}

.bordered-section {
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    width:90%;
    margin: 20px auto 0px auto ;
}

.bordered-section legend {
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0 5px;
}

.dynamic-section {
    width:100%;
}