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

body {
    background-color: #fcfbcb;
    font-family: "Love Ya Like A Sister", cursive;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}


/* nav {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100px;
    justify-content: end;
    /* align-items: center; */
    /* gap: 5%; */
    /* background-color: white; */
    /* box-shadow: 3px 3px rgb(156, 156, 156); */
    /* padding: 20px;
    background-color: #ffffff;
    margin: 0;
} */ 
/* NAVIGATION PRINCIPALE */
nav {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #ffffff;
}

/* LOGO */
nav .logo img {
    height: 60px; /* taille du logo */
    width: auto;  /* garde les proportions */
    margin-right: auto;
    border: none;
}

/* CONTENEUR DES LIENS */
nav .nav-links {
    display: flex;
    gap: 1.5rem;
    margin-left: auto; /* pousse les liens à droite */
    align-items: center;
}

/* STYLE COMMUN AUX LIENS / BOUTONS */
nav a {
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 2px 2px rgb(36, 36, 36);
    transition: transform 0.3s ease-in, background-color 0.3s ease-in;
}

/* HOVER COMMUN */
nav a:hover {
    transform: scale(1.1);
}

/* BOUTONS PRINCIPAUX */
.navkid1 {
    background-color: #7C1824;
    color: white;
    width: 150px;
    height: 40px;
}

.navkid1:hover {
    background-color: #221E20;
    color: white;
}

/* BOUTON DE CONNEXION */
.navkid3 {
    background-color: #FFF1C2;
    color: black;
    width: 110px;
    height: 40px;
}

.navkid3:hover {
    background-color: #FFF1C2; /* garde fond identique */
    color: black;
    border-color: #FFF1C2;
}

/* BOUTON LOGOUT (si utilisé) */
.logout {
    background-color: #7C1824;
    color: white;
    width: 40%;
    font-family: Arial;
    display: block;
    text-align: center;
    margin: 120px auto 0 auto;
}

.logout:hover {
    background-color: #221E20;
    color: white;
    transform: scale(1.1);
}



.intro {
    background-color: #fcfbcb;
    height: 400px;
    padding: 10px;
    font-size: 2rem;
    position: relative;
    width: 100%;
}


/* .wave-pattern {
    background-image: url(img/patterns/greek-stripes-ocean.png);
    position: absolute;
    z-index: 1;
    opacity: 80%;
} */


.intro p {
    max-width: 40ch; 
    margin: 40px auto;
    line-height: 1.6;
    display: flex;
    justify-content: end;
}

 /* h1 {
  font-family: "Stick", sans-serif;
  margin-left: 510px;
  margin-top: 40px;
  font-size: 4rem;
}

.parchemin {
    margin-left: 450px;
    position: relative;
}

.parchemin img {
    display: block;
    position: absolute;
    z-index: 1;
}

h2 {
    position: absolute;
    top: 60px;
    left: 270px;
    z-index: 2;
    font-family: "Darumadrop One", sans-serif;
    font-size: 2.7rem;

}

.img-food {
    position: absolute;
    top: 170px;
    left: 155px;
    z-index: 2;
    width: 2%;
}

.parchemin p {
    position: absolute;
    z-index: 2;
    top: 420px;
    left: 161px;
    font-size: 2rem;
    max-width: 20ch; 
    margin: 40px auto;
    text-align: center;
}

.btn-theme {
    position: absolute;
    top: 630px;
    left: 291px;
    z-index: 2;
    background-color: #FFF1C2;
    color: black;
    transform: scale(1.3);
    height: 50px;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 2px 2px rgb(36, 36, 36);
    font-size: 0.9rem;
}


#timer {
    font-weight: bold;
    font-size: 4.3rem;
    top: 710px;
    left: 270px;
    text-shadow: 2px 2px 2px;
    color: #FFF1C2;
    position: absolute;
    z-index: 2;
} */

h1 {
    font-family: "Stick", sans-serif;
    font-size: 4rem;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}


.theme {
    text-align: center;
    padding: 4rem 1rem;
} 

.parchemin {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.parchemin img {
    width: 100%;
    height: auto;
    display: block;
}

.parchemin-content p {
    max-width: 40ch; 
    font-size: 2.9rem;
    margin: 20px auto;
    text-align: center;
}

.parchemin-content {
    position: absolute;
    inset: 0; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.parchemin-content h2 {
    font-family: "Darumadrop One", sans-serif;
    font-size: clamp(2rem, 5vw, 2.7rem);
}

.parchemin-content p {
    max-width: 25ch;
    font-size: 1.3rem;
}

.img-theme {
    box-shadow: inset 0 0 15px;
    overflow: hidden;
}




.btn-theme {
    background-color: #FFF1C2;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    box-shadow: 2px 2px rgb(36, 36, 36);
    transform: scale(1.1);
}

.btn-theme:hover {
    transform: scale(1.2);
    transition: 0.3s ease-in;
    background-color: #11ffee00;
    box-shadow: none;
    border: 2px solid #FFF1C2;
    color: white;
}

.btn-for-pre {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10rem;
    flex-wrap: wrap;
    margin: 0 auto;
    margin-top: 100px;
    margin-bottom: 120px;
}

.btn-for-pre a {
    width: 200px;
    padding: 0.8rem 1.5rem;
    align-items: center;
    border-radius: 5px;
    transform: scale(1.1);
    color: black;
    text-decoration: none;
}

.btn-for-pre img {
    width: 160%;
}

.btn-for-pre a:hover {
    transform: rotate(5deg);
    transition: 0.3s ease-in-out;
    box-shadow: none;
}

@media screen and (max-width: 600px) {
    .btn-for-pre {
        flex-direction: column;
    }
}

a {
    text-decoration: none;
    color: black;
} 

footer {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    background-image: url("img/graphic_elements/footer.png");
    height: 320px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin-top: 100px;
}


.footer-content {
    position: absolute;
    inset: 0; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.footer-content a {
    font-family: "Stick", sans-serif;
    font-size: 2.2rem;
}

.footer-content a:hover {
    transform: scale(1.1);
    transition: 0.3s ease-in;
}

/* page anciens thèmes */

.pillars {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8rem;
    justify-content: center;
    align-items: center;
}



.pillars img {
    width: 17%;
}

@media screen and (max-width: 600px) {
    .pillars {
        flex-direction: column;
    }
}

/* Suhita */

/* ----------------------------- */
/* connexion/inscription */

/* section centrale */
.signup-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 100px;
  margin-bottom: 100px;
}

/* PARCHEMIN */
.scroll-wrapper {
  position: relative;
  width: 340px;
}

.scroll-bar {
  height: 14px;
  background-color: #d9bf59;
  border-radius: 7px;
  box-shadow: 0 2px 0 #b29332;
}

.scroll-bar.top { margin-bottom: 8px; }
.scroll-bar.bottom { margin-top: 8px; }

.scroll-body {
  background: #cfd272;
  padding: 35px 40px 30px;
  border-radius: 4px;
  box-shadow:
    0 0 0 4px #b0b654,
    0 8px 15px rgba(0,0,0,0.15);
  position: relative;
}

/* boutons de switch */
.toggle-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.toggle-btn {
  flex: 1;
  padding: 6px 0;
  border-radius: 20px;
  border: 1px solid #9b1c2c;
  background-color: #e3d88b;
  color: #3b2413;
  cursor: pointer;
  font-size: 0.9rem;
}

.toggle-btn:hover {
    transform: scale(1.1);
    transition: 0.3s ease-in;
}

.toggle-btn.active {
  background-color: #9b1c2c;
  color: #fff;
}

.toggle-btn.active:hover {
    transform: scale(1.1);
    transition: 0.3s ease-in;
}

/* titre + formulaire */
.signup-title {
  font-family: "Chewy", cursive;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 8px;
}

.signup-separator {
  height: 6px;
  background-image: linear-gradient(
    90deg,
    #3b2413 25%,
    transparent 25%,
    transparent 50%,
    #3b2413 50%,
    #3b2413 75%,
    transparent 75%,
    transparent
  );
  background-size: 30px 6px;
  margin-bottom: 16px;
}

.form-block {
  font-size: 0.85rem;
}

.form-block label {
  display: block;
  margin-bottom: 4px;
}

.form-block input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 3px;
  border: none;
  background-color: #f7f5e2;
  box-shadow: inset 0 0 0 2px #b0b654;
  font-family: inherit;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.signup-submit {
  margin-top: 6px;
  width: 60%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding: 8px 0;
  background-color: #9b1c2c;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.95rem;
}

.signup-submit:hover {
    transform: scale(1.1);
    transition: 0.3s ease-in;
}

/* messages */
.msg {
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 10px;
}

.msg.error {
  color: #8b1414;
}

.msg.success {
  color: #146b14;
}

/* caché */
.hidden {
  display: none;
}

/* ----------------------------------- */

/* profil */

.section-profil {
    max-width: 1000px;
    margin: 0 auto 100px;
    padding: 50px;
    background-color: #ab9652;
    border-radius: 15px;
    box-shadow: 3px 3px 3px;
}

.profil-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}


.profil-left,
.profil-right {
    flex: 1;
}


.pp-style img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 10px black;
    background-color: white;
    padding: 10px;
}


.profil-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profil-form textarea {
    min-height: 120px;
    border-radius: 10px;
    padding: 10px;
    resize: vertical;
    width: 50%;
}

.profil-form button {
    width: 30%;
}


.profil-right h2 {
    font-size: 2.2rem;
}

.quote {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    font-style: italic;
    margin-right: 90px;
}


@media (max-width: 768px) {
    .profil-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profil-right {
        width: 100%;
    }

    .profil-form button {
        width: 100%;
    }
}

.titre-recette {
    margin-top: 100px;
}

hr {
    margin-top: 70px;
    margin-bottom: 70px;
    color: #7C1824;
}

.recettes {
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: flex-start; 
    flex-wrap: wrap; 
}

.recette-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 280px;
    text-align: center;
}

.recette-card img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
}

.recette-card h3 {
    margin-bottom: 10px;
}

@media (max-width: 700px) {
    .recette-card {
        width: 100%;
    }
}

/* ------------------------- */
/* recettes */

.top-right-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-rect {
  padding: 8px 14px;
  background-color: #7C1824;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-rect.beige {
  background-color: #f1d49b;
  color: #7C1824;
}



/* Contenu principal */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}

.page-title {
  text-align: center;
  margin: 25px 0 10px;
}



.bloc-consignes {
  margin: 0 auto 40px;
  margin-top: 50px;
  margin-bottom: 50px;
  max-width: 950px;
  background-color: #fff7dd;
  border: 2px solid #7C1824;
  border-radius: 6px;
  padding: 15px 20px;
  box-shadow: inset 0px 0px 3px;
}

.bloc-consignes label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.bloc-consignes textarea {
  width: 100%;
  min-height: 80px;
  border: none;
  border-top: 1px solid #7C1824;
  border-bottom: 1px solid #7C1824;
  background-color: transparent;
  padding: 8px 4px;
  font-family: "Quicksand", Arial, sans-serif;
  font-size: 0.95rem;
  outline: none;
  resize: none;
}

.section-recettes-titre {
  text-align: center;
  font-size: 2.5rem;
  margin: 40px 0 30px;
}

/* image, bloc, lignes, bouton, barre */
.liste-recettes {
  /* display: grid;
  grid-template-columns: 220px 1fr 120px 10px;
  column-gap: 30px;
  row-gap: 35px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto 40px; */
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto 40px;
}

.recette {
  display: grid;
  grid-template-columns: 220px 1fr 120px;
  align-items: center;
  column-gap: 30px;
}


/* images */
.miniature {
    /* width: 220px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px; */
  border: 3px solid #7C1824; 
  width: 220px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* lignes façon cahier */
.recette-lignes {
  /* border: none;
  padding: 0 0 10px;
  line-height: 1.5; */
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* nom de la recette un peu plus grand et gras */
.recette-titre {
  font-size: 1.1rem;
  font-weight: 600;
}

/* description un peu plus petite */
.recette-desc {
  font-size: 0.95rem;
}


/* bouton voir */
.btn-voir {
  width: 120px;
  padding: 10px 0;
  font-size: 1rem;
}

/* barre verticale à droite */
.separateur-vert {
  grid-column: 4;
  grid-row: 1 / -1;            
  width: 4px;
  height: 100%;
  background-color: #f2f7e1;
  border-radius: 999px;
  border: 2px solid #7C1824;
}

/* Responsive */
@media (max-width: 768px) {
  .liste-recettes {
    grid-template-columns: 1fr;
  }

  .separateur-vert {
    display: none;
  }

  .miniature {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .recette {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .miniature {
    width: 100%;
    max-width: 280px;
  }

  .recette-lignes {
    align-items: center;
  }

  .btn-voir {
    width: 100%;
    max-width: 220px;
  }
}


.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-vote {
  position: relative;
  width: 500px;
  background-color: #fff7dd;
  border: 4px solid #7C1824;
  padding: 25px 35px 20px;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  /* background: none; */
  text-align: center;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  max-width: 40px;
  background-color: #7C1824;
}

.modal-greek {
  position: absolute;
  top: 10px;
  left: 15px;
  width: 60px;
  height: 20px;
  background-image: url("img/greek-stripes.png");
  background-repeat: repeat-x;
  background-size: auto 20px;
}

.modal-title {
  text-align: center;
  margin: 10px 0 20px;
  font-family: "Chewy", cursive;
  font-size: 1.7rem;
}

.modal-content {
  display: flex;
  gap: 25px;
  margin-bottom: 25px;
}

.modal-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  border: 3px solid #7C1824;
}

.modal-libelle {
  font-size: 1rem;
  margin: 0 0 8px;
  font-weight: bold;
}

.modal-desc {
  font-size: 0.9rem;
  line-height: 1.4;
}

.modal-actions {
  /* display: flex;
  justify-content: space-between;
  padding: 10px; */
  width: 500px;
  padding: 10px 0;
  font-size: 1rem;
}

/* soumettre recette */

.for-form-rect {
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    /* background-color: #9b1c2c; */
    padding-left: 80px;
}

.recette-submit p {
    margin-bottom: 65px;
}

.recette-submit textarea {
    min-height: 120px;
    border-radius: 10px;
    padding: 10px;
    resize: vertical;
    width: 80%;
    background-color: #ab9652;
}

.recette-submit input {
    background-color: #ab9652;
    border-radius: 10px;
    padding: 10px;
    max-width: 40%;
    width: 100%;
    height: 45px;
}

.for-form-rect input {
    background-color: #ab9652;
    border-radius: 10px;
    padding: 10px;
    max-width: 40%;
    width: 100%;
    height: 45px;
}

.for-form-rect textarea {
    min-height: 120px;
    border-radius: 10px;
    padding: 10px;
    resize: vertical;
    width: 80%;
    background-color: #ab9652;
}

.btn-rect-submit {
    width: 120px;
    padding: 10px 0;
    font-size: 1rem;
    margin-bottom: 100px;
}

/* le gagnant */

.gagnant {
    width: 50%;
    min-width: 30%;
    color: #cfd272;
    animation-duration: 0.3s;
    animation-name: winner-show;
    animation-direction: alternate;
    animation-iteration-count: infinite;
}

@keyframes winner-show {
    from {
      transform:scale(1.2);
      color: #ffffff;
      text-shadow: 2px 2px 2px white ;
    }
  
    to {
      transform: scale(1.3);
      color: #b7bd08;
      text-shadow: 2px 2px 10px white ;
    }
    
}


.wlc-user {
    font-family: "Darumadrop One", sans-serif;
    font-size: clamp(2rem, 5vw, 2.7rem);
    width: 200px;
    transform: translateX(3.6em);
    margin-top: 100px;
}

.wave-pattern {
    display: flex;
    flex-wrap: wrap;
    gap: 5%;
    align-items: center;
    background-color: #fcfbcb;
}

@media screen and (max-width: 1200px) {
    .wave-pattern {
        flex-direction: column;
    }
}

.img-main-theme img {
  border: 2px solid #1a1b16; 
  width: 30%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 50px;
  box-shadow: 0 0 10px;
}


.turn-off-theme {
    display: flex;
    flex-direction: column;
    gap: 10%;
    justify-content: center;
    align-items: center;
}