

@font-face {
  font-family:'cooper-hewitt';
  src: url(../webfonts/CooperHewitt-Bold.otf); 
  font-weight: 700;
}

@font-face {
  font-family:'cooper-hewitt';
  src: url(../webfonts/CooperHewitt-Light.otf); 
  font-weight: 200;
}

@font-face {
  font-family:'cooper-hewitt';
  src: url(../webfonts/CooperHewitt-Book.otf);
  font-weight: 400;

}
/* ==========================
 BASE
========================== */

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: 'cooper-hewitt', sans-serif;
  background-color: rgb(246, 241, 241);
  color: #000;
  font-size: 1.2em;
}

main {
  flex: 1;
  width: 80%;
  margin: auto;
}


/* ==========================
 HEADER
========================== */

header {
background-color: rgb(250, 250, 250);
width: 100%;
height: auto;
  text-align: center;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 40px 0;
font-family: 'cooper-hewitt', sans-serif;
z-index: 999;
}

.white-header {
  padding: 10px;
  height: 180px;
}

.logo-block {
  margin-left: 8.5%;
  width: 42%;
  text-align: left;
}

.IMD_logo img {
  height: 80px;
  display: block;
}


/* ==========================
 NAVBAR
========================== */
.navbar {
  display: flex;
  gap: 1rem;
margin-left: 14.5%;

}

.encadre-nav {
  border: 1px solid transparent;
  padding: 6px 12px;
  transition: border 0.3s ease, background-color 0.3s ease;
  text-align: center;
  letter-spacing: 5px;
font-family: 'cooper-hewitt', sans-serif;

}

.encadre-nav:hover {
  border: 1px solid;
  border-image-slice: 1;
  border-image-source: linear-gradient(to right, #000, #000); 
  background-color : #f0f0f0; 
}


.encadre-nav a {
  text-decoration: none;
  color: rgb(0, 0, 0);
  font-size: 0.9rem;
}


.actif {
  color: #777;
  text-decoration: underline;
}

/* ==========================
 NAV BUTTON
========================== */
.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 10px 20px;
margin-top: 1%;
font-size: 0.9rem;
  text-decoration: none;
  color: #000;
  letter-spacing: 3px;
}

.nav-button:hover {
  color: #ababab;
}

.icon-arrow {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.icon-arrow:hover {
  color: #ababab;
}

/* ==========================
   TEXT
========================== */
h1 {
  font-weight: 200;
  font-size: 30px;
font-family: 'cooper-hewitt', sans-serif;
}

h3 {
  font-weight: 300;
font-size: 25px;
}


p {
	font-family: 'cooper-hewitt', sans-serif;
	font-weight: 200; 
    font-size: 20px;
  }

  figcaption {
	font-family: 'cooper-hewitt', sans-serif;
	font-weight: 200;  
	font-size: 20px;
	letter-spacing: 2px;
	margin: 25px auto;
	text-align: left;
  }

  /* ==========================
   IMAGE ROW
========================== */

  .image-row {
	display: flex;             
	justify-content: center;   
	gap: 0px;
	
	
  }
  
  .image-row figure {
    margin-top: 30;                 
    text-align: left;
}

  
  .image-row img {
	max-width: 570px;           
	height: auto;
	text-align: left; 
	             
	
  }
  
  .hover-scale {
	width: 600px;
	height: auto;
	transition: transform 0.3s ease; 
  }
  
  .hover-scale:hover {
	transform: scale(1.1); 
  }

.actif {
	color: #777;
	text-decoration: underline;
}
  
.image-row video {
    width: 650px;          
    height: auto;          
    display: block;
    object-fit: cover;     
    transition: transform 0.3s ease;  
}

.image-row video:hover {
    transform: scale(1.05);  
}


/* ==========================
   VIDEO SECTION
========================== */

.video-section {
	display: flex;           
	flex-wrap: wrap;         
	gap: 20px;              
	justify-content: center; 
  }
  
  .video-section figure {
	flex: 1 1 45%;    
	max-width: 630px;        
	margin: 20px;
  }
  
  .video-section video {
	width: 100%;            
	height: auto;            
	display: block;
	object-fit: contain;
  }

  /* ==========================
   ENCADRE
========================== */
.encadre {
    width: 600px;
    margin: 0;
    letter-spacing: 1px;
    text-align: left;
    font-weight: 200;
    transform: translateX(-40px);
}

.encadre p {
    font-size: 20px;
    line-height: 1.6;
    max-width: 850px;
    margin: 0 auto;
}


  /* ==========================
   FOOTER
========================== */
footer {
    background-color: rgb(250, 250, 250);
    width: 100%;
    padding: 60px 0;
	margin: 5em 0;
    text-align: center;
	z-index: 1000;
}
	
  

  /* ==========================
   BASE (DESKTOP DEFAULT)
========================== */
.video-section,
.image-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.video-section figure,
.image-row figure {
  flex: 1 1 45%;
  max-width: 700px;
  margin: 10px;
}

.video-section video,
.image-row img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
}

/* ==========================
   TABLET (769px–992px)
========================== */
@media screen and (min-width: 769px) and (max-width: 992px) {
  .video-section,
  .image-row {
    gap: 30px;
    max-width: 1100px;
  }

  .video-section figure,
  .image-row figure {
    flex: 1 1 48%;
    max-width: 650px;
    margin: 10px;
  }

  .video-section video,
  .image-row img {
    width: 100%;
    height: auto;
  }
}

/* ==========================
   MOBILE (max-width: 768px)
========================== */
@media (max-width: 768px) {

  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 999;
  }

  body { 
    font-size: 16px;
    line-height: 1.6;
    font-family: 'cooper-hewitt', sans-serif;
    padding-top: 200px;
    text-align: center;
  }

  .logo-block {
    width: 100%;
    text-align: right;
  }

  .IMD_logo img {
    height: 60px;
  }

  .navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0;
  }

  .encadre-nav {
    width: auto;
    border: none;
    padding: 1px 0;
    text-align: center;
  }

  .encadre-nav a {
    font-size: 16px;
    letter-spacing: 2px;
  }

  .nav-button {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 16px;
    text-decoration: none;
    letter-spacing: 2px;
  }

  /* Responsive images & video */
  .video-section,
  .image-row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 5%;
    max-width: 100%;
  }

  .video-section figure,
  .image-row figure {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .video-section video,
  .image-row img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  figcaption {
    font-size: 18px;
    letter-spacing: 1px;
    text-align: left;
  }

  .encadre {
    width: 90%;
    margin: 0 auto;
    text-align: left;
  }

  .encadre p {
    font-size: 18px;
    line-height: 1.6;
  }

  h1 {
    font-weight: 200;
    font-size: 30px;
  }
}

/* ==========================
   SMALL MOBILE (max-width: 480px)
========================== */
@media screen and (max-width: 480px) {

  .encadre-nav a {
    font-size: 14px;
  }

  .nav-button {
		display: inline-flex;
		align-items: left;
		gap: 1rem;
		padding: 10px 20px;
		font-size: 16px;
		text-decoration: none;
		color: #000;
		letter-spacing: 3px;
        transform: translateX(-96px);
	}

  .image-row img,
  .image-row video {
    max-width: 350px;
  }

  .encadre p {
    font-size: 14px;
  }

  figcaption {
    font-size: 16px;
    letter-spacing: 2px;
  }

  h1 {
    font-size: 22px;
  }
}
