
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap');

:root {
    --green-dark: #4D5C3D;
    --green-light:#b7bfa5;
    --beige: #E5C087;
    --white: #F5F5F0;
    --black: #222;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--white);
    color: var(--black);
}


/* === header menu ================================================================= */



header {
    position: relative;
    text-align: center;
    color: white;
}


header img.hero {
    display: block;
    width: 100%;
}


nav {
    background: var(--green-dark);
    padding: 15px;
}


header .logo{
    height:10vh;
}


header .logo-separator {
  content: "";
  display: block;
  width: 1px;          /* hauteur de la ligne */
  background: white;      /* par exemple collée à droite de l'élément */

}

nav{
    position:sticky;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: flex;              /* active flexbox */
    justify-content: center;    /* centre horizontalement */
    align-items: center; 
}


nav ul li a.nav-text {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    border-bottom: 1px solid white; /* underline */
    padding-bottom: 1px;   
}

nav ul li a:hover {
    color: var(--beige);
}


/* === corps ================================================================= */


main {
    padding: 0;
    margin: 0;
    max-width: 900px;
    margin: auto;
}

.link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    border-bottom: 1px solid white; /* underline */
    padding-bottom: 1px;   
}


.link:hover {
    color: var(--beige);
}

.full_h{
    height:80vh;
}

section{

    margin: 10vh 0;
}


footer {
    background: var(--green-dark);
    color: white;
    padding: 30px 20px;
    margin-top: 40px;
    text-align: center;
}


.encart , .encart-reverse{
    display: flex;
    justify-content: space-between;
    margin-top: 10%;
}

.encart-reverse{
    flex-direction: row-reverse;
}
.encart{
    flex-direction: row;
}

.section_img{
    width:100%;
    border-radius: 15px;
    height: auto;
}

.zone_img{
    display: flex;
    justify-content: center;
    width: 40%;

    
    
}
.zone-text{
    max-width: 50%;
}
/*-----------carroussel----------*/
.caroussel{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}



.flip-card {
  background-color: transparent;
  width: 200px;
  height: 304px;
  perspective: 1000px;
}

.flip-card p{
    font-size: large;
}

.title {
  font-size: 1.2em;
  font-weight: 900;
  text-align: center;
  margin: 0;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;

}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);

    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding:10%;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;

}

.flip-card-front {
  background: white
}

.flip-card-back {
  background: var(--green-dark);
  color: white;
  transform: rotateY(180deg);
}



/*------------form-------------*/


.form {
  display: flex;
  flex-direction: column;


  gap: 20px;
  background-color: var(--green-dark);

  padding: 20px;
  border-radius: 10px;
  position: relative;
}

.message {
  color: var(--green-dark);
}



.form label {
  position: relative;
}

.form label .input , .input01{
  width: 100%;
  padding: 10px 0 20px 0;
  outline: 0;
  border: 1px solid var(--green-dark);
  border-radius: 5px;
}

.form label .input + span {
  position: absolute;
  left: 10px;
  top: 15px;
  color:var(--green-dark);
  font-size: 0.9em;
  cursor: text;
  transition: 0.3s ease;
}

.form label .input:placeholder-shown + span {
  top: 15px;
  font-size: 0.9em;
}

.form label .input:focus + span,.form label .input:valid + span {
  top: 30px;
  font-size: 0.7em;
  font-weight: 600;
}

.form label .input:valid + span {
  color: green;
}


.form label .input01 + span {
  position: absolute;
  left: 10px;
  top: 50px;
  color: var(--green-dark);
  font-size: 0.9em;
  cursor: text;
  transition: 0.3s ease;
}

.form label .input01:placeholder-shown + span {
  top: 40px;
  font-size: 0.9em;
}

.form label .input01:focus + span,.form label .input01:valid + span {
  top: 50px;
  font-size: 0.7em;
  font-weight: 600;
}

.form label .input01:valid + span {
  color: green;
}

.fancy {
  background-color: white;
  border: 2px solid var(--green-dark);
  border-radius: 0px;
  box-sizing: border-box;
  color: var(--green-dark);
  cursor: pointer;
  display: inline-block;
  font-weight: 390;
  letter-spacing: 2px;
  margin: 0;
  outline: none;
  overflow: visible;
  padding: 8px 30px;
  position: relative;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  transition: all 0.3s ease-in-out;
  user-select: none;
  font-size: 13px;
}

.fancy::before {
  content: " ";
  width: 1.7rem;
  height: 2px;
  background: var(--green-dark);
  top: 50%;
  left: 1.5em;
  position: absolute;
  transform: translateY(-50%);
  transform: translateX(230%);
  transform-origin: center;
  transition: background 0.3s linear, width 0.3s linear;
}

.fancy .text {
  font-size: 1.125em;
  line-height: 1.33333em;
  padding-left: 2em;
  display: block;
  text-align: left;
  transition: all 0.3s ease-in-out;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--green-dark);
  transform: translateX(30%);
}

.fancy .top-key {
  height: 2px;
  width: 1.5625rem;
  top: -2px;
  left: 0.625rem;
  position: absolute;
  background: var(--green-dark);
  transition: width 0.5s ease-out, left 0.3s ease-out;
}

.fancy .bottom-key-1 {
  height: 2px;
  width: 1.5625rem;
  right: 1.875rem;
  bottom: -2px;
  position: absolute;
  background: var(--green-dark);
  transition: width 0.5s ease-out, right 0.3s ease-out;
}

.fancy .bottom-key-2 {
  height: 2px;
  width: 0.625rem;
  right: 0.625rem;
  bottom: -2px;
  position: absolute;
  background: var(--green-dark);
  transition: width 0.5s ease-out, right 0.3s ease-out;
}

.fancy:hover {
  color: white;
  background: var(--green-light);
}

.fancy:hover::before {
  width: 1.5rem;
  background: var(--green-dark);
}

.fancy:hover .text {
  color: white;
  padding-left: 1.5em;
}

.fancy:hover .top-key {
  left: -2px;
  width: 0px;
}

.fancy:hover .bottom-key-1,
 .fancy:hover .bottom-key-2 {
  right: 0;
  width: 0;
}