@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Six+Caps&display=swap');

html {
  scroll-behavior: smooth;
  font-size: 16px;
}
* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}
:root {
  --vert: #217C6C;
  --vert-clair: #6ED0B7;
  --jaune: #F8B400;
  --noir: #1B1B1B;
  --blanc: #F5F5F5;
  --gris: #6B7280;
  --transition: all 0.3s ease;
}
body {
  color: var(--noir);
  background-color: var(--blanc);
  line-height: 1.6;
  font-size: 1rem;
}
.titre {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}
.titre h3 {
  color: var(--vert);
  font-size: clamp(24px, 4vw, 40px);
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 2px;
  position: relative;
  animation: reveal linear;
  animation-timeline: view();
  animation-range-start: cover 0%;
  animation-range-end: contain 50%;
}
.titre h3:after {
  content: "";
  position: absolute;
  background-color: var(--jaune);
  bottom: -5px;
  height: 3px;
  width: 30%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 4px;
}

/*---------------------*/
/* Page d'accueil */
/*---------------------*/

/* Page avec fond imagé non répété */
main {
  background-image: linear-gradient(rgba(0,0,0,0.89), rgba(0,0,0,0.89)), url(./images/vue-large-cabinet.webp);
  background-image: linear-gradient(rgba(0,0,0,0.89), rgba(0,0,0,0.89)), url(./images/vue-large-cabinet.jpg);  
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction:row;
  min-height: 100vh;
}
/* Nav barre fixe et responsive */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 50px;
  background: rgba(255, 255, 255, 0); 
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-sizing: border-box;
}
.nav ul {
  list-style: none;
  display: flex;
  gap: clamp(30px, 5vw, 100px);
}
.nav a {
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 500;
  color: var(--vert);
  text-decoration: none;
}
.links li a {
  position: relative;
}
.links li a:after {
  content: "";
  position: absolute;
  background-color: var(--vert);
  left: 0px;
  bottom: -5px;
  height: 3px;
  width: 0%;
  border-radius: 4px;
  transition: 0.5s;
}
.links li a:hover:after{
  width: 100%;
}
.links li a.active:after {
  width: 100%;
}
.nav i.fa-bars {
  font-size: 30px;
  color: var(--vert);
  transition: 0.5s;
  cursor: pointer;
  display: none;
}
.nav i.fa-bars:hover {
  color: var(--vert-clair);
  transform: scale(1.05);
}
.nav.active {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
}
.nav.active .links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.nav.active .links li {
  margin: 15px 0;
  text-align: center;
}
/* Mise en place des coté */
.left, .right {
  flex: 1;
  padding-top: 5rem;
  padding-bottom: 3rem;
}
.left {
  display: flex;
  justify-content: flex-start; 
  align-items: center; 
  padding-left: 2rem;
}
.left h1 {
  font-family: "Six Caps", sans-serif;
  font-weight: bold;
  font-size: clamp(60px, 10vw, 135px);
  color: var(--blanc);
  line-height: 1.1;
  animation: fadeLeft 2s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
}
.right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3rem;
  padding-right: 2rem;
}
/* Photo */
.rond {
  height: 300px;
  width: 300px;
  border-radius: 50%;
  background-color: var(--blanc);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 1s ease;
  animation: fadeDown 2s ease forwards;
  animation-delay: 1.5s;
  opacity: 0;
}
.rond img {
  object-fit: cover;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  filter: brightness(70%);
  transition: 1s ease;
}
/* Texte de presentation */
.right h2 {
  color: var(--blanc);
  font-weight:normal;
  line-height: 1.8;
  animation: fadeUp 2s ease forwards;
  animation-delay: 2s;
  opacity: 0;
}
/* Bouton de prise de rdv */
.right .rdv {
  display: inline-block;
  text-decoration: none;
  padding: 10px 24px;
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 600;
  border: none;
  border-radius: 36px;
  cursor: pointer;
  background-color: var(--vert);
  color: var(--noir);
  transition: 0.5s;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.9);
  animation: fadeUp 2s ease forwards;
  animation-delay: 2s;
  opacity: 0;
}
/* Effet hover de la page d'accueil */
.right .rdv:hover {    
  background-color: var(--vert-clair);
  box-shadow: 0px 6px 16px rgba(0,0,0,0.4);
}
.rond:hover {
  transform: scale(1.05);
  cursor: pointer;
}
.rond:hover img {
  transform: scale(1.05);
  filter: brightness(90%);
}

/*---------------------*/
/* Page d'information */
/*---------------------*/
.infos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 50px;
}

/* Card et image */
.card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 350px;
  cursor: pointer;
  transition: transform 1s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  animation: reveal linear;
  animation-timeline: view();
  animation-range-start: cover 0%;
  animation-range-end: contain 50%;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s;
}
/* Overlay avec h4 et détails */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;       
  justify-content: center;      
  align-items: center;          
  transition: background 0.5s, transform 0.5s;
}
.overlay h4 {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-bottom: 20px; 
  font-size: 30px;
  transition: transform 0.5s;
}
/* Détails */
.details {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
}
.details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.details a {
  text-decoration: none;
  color: var(--blanc);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  transition: color 0.5s;
  transition: 0.5s;
}
.details a:hover { color: var(--vert-clair); font-weight: bold; transform: scale(1.05); }
.details p {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
}
.details .nb {
  font-size: small;
  font-style: italic;
}
/* Hover sur la card */
.card:hover img { transform: scale(1.05); }
.card:hover .overlay {
  background: rgba(0,0,0,0.85);
  transform: scale(1.1);
}
.card:hover h4 { transform: translate(-50%, calc(-50% - 65px)); }
.card:hover .details { opacity: 1; transform: translateY(0); }
.card:hover ul { transform: translateY(25px); }

/*---------------------*/
/* Page de présentation */
/*---------------------*/

.parcours {
  display: flex;
  flex-direction: row;
  padding: 50px 0px;
}

.diplome, .presentation {
  flex: 1;
}
.diplome {
  display: flex;               
  justify-content: center;
  align-items: center;
}

.diplome img {
  width: 75%;
  height: auto;
  object-fit: contain;  
  display: block;       
  border-radius: 24px;
  filter: brightness(50%);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.presentation {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.presentation p {
  width: 75%; 
  text-align: justify;
  font-size: 24px;
  color: var(--noir);
  animation: reveal linear;
  animation-timeline: view();
  animation-range-start: cover 0%;
  animation-range-end: contain 50%;
}

/*---------------------*/
/* Page de pratique */
/*---------------------*/

.pratique {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  padding: 0 20px;
}
.cadre {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 20px;
  margin: 50px;
  gap: 20px;
  background-color: white;
  border-radius: 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: 0.5s;
  animation: reveal linear;
  animation-timeline: view();
  animation-range-start: cover 0%;
  animation-range-end: contain 50%;
}
.cadre i {
  font-size: 70px;
  color: var(--vert);
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px;
  transition: 0.5s;
  background-color: var(--blanc);
  border-radius: 50%;
}
.cadre h4 {
  text-transform: uppercase;
  font-size: 24px;
}
.cadre p {
  color: var(--gris);
}
.cadre:after {
  content: "";
  position: absolute;
  background-color: var(--vert);
  left: 0px;
  top: 0px;
  height: 6px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.5s;
}
.cadre:hover:after{
  transform: scaleX(1);
}
.cadre:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  transform: translateY(-5px);
}
.cadre:hover i {
  transform: scale(1.1) rotate(10deg);
}

/*---------------------*/
/* Page avis */
/*---------------------*/

.avis {
  padding: 50px;
  animation: reveal linear;
  animation-timeline: view();
  animation-range-start: cover 0%;
  animation-range-end: contain 50%;
}

/*---------------------*/
/* Page FAQ */
/*---------------------*/
.FAQ {
  padding-bottom: 60px;
}
.faq-container {
  display: flex;
  flex-direction: column;
  padding: 0 150px;
  animation: reveal linear;
  animation-timeline: view();
  animation-range-start: cover 0%;
  animation-range-end: contain 50%;
}
.faq-item {
  padding: 30px;
  margin: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border-radius: 24px;
  transition: 0.5s;
}
.faq-item:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transform: translateY(-5px);
}
.faq-question {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  font-size: 24px;
  color: var(--vert);
  cursor: pointer;
}
.faq-question i {
  transition: 0.5s;  
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: 0.5s;
  font-size: 18px;
}
.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/*---------------------*/
/* Footer */
/*---------------------*/
footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  gap: 10px;
  background-color: var(--noir);
}
footer .rdv {
  text-decoration: none;
  color: var(--vert);
  font-weight: bold;
  padding: 30px;
  transition: 0.5s;
  font-size: 28px;
}
footer .rdv::after {
  content: "";
  position: absolute;
  background-color: var(--vert-clair);
  left: 0px;
  bottom: 20px;
  height: 3px;
  width: 0%;
  border-radius: 4px;
  transition: 0.5s;
}
footer .rdv:hover::after{
  width: 100%;
}
footer .rdv:hover {
  transform: scale(1.02);
  color: var(--vert-clair);
}
.icones {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 20px;
}
footer i {
  color: var(--blanc);
  font-size: 28px;
  cursor: pointer;
  transition: 0.5s;
}
footer i:hover {
  transform: scale(1.1) translateY(-5px);
  color: var(--vert-clair);
}
footer .ML {
  text-decoration: none;
  color: var(--gris);
  transition: 0.5s;
  padding: 10px;
}
footer .ML:hover {
  transform: scale(1.02);
  color: var(--vert-clair);
}
footer p {
  color: var(--gris);
}

/*----------------*/
/* RESPONSIVE */
/*----------------*/
@media (max-width: 1200px) {
    /* Page parcours */
  .parcours { 
    flex-direction: column;
    align-items: center;
    gap: 50px;
  }
  .diplome img {
    width: 85%;
  }
  .presentation {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .presentation p {
    width: 80%;
    font-size: 18px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  body {
    transition: margin-left 0.5s;
  }

  /* Nav Bar */
  .nav .links {
    display: none;
  }
  .nav {
    justify-content: flex-end;
    padding: 15px 20px;
  }
  .nav i.fa-bars {
    display: block;
  }
  .nav.active .links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.25rem;
  }
  .nav.active .links a {
    font-size: 16px; 
    padding: 10px; 
  }
  .nav.active .links li {
    margin: 8px 0; 
    text-align: center;
  }
  /* Page d'accueil */
  main { 
    flex-direction: column;
  }
  .left {
    text-align: center;
    justify-content: center;
    padding-left: 0;
  }
  .right { 
    padding-top: 0 ;
    padding-bottom: 2rem;
    padding-right: 0;
    gap: 50px;
  }
  .right h2 {
    width: 95%;
  }
  /* Page infos */
  .infos {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
}
  .card {
    padding: 0;
    width: 85%;
  }
  .card .details {
    width: 90%;
    padding-top: 2rem;
  }
  /* Page Pratique */
  .pratique {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .cadre {
    width: 95%;
  }
  .cadre h4 {
  max-inline-size: 80%;
  }
  /* Avis  */
  .avis {
    padding: 50px 5px;
  }
  .faq-container {
    padding: 0px;
  }
  .faq-question {
    font-size: 18px;
  }
  .faq-answer {
    font-size: 16px;
    padding-top: 1rem;
  }
}
/*----------------*/
/* ANIMANTION */ 
/*----------------*/

@keyframes reveal {
  from {
    transform: scale(0.9);
    opacity: 0.9;
  }
  to {
    transform: scale(1);
    opacity: 1;    
  }
}
@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
