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

@font-face {
  font-family: "plain-regular";
  src: url("assets/fonts/plain/Plain-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "plain-thin";
  src: url("assets/fonts/plain/Plain-Thin.woff2") format("woff2");
}

@font-face {
  font-family: "plain-medium";
  src: url("assets/fonts/plain/Plain-Medium.woff2") format("woff2");
}


h2 {
  margin: 0;
  padding: 0;
  font-weight: normal;
  font-size: inherit;
  line-height: inherit;
  margin-top:1.3em;
  margin-bottom:0.5em
}

html, body {
  padding: 0;
  margin: 0;
  overflow-x: hidden; /* ← important sur mobile */
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #FDEDDC;
  font-family:"plain-regular", sans-serif;
  line-height: 1.4em;
  color:#3D131C;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 42px;
  height: 42px;

  border-radius: 50%;
  border: none;
  background: linear-gradient(to bottom, #f45501, #cc0127);
  color: white;
  font-size: 20px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  z-index: 9999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo-img {
  width: 160px;
  height: auto;
}

.site-header__nav {
  display: flex;
  gap: 1.5rem;
  color:#000000;
}

.site-header__nav a{
  color:#000000;
  text-decoration: none;
}

.hero_old {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.hero {                          
  margin-left: calc(50% - 50vw);              
  margin-right: calc(50% - 50vw);
  margin-top: 0px;
  margin-left:10px;
  margin-right:10px;

  background-image: url("assets/img/bienvenue_po.png");   
  background-size: contain;                   
  background-position: top center;            
  background-repeat: no-repeat;

  height: auto;
  aspect-ratio: 16 / 16;                       
  padding: 0;  
}

/* Version mobile */
@media (max-width: 700px) {
  .hero {
  margin-left: calc(50% - 50vw);              
  margin-right: calc(50% - 50vw);
  margin-top: 0px;

  background-image: url("assets/img/bienvenue_po_mobile.png");   
  background-size: contain;                   
  background-position: top center;            
  background-repeat: no-repeat;

  height: auto;
  aspect-ratio: 4 / 5.8;                       
  padding: 0;  
  }

  .logo-img {
  width: 130px;
  }


}


.hero__content {
  max-width: 700px;
}

.programme-lien{
  display: flex;
  flex-direction: column;
  gap: 8px; 
}


.programme-lien a{
  text-decoration: none;
  color:#3D131C;
}


.formation__title {
  font-weight:normal;
  font-size: 2.3em;
   background: linear-gradient(to right, #430B18, #944011, #7A1C2A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; 
  background-clip: text; 
  display: inline-block;
  line-height: 1.1;

}

.formations {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-bottom: 0rem;
}

.formation {
  padding-bottom: 3rem;
}

.formation__header {
  margin-bottom: 1.5rem;
}

.formation__description {
  max-width: 800px;
  font-size: 1.3em;
  line-height: 1.3em;
}

.formation__rooms {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(auto-fit, 220px);
  gap: 1rem;
  column-gap: 5rem;
  justify-content: start;
}

.room-card {
  display: flex;
  flex-direction: column;
  width:250px;
  margin-bottom: 20px;
}

.room-card__visual_old {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.room-card__visual_old2 {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
}

.room-card__visual_old3 {
  width: 100%;
  aspect-ratio: 4 / 3;

  overflow: hidden;        

  background-size: 100%;   
  background-repeat: no-repeat;
  background-position: center;  
}

.room-card__visual {
  width: 100%;
  aspect-ratio: 4 / 4; 
  position: relative;
  overflow: hidden;    
}


.room-img {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  transform: translate(var(--offset-x, 0px),
                       var(--offset-y, 0px))
             scale(var(--scale, 1));
}

.room-ri {
  background-image: url("assets/img/salles/s204.png");
}

.room-204 {
  background-image: url("assets/img/salles/s204.png");
}

.room-208 {
  background-image: url("assets/img/salles/s208.png");
}

.room-213 {
  background-image: url("assets/img/salles/s213.png");
}

.room-card__label {
  font-family:"plain-medium", sans-serif;
  margin-top: 0.5rem;
  font-size: 1.1em;
  line-height: 1.3em;
}

.room-card__label .room_txt {
  display: block;
  font-family:"plain-thin", sans-serif;
}

.room-card__label .room_txt a {
  font-family:"plain-medium", sans-serif;
  color: #3D131C;
}

.room-card__label sup {
  vertical-align: text-top;
  line-height: 1;
}


.infos,
.contact {
  padding: 2rem 0;
}

.filieres p{
  font-size: 1.4em;
  line-height: 1.6em;
}

.bottom-hero {
  width: 100vw;                               
  margin-left: calc(50% - 50vw);              
  margin-right: calc(50% - 50vw);
  margin-top: 80px;

  background-image: url("assets/img/eracom_dessin.png");   
  background-size: contain;                   
  background-position: top center;            
  background-repeat: no-repeat;

  height: auto;
  aspect-ratio: 16 / 3.7;                                                    
}

.site-footer {
  background-color: #9D3641;
  color: white;

  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  padding: 2rem 0;
  font-weight: normal;
  font-size: 0.8em;

}

.site-footer h3{

  font-weight: normal;
  margin-top: 8px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;

  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr; 
  gap: 2rem;
}

.footer-heading {
  margin: 0 0 0.5rem;
}


.footer-col p {
  margin: 0;
}

.footer-col a {
  color: inherit;
  text-decoration: none;
}


.footer-logo-img {
  height: 60px;     
  width: auto;
  display: block;
}


.footer-copyright {
  max-width: 1200px;       
  margin: 1rem auto 0;
  padding: 0 1.5rem;
  color: white;
  font-size: 0.875rem;     
  text-align: left;        
  opacity: 0.8;          
}


@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr; 
  }
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}



.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}





