/* STYLE GLOBAL */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background: #fafafa;
	font-size:0.94em;
	max-width: 1700px;
	margin-left:auto;
	margin-right: auto;
	background-color: #3d3d3d ;
	border: 1px solid grey;
}



/* PUCES PERSONNALISEES */
summary {
  list-style: none;      /* supprime le triangle natif */
  cursor: pointer;       /* petit plus : indique qu'on peut cliquer */
  display: flex;         /* pour mieux gérer le placement */
  align-items: center;
  color: #4A422A ;
  font-weight: bold ;
  transition: all 0.5s ease-in-out;
  cursor: help;
}

summary::-webkit-details-marker {
  display: none;         /* supprime aussi dans Chrome/Safari */
}

summary:hover {
color : #A39657 ;
}

summary::before {
  content: "";
  display: inline-block;
  width: 1.1rem;   /* taille de ta puce */
  height: 1.1rem;
  margin-right: 1rem;
  background-image: url('images/deplier.png'); /* ton PNG */
  background-size: contain;
  background-repeat: no-repeat;
}

details[open] p {
	margin-left: 2rem;
	text-align: justify;
}

/* Quand le <details> est ouvert, on change la puce */
details[open] summary::before {
  background-image: url('images/deplier-ouvert.png');
}

details[open] {
	margin-bottom: 2rem;
}

/* HEADER */
:root { --site-max: 1700px; }

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #f7f3e9;
  background: #ffffff ;
  border-bottom: 1px solid #cfcccc;
  z-index: 1000;
  max-width: var(--site-max);
  margin-left: auto;
  margin-right: auto;
}

.header-inner {
  max-width: var(--site-max);
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  position : relative;
    /* ombre très légère vers le bas */
  -webkit-box-shadow: 0px 20px 20px 0px rgba(149, 149, 149, 0.10);
  -moz-box-shadow: 0px 20px 20px 0px rgba(149, 149, 149, 0.10);
  box-shadow: 0px 20px 20px 0px rgba(149, 149, 149, 0.10);
 

  /* Un petit lissage pour éviter l'effet "dur" */
  backdrop-filter: blur(0px); 
}

header .logo {
    font-weight: bold;
	text-align: center;
	text-decoration: none;
	margin-top: 0.3rem;
	margin-bottom: 0.3rem;
	line-height: 1.2;
}

header .logo a {
	text-decoration: none;
}

.margeentete {
	height: 9.2rem;
	background-color: white;
}

[id] {
  scroll-margin-top: 9em;  /* espace réservé = hauteur de ton header */
}

.logoimg {
	width: 4em;
	margin-bottom: 0.3rem;
	margin-top: 0.3rem;
}

.titrelogoserif {
  text-decoration: none ;
  color: black;
  font-family: "Bodoni Moda", serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
  font-size:0.7rem;
}

.imgicon {
	width: 2.5rem;
	transition: all 0.5s ease-in-out;
	cursor: pointer ;
}

.imgicon:hover {
	opacity: 0.7;
}

.lang-switch {
	text-transform: uppercase;
	color: #b88b4a;
	border: 1px solid #b88b4a;
	padding: 0.3rem 0.6rem;
	border-radius: 4px;
	transition: all 0.3s ease-in-out;
}

.lang-switch:hover {
    background-color: #b88b4a;
    color: white;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #222;
}

/* bouton burger : caché en desktop */
.nav-toggle { display: none; }

.burger {
  display: none;            /* visible seulement en mobile */
  cursor: pointer;
  width: 2rem; height: 2rem;
  position: relative;
}

.burger span {
  display: block;
  height: 2px;
  background: #222;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}


.optionmenu {
	color: black;
	cursor: pointer;
    transition: all 0.5s ease-in-out;
}

.optionmenu:hover {
	color: #A39657;
}

.lien-contact {
    color: #b88b4a;
}

section {
	min-height: 28em;
}
.sectapropos {
	min-height: 18em;
}

h2 {
	margin-top: 0;
	margin-bottom: 2rem;
}

.alinkintext {
	text-decoration:none ;
	text-decoration: underline;
	color: #554b2e;
	cursor: pointer;
	transition: all 0.5s ease-in-out;
}

.alinkintext:hover {
	color: #9b8d4b ;
}

.alinkfooter {
	color: white;
	transition: all 0.5s ease-in-out;
	cursor: pointer;
}

.alinkfooter:hover {
	color: lightgrey;
}



section p {
	text-align: justify;
}

/* BLOCS TEXTE + IMAGE */
.bloc {
    display: flex;
	flex-direction: row ;
    flex-wrap: wrap;
    padding: 2rem;
	padding-top: 3rem;
	padding-bottom: 3rem ;
    gap: 2rem;
    align-items: start;
	background-color: white;
}

.bloc .image {
    flex: 1 1 40%;
    /* background: #ddd; */
    height: 100%;
	max-width: 50%;
}

.bloc .image img{
    height: 100%;
	max-height: 24rem;
    width: auto;
	max-width: 100%;	
}


.bloc .texte {
    flex: 1 1 55%;
	max-width:46%;
}

.bloc .txtfulllargeur {
    flex: 1 1 55%;
	max-width:100%;
	text-align: justify;
	max-width:1200px;
}

.inverse {
    flex-direction: row-reverse;

}

.inverse .image img {
	float: right;
}

.secondecouleur {
	background-color: #F5F5F3 ;
}

/* DETAILS (puces déroulantes) */
details {
    margin-top: 1rem;
    cursor: pointer;
}

/* FOOTER */
footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 2rem;
    background: #4d3e2a;
    color: white;
}

footer a {
    color: white;
    text-decoration: none;
}

footer ul {
    list-style: none;
    padding: 0;
}

.imgfooter {
	height: 15rem;
}


.alinkplan {
	color: white;
	transition: all 0.5s ease-in-out;
	cursor: pointer;
	margin-left: 1em;
}

.alinkplan:hover {
	color: lightgrey;
}


/* Formulaire de contact */

.boutonpositif {
	padding: 0.85rem 1.25rem;
	text-align: center;
	background-color: #b88b4a ;
	border-radius: 0.4rem;
	color: white;
	font-weight: bold;
	width: 10rem;
    border: 1px solid #b88b4a;
	cursor: pointer ;
	transition: transform .05s ease, filter .2s ease, box-shadow .2s ease;
    justify-self: start;
	margin-left: auto;
	margin-right: auto;
	margin-top: 2rem;
	margin-bottom: 1rem;
}


.boutonpositif:hover {
	filter:brightness(1.05);
	box-shadow: 0 8px 18px rgba(184,139,74, 0.25);
}

.projetdetail {
	background-color: #eaf5ff;
	border-radius: 0.4rem;
	padding: 2rem;
	margin-top: 1rem;
	margin-bottom: 2rem;
	max-width: 900px;

}





/* ===== Formulaire de contact ===== */

.formulairenew {
	max-width: 900px;
	margin-top: 1rem;
	margin-bottom: 2rem;
	border-radius: 0.4rem;	
    background-color: #f9f9f9;
	padding: 2rem;
}

.formulairenew form {
	display: grid;
    gap: 1rem;
}

.formulairenew form input,
.formulairenew form select,
.formulairenew form textarea {
	padding: 0.6rem;
	border-radius: 0.4rem;
	border: 1px, solid grey;
}

.formulairenew form label {
	font-weight: 600;
}

.formcontact {
  --accent: #b88b4a;            /* ton doré */
  --bg: #ffffff;
  --text: #222;
  --muted: #8a8a8a;
  --border: #ddd;
  --radius: 10px;

  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  max-width: 720px;
}

/* 2 colonnes sur écrans ≥ 900px (nom/prénom/telephone côte à côte) */
@media (min-width: 900px) {
  .formcontact {
    grid-template-columns: 1fr 1fr;
  }
  .formcontact label[for="message"],
  .formcontact #message,
  .formcontact .btncontact {
    grid-column: 1 / -1; /* pleine largeur */
  }
  
  .formulairenew form {
    grid-template-columns: 1fr 1fr;	  
  }
  
  
  
}

/* Labels */
.formcontact label {
  font-weight: 600;
  color: var(--text);
  letter-spacing: .2px;
}

/* Champs */
.formcontact input[type="text"],
.formcontact input[type="tel"],
.formcontact textarea {
  width: calc( 100% - 2rem );
  padding: 0.8rem 0.95rem;
  border: 1px solid #b88b4a;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

/* Placeholder plus doux */
.formcontact ::placeholder {
  color: var(--muted);
  opacity: 0.9;
}

/* Focus accessible */
.formcontact input:focus-visible,
.formcontact textarea:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184,139,74,0.18);
}

/* États de validation HTML5 */
.formcontact input:required:invalid,
.formcontact textarea:required:invalid {
  border-color: #e09;
}
.formcontact input:required:valid,
.formcontact textarea:required:valid {
  border-color: #3aa357;
}

/* Bouton */
.btncontact {
  appearance: none;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .05s ease, filter .2s ease, box-shadow .2s ease;
  justify-self: start; /* aligne à gauche en grille */
}
.btncontact:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 18px rgba(184,139,74,0.25);
}
.btncontact:active {
  transform: translateY(1px);
}

/* Alerte/succès (au cas où tu ajoutes un message PHP) */
.formcontact .form-alert {
  padding: .75rem 1rem;
  border-radius: 8px;
  background: #fff7e9;
  border: 1px solid #ffd89a;
  color: #6b4c12;
}
.formcontact .form-success {
  background: #eefaf2;
  border-color: #bfe7cc;
  color: #165b2d;
}




.msgok {
	padding:1rem;
	background-color: #f0fff0;
	border: 1px solid green ;
	width: 100%;
	max-width: 1700px;
	border-radius:0.5rem;
	margin-top: 1em;
	margin-bottom: 1em;
}

.msgko {
	padding:1rem;
	background-color: #fff0f0;
	border: 1px solid red ;
	width: 100%;
	max-width: 1700px;
	border-radius:0.5rem;
	margin-top: 1em;
	margin-bottom: 1em;
}









/* RESPONSIVE */

/* Petits laptops et tablettes */
@media (max-width: 992px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }

	.bloc .image img {
		width: 100%;
		max-width: 100%;
		height: auto;
	    max-height: 100%;
	}

	.bloc .image {
		max-width: 100%;
	}

	.bloc .texte {
		flex: 1 1 55%;
		max-width:100%;
	}


	/* nav replié par défaut */
	/* #primary-nav ul { */
	nav ul { 
		display: none;          /* on masque la liste */
		flex-direction: column;
		gap: 1rem;
		padding: 0.75rem 0;
		margin: 0;
	}
	
	/* Reduction taille verticale du menu */
	
	.header-inner {
		padding-top: 0rem;
		padding-bottom: 0rem;
	}
	
	.logoimg {
		width: 3em;
		margin-top: 0.2rem;
		margin-bottom: 0rem;
	}	

	.titrelogoserif {
		font-size:0.6rem;
	}
	
	.margeentete {
		height: 4.7rem;
	}
	
	
	/* affichage du bouton burger */
	.burger { 
		display: block;
	}

  /* Le panneau : sous le header, semi-transparent, avec légère ombre */
  #primary-nav {
    position: absolute;
    top: 100%;       /* juste sous la barre du header */
    left: 0;
    right: 0;
    background: rgba(247, 243, 233, 0.9); /* semi-transparence */
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);            /* optionnel : flou du fond */
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 0.75rem 1.25rem;
    z-index: 999;   /* au-dessus du contenu, sous contrôle du header */

    /* masqué par défaut */
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }

  /* Quand on coche la checkbox : on affiche le panneau + la liste */
  .nav-toggle:checked ~ #primary-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
	background-color: #dfdcd8 ;
  }

	.blocimgfooter {
		display: none ;
	}

	.imgfooter {
		display: none ;
	}

	.plansite {
		width: 100%;
	}

	li {
		cursor : pointer;
	}

  .nav-toggle:checked ~ #primary-nav ul {
    display: flex;
  }

  /* anim burger -> croix (si tu l’as déjà, garde-la) */
  .nav-toggle:checked + .burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle:checked + .burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

    .bloc {
        flex-direction: column;
		padding-left: 1.5rem;
		padding-right: 1.5rem;
    }

	footer {
		padding-left: 1.5rem;
		padding-right: 1.5rem;	
	}

    .image, .bloc .image {
        width: 100%;
		height: 200px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }

    .bloc {
        flex-direction: column;
    }

    .image, .bloc .image {
        width: 100%;
        height: 200px;
    }
	
	.projetdetail {
		padding-left: 1rem;
		padding-right: 1rem ;
	    max-width: 100% ;
	}
	
	.projetdetail p {
		max-width: 100%;
	}
	
	.boutonpositif {
		max-width: 60%;
	}
	
	.formulairenew {
		padding-left: 1rem;
		padding-right: 1rem ;		
	    max-width: 100% ;	
	}
	
	.bloc .txtfulllargeur {
		max-width: 100% ;
	}

	.bloc {
		padding-top: 2rem;
	}
	
	.msgok {
		width: auto;
		max-width: 100%;
	}
	
	.msgko {
			width: auto;
			max-width: 100%;
	}
	
}


