* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    text-align: center;
    background: #fefef9;
    color: #2e2e2e;
    margin: 0;
    padding: 20px;
    width: 100vw;
    height: 100vh;
	display: flex;
    justify-content: center;
    align-items: center;
	overflow: hidden; /* Évite les débordements */
	overflow-y: auto; /* très important */
}

/* CSS pour index.php */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
	background: linear-gradient(145deg, #fefefe, #f4f4f4);
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	padding: 2rem;
	width: 600px;
	margin: auto;
	transition: all 0.4s ease-in-out;
}

.container:hover {
  box-shadow: 0 10px 50px rgba(0,0,0,0.15);
}

.container textarea,
.container input[type="text"] {
  border: none;
  border-radius: 12px;
  padding: 1rem;
  width: 100%;
  background-color: #fff;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.container textarea:focus,
.container input[type="text"]:focus {
  background-color: #fdfdfd;
  outline: none;
}

input, button {
    padding: 10px;
    margin: 10px;
    font-size: 16px;
}

button {
    background-color: black;
    color: white;
    border: none;
    cursor: pointer;
	border-radius: 12px;
}

button:hover {
    background-color: gray;
}

#errorMessage {
    color: red;
    font-size: 14px;
}

#thoughts {
    height: 14px; /* hauteur réservée pour éviter les sauts */
	font-size: 14px;
    font-style: italic;
	color : grey;
    margin-bottom: 10px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

#relancer-phrases {
  background: none;
  border: none;
  font-size: 14px;
  color: #888;
  cursor: pointer;
  padding:0px;
  margin:0px;
  transition: color 1s ease;
}

#relancer-phrases:hover {
  color: #444;
}

/* FIN - CSS pour index.php */


/* CSS pour video.php */
.video-container {
    object-fit: cover;
    width: 100vw;
    height: 100vh;
}

video {
    width: 100vw;
    height: 100vh;
    object-fit: cover; /* Remplit l'écran sans déformation */
}

/* FIN - CSS pour video.php */

/* CSS pour mentions-legales.php */
main.legal-container {
  max-width: 900px;
  margin: 0px auto;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

section.legal-section {
  margin-bottom: 10px;
}

section..legal-section h2 {
  color: #333;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
  margin-bottom: 10px;
  font-weight:bold;
}

.back-link {
  display: inline-block;
  margin-top: 40px;
  text-decoration: none;
  color: #007BFF;
  font-weight: bold;
}

.back-link:hover {
  text-decoration: underline;
}

/* FIN - CSS pour mentions-legales.php */


/* CSS pour infos.php*/
body.info-body {
  padding: 5px;
  font-family: 'Georgia', serif;
  background: #fefef9;
  color: #2e2e2e;
  overflow-x: hidden;
  text-align:left;

  display: block !important; /* Écrase le flex du body global */
  width: auto !important;
  height: auto !important;
  justify-content: initial !important;
  align-items: initial !important;
  overflow: auto !important; /* Permet le scroll si besoin */
}

    main {
      max-width: 1000px;
      margin: 0 auto;
      padding: 10px 20px 60px 20px; 
      display: flex;
      flex-direction: column;
      gap: 30px;
      align-items: center;
      animation: fadeIn 2s ease-in;
      position: relative;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(30px); }
      to { opacity: 1; transform: translateY(0); }
    }

    section {
      width: 100%;
      border: 1px solid #ccc;
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.7);
      box-shadow: 2px 2px 12px rgba(0,0,0,0.05);
      padding: 40px;
      position: relative;
      overflow: hidden;
    }

    section h2 {
      margin-top: 0;
      font-weight: normal;
    }


    .infos p {
      margin: 20px 0;
      line-height: 1.6;
    }

    form {
      display: flex;
      flex-direction: column;
    }
	
	#contactDetails {
	display: flex;
	flex-direction: column;
	gap: 20px;
	transition: opacity 0.3s ease;
	}

	#contactDetails button {
	width: 100%;
	}

    input, textarea, select {
      padding: 14px;
      font-size: 16px;
      border: 1px solid #ccc;
      border-radius: 10px;
      width: 100%;
	  margin: 10px 0 0 0;
    }

    textarea {
      resize: vertical;
      min-height: 120px;
    }

    button {
      padding: 12px;
      font-size: 16px;
      border: none;
      background-color: #2e2e2e;
      color: #fff;
      border-radius: 10px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    button:hover {
      background-color: #000;
    }

    .cat {
      position: absolute;
      transition: transform 1.5s ease;
      z-index: 10;
    }

    .cat.right {
      top: 20px;
      left: 100%;
      width: 81px;
      transform: translateX(0);
      transition: transform 1.5s ease;
    }

    .cat.top {
      left: 30%;
      top: 100%;
      width: 123px;
      transform: translateY(0);
     }

    .cat.show-right {
      transform: translateX(-81px);
    }

    .cat.show-top {
      transform: translateY(-77px);
    }
	
	 #revoir-video {
      display: inline-block;
      font-size: 0.9rem;
      color: #555;
      text-decoration: none;
      transition: color 0.3s;
    }

    #revoir-video:hover {
      color: #000;
    }
	
	.logo {
  display: block;
  margin: 0 auto 0 auto;
  max-width: 200px;
  opacity: 1;
  transition: opacity 0.5s ease;
  z-index: 9999;
}

    .logo:hover {
      opacity: 0.8;
    }

    .calendar-placeholder {
      background: #f0f0f0;
      border: 1px dashed #aaa;
      padding: 20px;
      text-align: center;
      border-radius: 10px;
    }
	
	.hidden {
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}
	
/* FIN - CSS pour infos.php*/

/* Fiche identité CSS */
.identity-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin: 0px auto;
  background-color: #fdfdfd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-family: "Segoe UI", sans-serif;
}

.identity-photo img {
  width: 120px;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #aaa;
}

.identity-details {
  flex: 1;
}

.identity-details h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.5em;
  color: #333;
  border-bottom: 1px solid #999;
  padding-bottom: 5px;
}

.identity-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.identity-details li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
  font-size: 1em;
}

.identity-details strong {
  display: inline-block;
  width: 30%;
  max-width: 200px;
  min-width: 120px;
  flex-shrink: 0;
  color: #555;
  margin-right:10px;
  text-align: right;
}
/* FIN - Fiche identité CSS */


/* FAQ accordéon */
.faq {
  width: 100%;
  padding:0 30px;
}

.faq h2 {
  border-left: 5px solid #4CAF50;
      padding-left: 10px;
      margin-top: 2rem;
      color: #333;
}

.accordion {
      margin: 2rem auto;
}

.accordion-item {
  border-radius: 10px;
  border: 1px solid #ccc;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
}

.accordion-question {
  width: 98%;
  text-align: left;
  font-size: 16px;
  font-weight: bold;
  border: none;
  background-color: #f9f9f9;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color:black;
  display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem;
}

.icon {
      transition: transform 0.3s ease;
}

.accordion-question:hover {
  background-color: #eee;
}

.accordion-answer {
  padding: 15px;
  display: none;
  animation: fadeIn 0.3s ease-in;
}


    .accordion-question .icon {
      position: relative;
      width: 16px;
      height: 16px;
    }

    .accordion-question .icon::before,
    .accordion-question .icon::after {
      content: "";
      position: absolute;
      background-color: #333;
      transition: transform 0.3s ease;
    }

    .accordion-question .icon::before {
      top: 50%;
      left: 0;
      right: 0;
      height: 2px;
      transform: translateY(-50%);
    }

    .accordion-question .icon::after {
      left: 50%;
      top: 0;
      bottom: 0;
      width: 2px;
      transform: translateX(-50%);
    }

    .accordion-item.active .accordion-answer {
      display: block;
    }

    /* Transforme le + en - */
    .accordion-item.active .icon::after {
      transform: translateX(-50%) scaleY(0);
    }

/* FIN - FAQ accordéon */

.popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.popup-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

/* version responsive */
    @media screen and (max-width: 600px) {
		
	body{
		padding:10px;
	}
      main {
        padding: 30px 5px;
      }
      section {
        padding: 15px 10px;
      }
	   input, textarea {
	   width:100%;
	  }
	  .cat.right {
	  top:220px;
	  width:60px;
	  }
	  .cat.show-right {
      transform: translateX(-60px);
    }

  .identity-card {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .identity-photo img {
    margin-bottom: 15px;
  }

  .identity-details strong {
    width: auto;
    min-width: 100px;
    text-align: left;
  }

  .identity-details li {
    flex-direction: column;
    align-items: flex-start;
  }

  .identity-details li strong {
    margin-bottom: 2px;
  }
  
  .box-merci {
    flex-direction: column;
    text-align: center;
  }

  .chat-merci {
    width: 120px;
	margin : 0 auto;
	display:block;
	max-width: 90vw;
  }

  .texte-merci {
    text-align: center;
  }
}
/* fin version mobile */

/* message remerciement CSS */
.container-merci {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Boîte principale */
.box-merci {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 30px;
  max-width: 900px;
  width: 100%;
  gap: 30px;
  flex-wrap: wrap;
}

/* Image du chat */
.chat-merci {
  width: 150px;
  border-radius: 8px;
  max-width: 90vw;
  height: auto;
  display: block;
}

/* Zone de texte */
.texte-merci {
  flex: 1;
  min-width: 250px;
}

.texte-merci p {
  font-size: 1.1em;
  margin-bottom: 20px;
}

button#btn {
  padding: 10px 25px;
  font-size: 1em;
  border: none;
  background-color: #333;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button#btn:hover {
  background-color: #555;
}  
/* FIN - message remerciement*/