@font-face {
	font-family: 'Hero';
	src: url('fonts/Hero-Regular.ttf') format(‘truetype’),
		url('fonts/Hero-Regular.otf') format(OpenType ),
}
@font-face {
	font-family: 'Hero';
  font-weight: 700;
	src: url('fonts/Hero-Bold.ttf') format(‘truetype’),
		url('fonts/Hero-Bold.otf') format(OpenType ),
}
@font-face {
	font-family: 'Hero';
  font-weight: 200;
	src: url('fonts/Hero-Light.ttf') format(‘truetype’),
		url('fonts/Hero-Light.otf') format(OpenType ),
}

:root{
  /*variables*/
  --main-color: #0b4b6e;
  --secondary-color: #b60a54;
  background: linear-gradient(45deg, #ffffff, #ffe5e5 );

  /*police*/
  font-family: 'Hero';
  font-size : 15px;
  color: var(--main-color);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

h1 {    
  font-size: 3.5rem;
}

h2 {
  font-size: 3rem;
  color: white;
}

h3 {
  font-size: 2.8rem;
  color: var(--secondary-color);
}

h4 {
  font-size: 2rem;
}

h5 {
  font-size: 1.4rem;
  color: var(--secondary-color);
}

.flex-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content:space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content:space-between;
}

.flex-nowrap {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content:space-between;
}

.box-shadow {
  box-shadow: 0px 2px 4px gray;
}

.border-radius {
  border-radius: 12px;
}

.padding {
  padding : 15px;
}

/*en-tête*/

header {
  gap: 3vh;
  background-color: white;
  position: sticky;
  top: 0;
  overflow: hidden;
  width : 100%;
  z-index: 1;
}

nav {
  font-size: 1.8rem;
}

.liens-normaux a{
  text-decoration: none;
  color: var(--main-color);
  margin : 1vh;
}

.dropdown {
  display:none;
}

.dropdown-menu {
  background-color: white;
  width : 100%;
  position: relative;
  font-size: 1.8rem;
  margin-top: 10px;
}

.dropdown-menu a:hover {
  background-color: #fbeded;
}



.menu-toggle {
  border: none;
  background: none;
  cursor: pointer;
}

.menu-toggle i {
  font-size: 1.8rem;
}

img[title="NERITHIS"] {
    width: 11vh;
    height: auto;
}

/*boutons*/
.bouton-rond {
  min-width: 120px;
  height : 7vh;
  padding: 12px 24px;
  border-radius: 8vh;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  color: white;
}

.back-red {
  background-color: var(--secondary-color);
  color: white;
  transition: background-color 0.3s ease;
}

.back-red:hover {
  background-color: #8f0440;
}

.back-blue {
  background-color: var(--main-color);
  color: white;
  transition: background-color 0.3s ease;
}

.back-blue:hover {
  background-color: #0e6493;
}



/*main*/
main {
  max-width:1280px;
  margin: 0 auto;
}

.banniere {
  background: url('../images/banniere2.png');
  background-attachment: fixed; 
  background-repeat: no-repeat;
  background-size: cover;
  background-position-x: 40%;
  height :40vh;
  padding-right : 1.5vh;
  margin-top: 2vh;
  width: 100%;
  
}

.content-right{
  justify-content: right;
}

.banniere p {
  margin-top: 10px;
}

.fond-bleu{
  background: #bed4dd;
  margin-top: 2vh;
  width: 100%;
  align-items: baseline;
}

.col {
  flex :1;
  margin: 2vh;
  text-align: left;

}

.white-border {
  border-left: solid 0.6vh #ffffff ;
}

.white-text p, .white-text li {
  color: #ffffff;
}

.center {
  max-width: 900px;      /* largeur maximale souhaitée */
  width: 100%;           /* prend toute la largeur dispo */
  margin: 0 auto;        /* centre horizontalement */
  padding: 0 5vh;       /* petit padding pour aérer sur petits écrans */
  text-align: center;    /* centre le texte dans le bloc */
}


.col:has(img){
  text-align: center;
}

img[title="SCHEMA"] {
  flex : 1;
  width: 60vw;
  max-width: 600px;
  height: auto;
}

p span {
  font-weight: bold;
}

.photos img {
  height : 20vh;
  width : 20vh;
  border: 1vh solid white;
  border-radius : 100%;
}

.box-shadow-blue{
  box-shadow: 6px 6px 6px var(--main-color);
}

.grid-projets {
  margin: 0px auto 6rem;
  display: grid;
  max-width: calc(1280px + 2rem);
  padding: 0px 1rem;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.projet {
  margin: 0px auto;
  padding: 1rem;
  border-radius: 2rem;
  box-shadow: var(--main-color) 1px 1px 1px 1px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  height: auto;
  overflow: hidden;
}

.img-projet{
  display: flex;
  width: 100%;
  height: auto;
  background-size: 100%;
  background-position: center top;
  background-repeat: no-repeat;
  border-radius: 0.8rem;
  border: 1px solid rgba(43, 105, 251, 0.12);
}

.texte-projet {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1rem;
  padding: 0rem 1rem;
  color: rgb(10, 0, 27);
  margin-top: 47%;
  background: rgb(250, 254, 255);
  box-shadow: rgb(250, 254, 255) 0px 0px 4rem 6rem;
}

.texte-projet h5{
  margin:2px;
}

.img-projet, .texte-projet { 
  grid-area: 1 / 1 / -1 / -1;
  position: relative;
}






@media all and (max-width: 700px) {
  header {
    position: inherit;
  }

  .menu {
    display: none;
  }

  #contact {
    display: none;
  }

  .dropdown{
    display: block;
  }

  .dropdown-menu{
    display: none;
  }

  .menu-toggle i {
    color: var(--secondary-color);
  }

  img[title="SCHEMA"] {
    width:80vw;
  }

  .grid-projets{
    grid-template-columns: 1fr;
  }
}
