
body{
  margin:0;
  background-color:#0A2A43;
  color:#EFA64B;
  text-align: center;
  }
header{
z-index:100;
}
.top-controls {
  display: flex;
  justify-content: flex-end; /* à droite */
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}
.LienForm,
.LienPage,
#menu1,
details {
  position: static;
  margin: 0;
}
.photo{
width:625px;
height:auto;
border-radius: 15px;
margin: 10px;
background-color:#2F4E69;
z-index:10;
transition: transform 0.3s ease;

}

.photo.active {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.5);
  z-index: 4000;   /* au-dessus de l’overlay */
}


  .lang{
  background-color:#2F4E69;
  padding:5px;
  border-radius: 15px;
  display: inline-block;
  margin-right: 10px;
  text-align:center;
  }
  #menu1 {
  text-align: center;
  margin-right:250px;
  }
  details{
  display: block;
  top: 0;
  width: 100px;
  border-radius: 10px; 
  background-color:#2F4E69;
  padding:5px;
  margin:10px;
  position: sticky;
  margin-left: auto;
  margin-right: 250px;
  margin-bottom: 0px;
  }
/* enlève le triangle */
#menu1 summary {
  list-style: none;
  cursor: pointer;
}

/* cache les langues par défaut */
#menu1 .lang-container {
  display: none;
  margin-top: 6px;
}

/* affiche quand ouvert */
#menu1[open] .lang-container {
  display: flex;
  gap: 10px;
   justify-content: center; /* centre horizontalement */
  align-items: center;
}
#menu1 summary::before {
  content: "◆";
}

#menu1[open] summary::before {
  content: "◇";
}
#menu1 summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: bold;
  color: #EFA64B;
}
/* fond sombre derrière */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  z-index: 3000;
}

  .content{
  cursor: pointer;
  transition: transform 0.3s;
  position: static;
  margin:10px auto;
  text-align:left;
  width:750px;
  background-color:#2A3F55;
  color:#EFA64B;
  border-radius: 15px;
  padding: 10px;
  font-size: 20px;
  }
/* contenu agrandi */
.content.active {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.2);
  width: 80%;
  max-height: 80%;
  overflow-y: auto;
  background:#2F4E69;
  color: #EFA64B;
  z-index: 4000;
  padding: 25px;
  border-radius: 20px;
}
  #titre{
  font-size: 25px;
  }
  #Logo1{
  position: fixed;
  left:10px;
  top:1px;
  width: 160px;
  height: auto;
  z-index:2000;
  }
  #Logo2{
  position: fixed;
  right:10px;
  top:1px;
  width: 160px;
  height: auto;
  z-index:2000;
  }
::selection {
  background-color: #EFA64B;
  color: #0A2A43;
}

::-moz-selection {
  background-color: #EFA64B;
  color: #0A2A43;
}
  #MP {
  background-color: #2A3F55;
  border-radius: 15px;
  padding: 10px;
  max-width: 450px;
  color: #EFA64B;
  text-align: center;
  margin: 10px auto; /* <--- ceci centre horizontalement */
  position: static;
  margin-bottom: 50%;
  font-size: 24px;
  }
  header {
  position: sticky;
  top: 0;
  width: 100%;                 /* prend toute la largeur */
  background-color: #0A2A43;
  padding: 30px 20px;          /* espace interne */
  text-align: center;           /* centre le texte */
  z-index: 1000;               /* au-dessus du contenu */
  border-bottom: 2px solid #EFA64B;
  box-sizing: border-box;       /* padding inclus dans la largeur */
}
header h1 {
  margin: 0 0 15px 0; /* marge en bas seulement */
}
header h2 {
  margin: 0;          /* pas de marge supplémentaire */
}
 #MP:hover,.content:hover{
 background-color:#2F4E69;
 }
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: #0A2A43;
  color: white;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 18px;
  cursor: pointer;
  display: none;
  z-index: 5000;
}

.content.active .close-btn {
  display: block;
}

.close-btn:hover {
  background: #EFA64B;
  color: #0A2A43;
}
.no-scroll {
  overflow: hidden;
}
#page-content.blur {
  filter: blur(6px);
  transition: filter 0.3s ease;
}

}
#BTMessage:hover{
background-color:#2A3F55;
border-color: #EFA64B;
}
#BTMessage{
 position:sticky;
 background-color:#2F4E69;
  padding:5px;
  border-radius: 15px;
  margin: 10px;
  border-color: #EFA64B;
color:#EFA64B;
margin-bottom: 800px;
}
#e-mail{
position:sticky;
border-radius: 15px; 
background-color:#2F4E69;
padding:5px;
margin:10px;
border-color: #EFA64B;
 font-size: 20px;
  line-height: 1.5;
  padding: 12px;
  font-family: inherit;
color:#EFA64B;
width:750px;
}
#Message{
position:sticky;
border-radius: 15px; 
background-color:#2F4E69;
padding:5px;
border-color: #EFA64B;
margin-top: 10px;
 font-size: 20px;
  line-height: 1.5;
  padding: 12px;
  font-family: inherit;
 color:#EFA64B;
  width:750px;
  height:350px;
}
form{
position:sticky;
}
.LienForm{
   display: inline-block;
  top: 0;
  width: 100px;
  height:auto;
  border-radius: 10px; 
  background-color:#2F4E69;
  padding:5px;
  position: sticky;
  margin-left: auto;
  margin-right: 10px;
  margin-bottom: 2px;
  color: #EFA64B;
  text-decoration: none;
  font-size: 20px;      /* même taille que Lang */
  animation: fond 1s infinite;
}
.LienPage{
   display: inline-block;
  top: 0;
  width: 100px;
  height:auto;
  border-radius: 10px; 
  background-color:#2F4E69;
  padding:5px;
  position: sticky;
  margin-left: auto;
  margin-right: 10px;
  margin-bottom: 2px;
  color: #EFA64B;
  text-decoration: none;
  font-size: 20px;      /* même taille que Lang */
}

@keyframes fond {
  0%   { background: #2F4E69; }
  50%  { background: #EFA64B; }
  50%  { color:#2F4E69;} 
  100% { background: #2F4E69; }
}
.LienPage:hover,
#menu1:hover summary,
#menu1:hover {
  color: #2F4E69;
  background-color:#EFA64B;
}
.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
summary {
  list-style: none;
}
@media (max-width: 768px) {

  /* --- Logos desktop cachés --- */
  #Logo1,
  #Logo2 {
    display: none;
  }

  /* --- Base mobile --- */
  body {
    font-size: 15px;
    padding: 0 10px;
  }

  /* --- Page & fond logo --- */
  #page {
    position: relative;
    z-index: 1;
  }

  #page::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("Logo1.png");
    background-repeat: no-repeat;
    background-position: center 120px;
    background-size: 180px auto;
    opacity: 0.08;        /* doux */
    pointer-events: none;
    z-index: -1;         /* 🔑 toujours derrière */
  }

  /* --- Header --- */
  header {
    position: static;
    padding: 20px 10px;
    text-align: center;
  }

  /* --- Top controls --- */
  .top-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  /* --- Contenus --- */
  .content,
  #e-mail,
  #Message {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px;
  }

  .content.active {
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 4000;
  }

  /* --- Galerie photos --- */
  .photo {
    width: 100%;
    height: auto;
    margin: 10px 0;
  }

  /* --- Formulaire & liens --- */
  form,
  #e-mail,
  #Message,
  #BTMessage,
  .LienForm,
  .LienPage {
    position: static;
  }

  .LienForm,
  .LienPage {
    width: 90%;
    margin: 10px auto;
    font-size: 18px;
    animation: none;
  }

  /* --- Menu langue --- */
  #menu1 {
    margin: 0 auto;
  }

  /* --- Footer --- */
  footer {
    font-size: 12px;
    padding: 15px;
  }

}
