@font-face {
 font-family: "Satisfy";
 src: url("fonts/Satisfy-Regular.ttf") format("truetype");
        
}

/* CSS Document */
body {
  	margin: 0; 
	padding: 0;
	height: 100%;
	background-color: rgba(49,79,79,0.75) ;

}

/* début du menu  grand ecran*/

	.sidenav {
		background-color: darkslategray; 
		padding: 1px; 
		color: honeydew; 
	}
	#closeBtn{
		 visibility: hidden;
	}
	#menu {
		display: flex; 
		justify-content: space-around; 
		font-size: 1.7em; 
		list-style-type: none;
	}

	#menu li a {
		color: honeydew;
		text-decoration: none;
	}
	nav ul li ul {
	    display: none;
	}
	.sous li {
	    padding-top: 15px;
	}
	nav ul li:hover .sous{
		z-index: 99999;
	    display: list-item;
	    list-style-type: none;
	    position: absolute;
	    background-color: rgb(30, 70, 70, 0.8);
	    padding: 5px;

	}
	nav ul li:hover ul li {
	    float: none;
	} 
	.deconect{
		font-size: 0.5em; 
		position:absolute; 
		top: 3px; 
		right: 15px;
	}
/* fin du menu  */


/* Index */
/* Général */
body {
    font-family: 'Arial', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Section titres */
section h1 {
    text-align: center;
    font-size: 2rem;
    margin: 20px 0;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
    display: inline-block;
}

/* Formulaires */
form {
    max-width: 700px;
    margin: 30px auto;
    
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.style_form{
	padding: 20px 30px;
}

form label {
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
    color: #555;
}

form input[type="text"],
form input[type="date"],
form textarea,
form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

form input[type="text"]:focus,
form input[type="date"]:focus,
form textarea:focus,
form select:focus {
    border-color: #4CAF50;
    outline: none;
    background-color: #fff;
}

form textarea {
    height: 100px;
    resize: vertical;
}

form button {
    background-color: #4CAF50;
    color: #fff;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #45a049;
}

form .btn-secondary {
    background-color: #f44336;
    margin-left: 10px;
}

form .btn-secondary:hover {
    background-color: #e53935;
}

/* Tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 16px;
    text-align: left;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

table th,
table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

table th {
    background-color: #f4f4f4;
    color: #2c3e50;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #e9f5e9;
}

table .btn {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.3s ease;
}

table .btn:hover {
    opacity: 0.85;
}

table .btn-primary {
    background-color: #2196F3;
}

table .btn-primary:hover {
    background-color: #1976D2;
}

table .btn-danger {
    background-color: #f44336;
}

table .btn-danger:hover {
    background-color: #d32f2f;
}

/* Messages d'alerte */
.alert {
    max-width: 700px;
    margin: 20px auto;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert-error {
    background-color: #ffebee;
    color: #b71c1c;
    border: 1px solid #ffcdd2;
}

/* Boutons généraux */
/* Boutons généraux */
.btn {
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.1s ease;
    cursor: pointer;
    border: none;
    color: white;
}

/* Effet au survol */
.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Bouton Modifier */
.btn-primary {
    background-color: #4CAF50;
}

.btn-primary:hover {
    background-color: #45a049;
}

/* Bouton Supprimer */
.btn-danger {
    background-color: #f44336;
}

.btn-danger:hover {
    background-color: #d32f2f;
}

/* Styles pour la modale */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.image-modal .modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border: 5px solid white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.image-modal .close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.image-modal .close-modal:hover,
.image-modal .close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}





	#sectionIndex{
		margin: 0;
		padding: 0;
	}

	#imgIndex {
		height: 600px;
		background-image: url("../img/sheeps-ga0b58e5cc_1280.jpg");
		background-size: cover;
		background-position: 0px 100px ;
		background-repeat: no-repeat;

		
	}
	#imgIndex div{
		padding: 2% 2%;
	}
	#imgIndex div h1 {
		margin: 0;
		
		Font-family:  Satisfy, Géorgie, serif;
		color: darkslategray;
		width: 250px;
		padding: 2% 2%;
		font-size: 3em;
		font-weight: 500;
		border: 3px solid black; 
		box-shadow: 1px 1px 5px 5px white;
		background-color: rgb(202, 214, 186,0.3); 
		
	}
	#sectionIndex div h2{
		Font-family:  Satisfy, Géorgie, serif;
		-webkit-text-stroke: 0.05px gainsboro;
		font-weight: 500;
		font-size: 2em;
	}

	#sectionIndex div p{
		Font-family:  Satisfy, Géorgie, serif;
		
		font-weight: 500;
		font-size: 1.4em;
	}

	#imgIndex2{
	display: flex;
	flex-wrap: wrap;
	justify-content:space-around;
}
#imgIndex2 img{
	width: 40%;
	min-width: 400px;
	margin: 20px;
	border-radius: 20px;
	box-shadow: 10px 5px;
}


/* Fin index */

/* concordance pages  */
	section {

	}

/* fin concordance pages  */



/* Formulaire de filtre épuré */
form.filtre {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px; /* Espacement entre les champs */
    padding: 10px 15px;
    background-color: #f8f9fa; /* Fond légèrement gris */
    border: 1px solid #ddd; /* Bordure subtile */
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Léger effet d'ombre */
    margin-bottom: 15px;
}

form.filtre label {
    font-size: 14px;
    font-weight: 600; /* Texte légèrement plus gras */
    color: #495057; /* Couleur neutre et professionnelle */
    margin-right: 8px;
}

form.filtre input[type="text"],
form.filtre select {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
    color: #495057;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    min-width: 200px; /* Taille minimale pour une bonne lisibilité */
}

form.filtre input[type="text"]:focus,
form.filtre select:focus {
    border-color: #007bff; /* Couleur de focus bleue */
    box-shadow: 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

form.filtre button {
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

form.filtre button:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

form.filtre .btn-secondary {
    background-color: #6c757d;
    color: #fff;
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

form.filtre .btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    form.filtre {
        flex-wrap: wrap; /* Les champs passent sur plusieurs lignes */
        justify-content: space-between;
    }

    form.filtre label {
        margin-bottom: 5px;
    }

    form.filtre input[type="text"],
    form.filtre select {
        min-width: 100%; /* Les champs prennent toute la largeur */
    }

    form.filtre button {
        width: 100%; /* Les boutons s'étendent sur toute la largeur */
    }
}




/* Votre espace css */

	#sectionEspace{
		height: 90vh;
		background-image: url("../img/champs.jpg");
		background-size: cover;
		background-position: center;
	}
	#articleEspace{
		display: flex;
		justify-content: space-around;

	}
	.divEspace{
		margin-top: 20px;
		padding: 10px;
		background-color: rgb(202, 214, 186,0.3); 
		border: 3px solid darkslategray;
		text-decoration: none;
		color: black;  
	}
	#animaux{
		background-image: url(../img/paturage.jpg);
		background-position: center;
		background-size: cover;
		height: 90vh;
		margin: none;
	}

	#animaux h2{
		margin-block-start: 0;
	}
	body:has(> #animaux){
		background-image: url(../img/paturage.jpg);
		background-position: center;
		background-size: cover;
		height: 100%;
	}

	#batiment{
		background-image: url(../img/ferme.jpg);
		background-position: center;
		background-size: cover;
		height: 90vh;
		margin: none;

	}

	#batiment h2{
		margin-block-start: 0;
	}

body:has(> #batiment){
		background-image: url(../img/ferme.jpg);
		background-position: center;
		background-size: cover;
		height: 100%;
	}

	#garage{
		background-image: url(../img/garage.jpg);
		background-position: center;
		background-size: cover;
		height: 90vh;
		margin: none;

	}

	#garage h2{
		margin-block-start: 0;
	}

	body:has(> #garage){
		background-image: url(../img/garage.jpg);
		background-position: center;
		background-size: cover;
		height: 100%;
	}



/* Fin votre espace css */


/* formulaire de contact */


#fcf-form {
    display:block;
}

.fcf-body {
    margin: 0;
    font-family: -apple-system, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: left;
    padding: 30px;
    padding-bottom: 10px;
    max-width: 100%;
}

.fcf-form-group {
    margin-bottom: 1rem;
}

.fcf-input-group {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: stretch;
    align-items: stretch;
    width: 100%;
}

.fcf-form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    outline: none;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.fcf-form-control:focus {
    border: 1px solid #313131;
}

select.fcf-form-control[size], select.fcf-form-control[multiple] {
    height: auto;
}

textarea.fcf-form-control {
    font-family: -apple-system, Arial, sans-serif;
    height: auto;
}

label.fcf-label {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.fcf-credit {
    padding-top: 10px;
    font-size: 0.9rem;
    color: #545b62;
}

.fcf-credit a {
    color: #545b62;
    text-decoration: underline;
}

.fcf-credit a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.fcf-btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: white;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out,
    	background-color 0.15s ease-in-out, 
    	border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;

}

/* fin formulaire */




/* RESPONSIVE CSS */

@media screen and (max-width: 1100px){

#imgIndex {
	background-position: 0px 0px ;
	
}
#sectionIndex div h2{
		-webkit-text-stroke: 0px gainsboro;
		font-size: 2.5 em;
	}
#sectionIndex div p{
		font-size: 2em;
	}

	.articles {
	font-size: 1.7em;
}
.divEspace{
	font-size: 1.7em; 
	}


/* Sidenav menu */
.sidenav {
  height: 60%;
  width: 250px;
  position: fixed;
  z-index: 1;
  top: 0;
  left: -250px;
  background-color: darkslategray;
  padding-top: 60px;
  transition: left 0.5s ease;	
  
}
#closeBtn{
	visibility: visible;
}
.deconect{
	
	top: 450px; 
	font-size: 0.5em; 
	right: 15px;
}
#menu {
	display: block;
	list-style-type: none;
  padding: 0;
  margin: 0;

}

/* Sidenav menu links */
.sidenav a {
  
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.sidenav a:hover {
  color: #111;
}

/* Active class */
.sidenav.active {
  left: 0px;
}

/* Close btn */
.sidenav .close {
  position: absolute;
  top: 0;
  right: 25px;
  
}
.burger-icon span {
  display: block;
  width: 35px;
  height: 5px;
  background-color: black;
  margin: 6px 0;

}
nav ul li:hover .sous{
	position: absolute;
	width: 200px;
	left: 100px;
	font-size: 0.7em;

}
.sous li{
	padding: 0px;
	margin: 0;
}
	

}
