/* === FONT-FACES=== */
/* Cinzel Decorative */
@font-face {
    font-family: "Cinzel Decorative";
    src: url("../font/cinzeldecorative-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Quicksand */
@font-face {
    font-family: "Quicksand";
    src: url("../font/quicksand-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
/* === TEXTES === */

a {
	color: #233;
	text-decoration: none;

}
a:hover {
  color: #B7FBF8;
}
li {
	list-style-image: none;
	list-style-type: none;
}

p {
	font-size: 1rem;
	line-height: 1.6;
	color: #233;

}

h1, h2, h3, h4 {
    margin: 5px;
	color: #000040;
}
h1 {
	font-family: "Cinzel Decorative", serif;
	font-size: 2rem;
	padding: 20px;
	text-align: center;
}
h2 {
	font-size: 1.3rem;
	padding: 5px;
	text-align: center;
}

h3 { font-size: 1.2rem;}

h4 { font-size: 1.1em;}

h2, h3, h4 {
 font-variant: small-caps;

}


/* === STRUCTURE === */
body {
	word-wrap: break-word;
	margin: 0;
	padding: 0;
	background-color: #99CCCC;
	font-family: "Quicksand", sans-serif;
	color: #FFFFFF;

}
#wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0px;
	background-color: #339999;
	box-sizing: border-box;	
}
/* --- HEADER / BANNIÈRE --- */

header {
    height: 60vh;                    /* 70% de la hauteur de l’écran */
    width: 100%;
    background-image: url("../images/banniere-accueil.png");
    background-size: cover;
    background-position: center;
	 background-position: center bottom;
    background-repeat: no-repeat;

    display: flex;
    align-items: flex-start;         /* ?? texte en haut */
    justify-content: center;

    text-align: center;
    position: relative;
    color: white;
    padding-top: 5vh;                    /* espace depuis le haut proportionnel */
}

.header-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}


main {
  width: 100%;
  box-sizing: border-box;
}

/* === menu main === */
.menu-main {
  background-color: #3E7B7B;
  padding: 20px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* items responsives */
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-grid li {
	text-align: center;
	background-color: #81C0C0;
	margin: 5px;
	padding: 5px;
	color: #408080;

}

.menu-grid a {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: #FFFFFF;
	font-variant: small-caps;

}

.menu-grid img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.menu-grid a:hover {
  opacity: 0.8;
}
/* === sections === */
section {
   width: 100%;
   padding: 10px;
  text-align: center;
   box-sizing: border-box;
}
.section1 {
  background: linear-gradient(155deg, #E6FAFA 0%, #81C0C0 100%);
}
.section2 {
	background-color: #339999;

}
#section-contact {
  background-color: #3E7B7B;
}

/* === articles === */

article{
	max-width: 900px;
	width: 100%;
	margin: 10px auto;
	padding: 10px 20px;
	box-sizing: border-box;
	text-align: left;
}
.article-1 {
	background-color: #FFFFFF;
	 box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}


.aside{
	max-width: 600px;
	background-color: #FFFFFF;
	text-align: left;
	padding: 10px;
	border-radius: 12px;
	box-shadow: 0 6px 20px rgba(0,0,0,0.08);
	margin-right: auto;
	margin-left: auto;


}
.presentation {
	max-width: 600px;
	background-color: #FFFFFF;
	padding: 20px;
	border-radius: 15px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	margin: 20px auto;
	font-style: italic;
	text-align: left;
}

/* === style === */
img {
    max-width: 100%;
    height: auto;
}
.content-wrapper {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  flex-wrap: wrap; /* responsive mobile */
}

article {
  flex: 1;
  min-width: 250px;
  line-height: 1.7;
  color: #233;
}

.aside {
  flex: 0 0 300px;
  background-color: #fefefe;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  min-width: 250px;
  align-self: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

pre {
    white-space: pre-wrap;
}
.centre {
	text-align: center;
}
.textesombre {
	color: #333333;

}
.txt-centre-gras {
	font-weight: bold;
	text-align: center;
}
.blanc {
	font-weight: normal;
	font-variant: small-caps;
	color: #FFFFFF;
}

hr {
  border: none;
  background-color: #FFFFFF;
  width: 100px;
  height: 1px;
}


/* === FOOTER === */
footer {
  background: linear-gradient(155deg, #E6FAFA 0%, #81C0C0 100%);
  font-size: 0.95rem;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 1rem;
}

.footer-left, .footer-right {
  flex: 1;
  min-width: 280px;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.footer-menu li {
  margin-bottom: 0.5rem;
}

.footer-menu a {
  color: #003366;
  transition: color 0.3s;
}

.footer-menu a:hover {
  color: #7a5e48;
  text-decoration: underline;
}

.footer-right img {
  margin-right: 10px;
  vertical-align: middle;
}

.footer-logo {
  margin-top: 1.5rem;
}

.footer-bottom {
	background-color: #339999;
	padding: 1rem;
	font-size: 0.85rem;
	color: #FFFFFF;
	text-align: center;
	width: 100%;
  	box-sizing: border-box;
}

/* === RESPONSIVE === */

/* Responsive : tablette */

@media screen and (max-width: 980px) {
  header {
        height: 40vh;                   /* un peu moins haut pour petit écran */
        padding-top: 3vh;
    }
	 h1 {
    font-size: 1.5em;
    padding: 10px;
  }

  h2, h3, h4 {
    font-size: 1.2rem;
  }

   #wrapper {
    padding: 10px;
    margin: 20px auto;
  }

  .presentation {
    padding: 15px;
  }
}

@media (max-width: 768px) {
   .menu-grid {
    grid-template-columns: 1fr; /* chaque item prend toute la largeur */
  }

  .menu-grid li {
    margin: 0 auto 10px; /* espace entre les items */
    width: 100%;
  }

  .menu-grid img {
    max-width: 80%; /* optionnel : réduire légèrement les images */
  }
    header h1 {
        font-size: clamp(1rem, 5vw, 1.5rem);
    }

    header h2 {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
    }
	.content-wrapper {
    flex-direction: column;
  }

  .aside {
    width: 100%;
    margin-top: 20px;
  }
}
