/* CSS Document */
/* === TEXTES === */
/* 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;
}
a {
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
   color: #37687B;
}

a:hover {
  color: #1a6f6f;
  background-color: #b4ecec;
}

p {
	font-size: 1rem;
	line-height: 1.6;
	color: #1b3b40;
}

h2, h3, h4 {
	margin: 10px 10px 20px;
	padding: 10px;
}
h1, h2, h3, h4 , h5, h6{
	color: #295454;
}
h2, h3, h4 {
 font-variant: small-caps;
}
h1 {
	font-family: "Cinzel Decorative", serif;
	font-size: 2rem;
	padding: 20px;
	text-align: center;
}
h2 {
	font-size: 1.8rem;
	padding: 10px;
	text-align: center;
}
h3 { font-size: 1.5rem;}
h4 { font-size: 1.3em;}
h5 {
	font-size: 1.1em;
	font-variant: small-caps;
}
h6 {
	font-size: 1.1em;
}
li {
	list-style: none;
	color: #1b3b40;
}
/* === MENUS === */
/* menus hearder */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: #FFF;

}
.nav-header {
	display: flex;
	align-items: center;
	padding: 10px;
	position: relative;
}

.header-menu {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.header-menu li {
	flex: 1;
	color: #316262;

}
.header-menu a {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #003366;

  font-size: 15px;
  font-weight: 500;         
  letter-spacing: 0.3px;     /* ?largit un peu la lettre, effet premium */
  line-height: 1.25;         /* interligne ?l?gante et ?quilibr?e */
  padding: 12px 8px;         /* hauteur harmonieuse */
  white-space: normal;       /* permet le retour ? la ligne */
  height: auto;
}

.header-menu a:hover {
  background-color: #666;
  color: #FFF;
}

.menu-icon {
  display: none;
  cursor: pointer;
  padding: 5px;
}

.menu-icon img {
  width: 30px;
}

#toggle {
  display: none;
}


/* === STRUCTURE === */
body {
	word-wrap: break-word;
	margin: 0;
	padding: 0;
	background-color: #99CCCC;
	font-family: "Quicksand", sans-serif;
	color: #FFFFFF;

}
#wrapper {
	max-width: 1600px;
	margin: 0 auto;
	background-color: #E6FAFA;
	box-sizing: border-box;	
}
/* --- HEADER / BANNI?RE --- */

header {
    height: 50vh;                    /* 50% de la hauteur de ecran */
    width: 100%;
    background-image: url("../images/banniere-accueil.webp");
    background-size: cover;
	 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;
}
/* === sections === */
section {
   width: 100%;
   padding: 10px;
  text-align: center;
   box-sizing: border-box;
}
.section-introduction {
background: radial-gradient(
  circle at center,
  #E6FAFA 0%,
  #CBEAEA 45%,
  #81C0C0 100%);
   text-align: center;
}
.section1 {
  background: linear-gradient(155deg, #E6FAFA 0%, #81C0C0 100%);
}
.section2 {
  background: linear-gradient(155deg, #81C0C0 0%, #E6FAFA  100%);
}
.section-sombre{
    background-color: #3E7B7B;
   color: #ffffff;
}
.section-sombre p, 
.section-sombre h2 {
  color: #ffffff;
}
.section-introduction,
.section-sombre,
#section-contact {
  padding: 80px 20px;
}
#section-contact {
 background-color: #073a4a;
}
#section-contact p, 
#section-contact h2,
#section-contact h5,
#section-contact a {
  color: #ffffff;
}

/* === SECTION 3 : 2 COLONNES RESPONSIVE === */

.section3 {
  background-color: #81C0C0;
  padding: 0; /* pleine largeur */
}
.section3-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 colonnes ?gales */
  min-height: 60vh;
  width: 100%;
}
.section3-texte {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #ffffff;
  line-height: 1.8;
}
.section3-image {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	background-color: #FFFFFF;
}
.section3-image img {
  max-width: 320px;   /* ? limite la taille */
  width: 100%;
  height: auto;
  object-fit: contain; /* pas de zoom */
}

/* === articles === */

article{
	max-width: 900px;
	width: 100%;
	margin: 10px auto;
	padding: 10px 20px;
	box-sizing: border-box;
}
.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;
}

/* === 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: 10px 5px 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;
}


/* === 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-color: #E6FAFA;
  padding: 40px 20px;
  font-family: sans-serif;
}

.footer-cadre {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-column {
  flex: 1 1 300px;
  margin-bottom: 20px;
}

.footer-logo img {
  max-width: 150px;
  height: auto;
  margin-bottom: 15px;
}
.footer-column p {
  line-height: 1.6;
}

.social-icons {
  margin-top: 15px;
}
.social-icons a {
  margin-right: 10px;
}

.footer-bottom {
	border-top: 1px solid #244848;
	margin-top: 20px;
	padding-top: 20px;
	text-align: center;
	font-size: 0.9rem;
}

/* Responsive */

@media (max-width: 800px) {
  /* afficher l?ic?ne */
  .menu-icon {
    display: block;
  }

  /* menu cach? */
  .header-menu {
    flex-direction: column;
    display: none;
    width: 100%;
    background: #FFF;
    border-top: 1px solid #CCC;
  }
  .header-menu li {
    flex: none;
    width: 100%;
  }

  .header-menu a {
    padding: 12px 0;
    height: auto;
    line-height: normal;
    border-bottom: 1px solid #EEE;
  }
/* afficher menu SI checkbox coch?e */
  #toggle:checked ~ .header-menu {
    display: flex;
  }
  
  
.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 {
        height: 40vh;                   /* un peu moins haut pour petit ?cran */
        padding-top: 3vh;
    }

h1 {
    font-size: 1.6em;
    padding: 10px;
  }

  h2 {
    font-size: 1.5rem;
  }
  h3, h4 {
    font-size: 1.3rem;
  }
  .presentation {
    padding: 15px;
  }

   #wrapper {
    padding: 10px;
    margin: 20px auto;
  }
   
    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;
  }
  .section3-grid {
    grid-template-columns: 1fr;
  }

  .section3-image {
    height: 300px;
  }

  .section3-image img {
    height: 100%;
  }
   .footer-menu li {
    display: block;
    margin: 5px 0;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }

  .footer-left, .footer-right {
    min-width: 100%;
  }

  .footer-right img {
    margin: 0 8px;
  }

  .footer-logo img {
    width: 140px;
    height: auto;
  }
}

