/*-----------------------------------RESET & FONT-----------------------------------*/

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

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

@font-face {
  font-family: 'Childos Arabic';
  src: url('/font/ChildosArabic.otf');
}

@font-face {
  font-family: 'Bebas';
  src: url('/font/BebasNeue-Regular.ttf');
}

main {
  flex: 1;
}

/*-----------------------------------TYPOGRAPHIE-----------------------------------*/

h2 {
  font-family: 'Childos Arabic';
  font-weight: bold;
}

/*-----------------------------------NAV-----------------------------------*/

header {
  display: flex;
  align-items: center;
}

nav {
  height: 100px;
  width: 100%;
  background-color: white;
  display: flex;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 80px;
  margin: 0 60px 0 70px;
  padding-bottom: 5px;
  padding-right: 10px;
  border-bottom: 3px solid #77b361;
}

nav a {
  text-decoration: none;
  color: black;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2em;
  font-weight: 450;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #77b361;
}

nav>a>img {
  margin-left: 50px;
  margin-top: 10px;
  height: 85px;
  width: auto;
}

.boutonDon {
  font-size: 1.2em;
  width: fit-content;
  text-decoration: none;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 450;
  text-align: center;
  transition: box-shadow 200ms ease, background-color 200ms ease;
  background-color: #77b36194;
  padding: 0.5em;
  border-radius: 20px;
  border: 2px solid #609e4e;
  ;

}


.boutonDon:hover {
  background-color: var(--color-bouton-hover);
  box-shadow: 5px 5px 20px #25401a94;
  border: 2px solid var(--color-bouton-hover);
}


.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

@media (max-width: 1024px) {

  nav {
    justify-content: space-between;
    height: 70px;
    padding: 0 20px;
    position: relative;
  }

  nav>a>img {
    margin: 0;
    height: 50px;
  }

  .hamburger {
    display: flex;
    position: absolute;
    right: 20px;
    top: 25px;
    transform: translateY(-50%);
    z-index: 1100;
  }

  .hamburger span {
    background-color: #77b361;
  }

  nav ul {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 70%;
    max-width: 280px;
    height: 60vh;
    background-color: #ffffff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0;
    border-bottom: none;
    transition: right 0.4s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    border-left: #77b361 solid;
    border-bottom: #77b361 solid;
  }

  #menu-toggle:checked~nav ul {
    right: 0;
  }

  #menu-toggle:checked~.hamburger span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  #menu-toggle:checked~.hamburger span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked~.hamburger span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  nav ul li a {
    font-size: 1.1em;
    color: #333;
  }
}

/* --------------------------------- Flash --------------------------------------- */
.flash-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 15px;
  pointer-events: none;
}

.flash-message {
  pointer-events: auto;
  min-width: 320px;
  max-width: 450px;
  padding: 16px 24px;
  border-radius: 15px;
  font-family: 'Poppins', sans-serif;
  font-size: 1em;
  color: #2c3e50;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 6px solid #ccc;
  animation: slideInFlash 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.3s ease;
}

.flash-message:hover {
  transform: scale(1.02);
}

.flash-message.success {
  border-left-color: var(--color-bouton);
  background: #f0f9eb;
}

.flash-message.error {
  border-left-color: var(--color-del);
  background: #fef0f0;
}

.flash-message .close-icon {
  margin-left: 15px;
  font-weight: bold;
  font-size: 1.2em;
  opacity: 0.5;
}

@keyframes slideInFlash {
  from {
    transform: translateX(120%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.flash-message.fade-out {
  opacity: 0;
  transform: translateX(50px);
}

/*------------------------------------ Fin flash ---------------------------------- */


/*-----------------------------------PAGE ACCUEIL-----------------------------------*/

.banniere {
  display: flex;
  flex-direction: column;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url("/img/imgIndex/afghanBG.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 400px;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.banniere a {
  margin-top: 20px;
  font-size: 30px;
  width: fit-content;
  text-decoration: none;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 450;
  text-align: center;
  transition: background-color 800ms ease;
  background-color: #77b36194;
  padding: 0.5em;
  border-radius: 20px;
  border: 1px solid #ccc;
  transition: all 0.3s ease;
}

.banniere a:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  color: white;
}

.banniere h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 4em;
}

.banniere h2 {
  font-size: 1.5em;
  font-style: italic;
}

section.presentation {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  margin: 2em 5%;
  width: 50%;
}

section.presentation p {
  font-family: 'Poppins', sans-serif;
  margin-top: 20px;
  text-align: justify;
}

section.presentation h2 {
  width: 40%;
  color: #77b361;
  font-size: 2em;
  margin-right: 20px;
}

section.presentation a {
  text-decoration: none;
  color: black;
  font-family: 'Poppins', sans-serif;
  font-size: 1.4em;
  font-weight: 450;
  transition: color 0.3s ease;
}

section.presentation a:hover {
  text-decoration: underline;
}

.quiSommeNous,
.pqNousAider {
  display: flex;
  margin-top: 50px;
}

.quiSommeNous img,
.pqNousAider img {
  width: 40%;
  border-radius: 10px;
  margin-top: 50px;
}

.quiSommeNous img {
  margin-right: 40px;
}

.pqNousAider img {
  margin-left: 40px;
}

.pqNousAider li {
  font-family: 'Poppins', sans-serif;
  margin-top: 10px;
}

.pqNousAider ul {
  margin-top: 20px;
}

@media (max-width: 1024px) {

  .banniere {
    height: 300px;
  }

  .banniere h1 {
    font-size: 2.5em
  }

  .banniere a {
    font-size: 1.3em;
  }

  .quiSommeNous,
  .pqNousAider {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pqNousAider {
    flex-direction: column-reverse;
  }

  .quiSommeNous img,
  .pqNousAider img {
    width: 80%;
    margin: 20px 0;
  }

  section.presentation {
    width: 100%;
    padding: 0 30px;
    align-items: center;
  }

  section.presentation p {
    text-align: left;
  }

  section.presentation h2 {
    font-size: 1.6em;
  }

  section.presentation ul {
    list-style: none;
  }
}

/*-----------------------------------DONS-----------------------------------*/

.banniere-dons {
  display: flex;
  flex-direction: column;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url("/img/dons.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 400px;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.banniere-dons h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 4em;
  margin: 0;
}

.banniere-dons h2 {
  font-size: 1.5em;
  margin: 0;
  font-style: italic;
}

.dons-info {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  gap: 5em;
  align-items: center;
  min-height: 20em;
  margin: 6%;
  font-family: 'Poppins', sans-serif;
}

.dons-info>img {
  width: 20em;
  height: auto;
}

.dons-info>div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2em;
}

.dons-info .titre {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #e74c3c;
}

.payement {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4em;
  padding: 40px;
  background-color: #f9f9f9;
}

.payement p {
  font-family: 'Poppins', sans-serif;
  font-size: 2em;
  font-weight: bold;
  margin: 0;
}

.hello-asso img {
  height: 60px;
  transition: transform 0.3s;
}

.hello-asso img:hover {
  transform: scale(1.05);
}

.btn-container {
  max-width: 400px;
}

.link-virement {
  display: block;
  background-color: #77b361;
  color: white;
  text-decoration: none;
  padding: 20px;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(119, 179, 97, 0.2);
}

.link-virement:hover {
  background-color: #5e914d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(119, 179, 97, 0.3);
}

.histPaida {
  width: 20%;
  height: auto;
}

@media (max-width: 1024px) {
  .dons-info {
    gap: 2em;
    margin: 5%;
  }

  .dons-info>img {
    width: 15em;
  }
}

@media (max-width: 1024px) {
  .payement {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .link-virement {
    font-size: 0.9em;
    padding: 15px;
  }

  .banniere-dons {
    height: 300px;
  }

  .banniere-dons h1 {
    font-size: 2.5em;
  }

  .dons-info {
    flex-direction: column;
    text-align: center;
    gap: 3em;
  }

  .dons-info>img {
    width: 60%;
    order: -1;
  }
}

/*-----------------------------------FAQ/CONTACT---------------------------------------------------*/

.faq {
  width: 80%;
  margin: auto;
  margin-top: 20px;
  border: #77b361 solid;
  border-radius: 10px;
}

details {
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
}

summary {
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Childos Arabic', sans-serif;
  margin-left: 10px;
}

summary::after {
  content: '\f078';
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  transition: transform 0.3s ease;
  margin-right: 20px;
}

details[open] summary::after {
  transform: rotate(180deg);
}

details p {
  line-height: 1.4em;
  font-family: 'Poppins', sans-serif;
  margin-left: 10px;
  margin-top: 10px;
  font-size: 14px;
}

.contact {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin: 50px auto;
  width: 80%;
}

.contact-item i {
  font-size: 40px;
  margin-bottom: 10px;
  color: #77b361;
}

.contact-item h4 {
  font-size: 20px;
  margin: 10px 0 5px;
  font-family: 'Childos Arabic', sans-serif;
}

.contact-item p {
  margin: 0;
  line-height: 1.5em;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2em;
}


.faq-title {
  font-size: 3em;
  font-family: 'Childos Arabic', sans-serif;
  display: flex;
  justify-content: center;
  margin-top: 40px;

}

.banniere-contact {
  display: flex;
  flex-direction: column;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url("/img/contact.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 400px;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.banniere-contact h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 4em;
  margin: 0;
}

.contactSucces {
  padding: 15px;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 5px;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
}

.contactErreur {
  padding: 15px;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
}

@media (max-width: 1024px) {
  .contact {
    flex-direction: column;
  }
}


/*-----------------------------------ACTUALITES-----------------------------------*/


/*---------------------Calendrier-----------------*/

.calendar h2 {
  color: #77b361;
  font-family: 'Popins', sans-serif;
  text-align: center;
  margin-top: 2em;
  margin-bottom: 1em;
}

#calendar {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #edf2f7;
  padding: 10px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.fc-toolbar-title {
  color: #2d3748;
  font-size: 1.1rem !important;
  font-weight: 700;
}

.fc-button-primary {
  background-color: #f7fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #4a5568 !important;
  text-transform: capitalize !important;
  transition: all 0.2s ease;
}

.fc-button-primary:hover {
  background-color: #edf2f7 !important;
  border-color: #cbd5e0 !important;
  color: #2d3748 !important;
}

.fc-daygrid-day-number {
  color: #718096;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none !important;
  padding: 5px !important;
}

.fc-day-today {
  background-color: rgba(40, 167, 69, 0.05) !important;
}

.fc-day-today .fc-daygrid-day-number {
  color: #28a745;
  font-weight: 800;
}

.fc-daygrid-event {
  background-color: #77b361 !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 2px 8px !important;
  margin: 1px 2px !important;
  transition: transform 0.2s ease;
}

.fc-daygrid-event:hover {
  transform: scale(1.1);
  background-color: #77b361 !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.fc-col-header-cell {
  background-color: #f8fafc;
  padding: 8px 0 !important;
}

.fc-col-header-cell-cushion {
  color: #a0aec0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none !important;
}

.fc td,
.fc th {
  border-style: none !important;
}

.fc-theme-standard .fc-scrollgrid {
  border: none !important;
}

.fc-toolbar-title {
  text-transform: capitalize !important;
  font-size: 1.2rem !important;
  color: #77b361;
}


.calendar {
  padding: 30px;
}

/*---------------------Calendrier-----------------*/


.banniere-actu {
  display: flex;
  flex-direction: column;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url("/img/actualite.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 400px;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.banniere-actu h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 4em;
  margin: 0;
}

.listeArticles {
  margin-top: 20px;
}

.s1 {
  width: 40%;
  margin: 5% auto auto 15%;
  border: #77b361 solid 3px;
  border-radius: 20px;
  font-size: 22px;
  text-align: justify;
  padding: 1em;
}

.s1 h3,
.s2 h3 {
  color: var(--color-article-text);
  font-size: 1.5em;
  padding: 10px;
  font-family: 'Childos Arabic', sans-serif;
}

.s1 p,
.s2 p {
  margin: 10px;
  padding: 10px;
  font-family: 'Montserat', sans-serif;
}

.s1 a,
.s2 a {
  padding-top: 10px;
  font-family: 'Montserat', sans-serif;
  text-decoration: none;
  color: #77b361;
}

.s2 {
  width: 40%;
  margin: 5% 15% auto auto;
  border: #77b361 solid 3px;
  border-radius: 20px;
  font-size: 22px;
  padding: 1em;
}

.zoomable {
  width: 100%;
  border-radius: 16px;
}

.actions-responsable {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.page-actu-solo .listeArticles {
  display: flex;
  justify-content: center;
}

.page-actu-solo .article-solo {
  text-align: center;
  width: 60%;
  margin: 0 auto;
  font-size: 1.1em;
}

.page-actu-solo .article-solo h2 {
  font-size: 2.5em;
  color: #77b361;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

.page-actu-solo .article-solo img {
  max-width: 100%;
  height: auto;
  margin-bottom: 40px;
  margin-top: 20px;
  border-radius: 8px;
}

.page-actu-solo .article-solo .description-complete {
  font-size: 1.2em;
  line-height: 1.8;
  margin-bottom: 30px;
  text-align: justify;
  font-family: 'Montserat', sans-serif;
}

.page-actu-solo .article-solo .date {
  font-style: italic;
  color: #666;
  margin-bottom: 20px;
}

.page-actu-solo .article-solo .retour {
  display: inline-block;
  margin-top: 40px;
  color: #77b361;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
}

.page-actu-solo .article-solo .retour:hover {
  text-decoration: underline;
}


@media (max-width: 1024px) {
  .listeArticles {
    flex-direction: column;
    align-items: center;
  }

  .controle {
    margin: 0 0 auto auto;
    width: 20%;
    top: 0;
  }

  .banniere-actu {
    height: 300px;
  }

  .banniere-actu h1 {
    font-size: 2.5em;
  }

  .page-actu-solo .article-solo {
    width: 90%;
    margin: 0 auto;
  }

  .page-actu-solo .article-solo h2 {
    font-size: 1.8em;
  }

  .page-actu-solo .article-solo img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
  }

  .page-actu-solo .article-solo .description-complete {
    font-size: 1.1em;
    line-height: 1.6;
    padding: 0 10px;
  }

  .page-actu-solo .article-solo p,
  .page-actu-solo .article-solo a,
  .page-actu-solo .article-solo .description-complete {
    text-align: center;
  }

  .s1,
  .s2 {
    width: 90%;
    margin: auto;
    margin-bottom: 20px
  }

}

/*-------------AJOUT ACTU----------*/

#actu {
  background-color: #77b361;
  border: 5px solid #5e974d;
  color: white;
  font-weight: bold;
  font-size: 1em;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  margin: 2% 3.6em;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  text-decoration: none;
  text-align: center;
}

#actu:hover {
  background-color: #5e974d;
}

.ajout-article {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 50%;
  margin: 25px auto;
  padding: 20px;
}

.formulaire tr,
.formulaire th,
.formulaire td {
  border: 1px solid #13273057;
  padding: 10px;
}

.formulaire p {
  margin: 10px;
}

/*-----------------------------------LOGIN PAGE-----------------------------------*/

.input.error {
    margin-bottom: 1.5rem;
}

.input.error input, 
.input.error select, 
.input.error textarea {
    border: 2px solid #e74c3c;
    background-color: #fdf2f2;
    transition: all 0.3s ease;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    font-weight: 600;
    max-width: fit-content;
    margin-top: 5px;
    padding: 5px 5px;
    border-radius: 4px;
    background: rgba(231, 76, 60, 0.1);
    display: inline-block;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}


.cguLogin {
  margin-left: 0;
  color: #77b361;

}

.linkLogin1 {
  text-decoration: none;
  color: #77b361;
}

.linkLogin2 {
  text-decoration: none;
  color: #77b361;
  text-align: center;
  padding: 20px;
  margin: 0px;
}

input.signin-checkbox {
  transform: scale(2.2);
  accent-color: #77b361;
  cursor: pointer;
  padding: 10px;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.checkbox-inline input[type="checkbox"] {
    margin: 0;
    
}

.signin-checkbox{
  width: 10%;
}


/*-----------------------------------HISTOIRE-----------------------------------*/

.banniere-histoire {
  display: flex;
  flex-direction: column;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url("/img/histoire.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 400px;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.banniere-histoire h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 4em;
  margin: 0;
}

.banniere-histoire h2 {
  font-size: 1.5em;
  margin: 0;
  font-style: italic;
}

.listeHistoire {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 10px;
  margin-top: 20px;
  justify-items: center;
}

.histoire {
  border: #77b361 solid 3px;
  border-radius: 15px;
  width: 80%;
  padding: 1em;
  height: fit-content;
  position: relative;
}

.histoire img {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
  height: 400px;
}

.histoire h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5em;
  text-align: center;
  color: #77b361;
}

.histoire p {
  font-family: 'Poppins', sans-serif;
  font-size: 1em;
}

.histoire a {
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  font-size: 1em;
  color: #77b361;
}

.page-histoire .listeHistoire {
  display: flex;
  justify-content: center;
}

.page-histoire .histoire {
  text-align: center;
  width: 50%;
  margin: 0 auto;
  font-size: 1.2em;
}

.page-histoire .histoire h2 {
  font-size: 2.5em;
  color: #77b361;
}

.page-histoire .histoire img {
  margin-bottom: 40px;
  margin-top: 20px;
}

.page-histoire .histoire p {
  font-size: 1.2em;
  line-height: 2;
  margin-bottom: 20px;
}

.histoire .delButton {
  position: absolute;
  background-color: #bb2626;
  color: white;
  border: none;
  padding: 5px 10px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
  top: 10px;
  right: 22px;
  transform: translate(50%, -50%);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.annuler {
  color: #77b361;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  text-align: center;
}

@media (max-width: 1024px) {

  .banniere-histoire h2 {
    font-size: 1em;
    text-align: center;
  }

  .listeHistoire {
    grid-template-columns: 1fr;
  }

  .page-histoire .histoire {
    width: 70%;
    text-align: center;
  }

  .page-histoire .histoire p,
  .page-histoire .histoire a {
    text-align: center;
  }

  .banniere-histoire {
    height: 300px;
  }

  .banniere-histoire h1 {
    font-size: 2.5em;
  }
}

/*-----------------------------------Debut VENTE PAGE-----------------------------------*/

.vente-banniere {
  display: flex;
  flex-direction: column;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("/img/imgVente/banniere_vente.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 400px;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  width: 100%;
  margin-bottom: 30px;
}

.vente-banniere h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 4em;
  font-weight: bold;
  margin: 0;
  text-transform: uppercase;
}


/* ----------------- Search bar ----------------- */
.filter-section {
  background-color: #f4f7f4;
  padding: 25px 0;
  margin-bottom: 40px;
  border-bottom: 2px solid #e8ede8;
}

.filter-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.filter-grid {
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  padding: 8px 15px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-box {
  flex: 2;
  display: flex;
  align-items: center;
  border-right: 1px solid #eee;
}

.search-box i {
  color: #999;
  margin-right: 10px;
}

.search-input {
  border: none;
  outline: none;
  width: 100%;
  margin: 0;
  margin-left: 10px;
  font-family: 'Poppins', sans-serif;
}

.sort-box {
  flex: 1;
}

.sort-select {
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  color: #555;
  cursor: pointer;
  padding: 10px;
}

.filter-submit {
  background: var(--color-bouton);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 0;
}

.filter-submit:hover {
  transform: scale(1.1);
}

.reset-filter {
  color: #bbb;
  font-size: 1.2rem;
  transition: color 0.2s;
}

.reset-filter:hover {
  color: var(--color-del);
}

@media (max-width: 1024px) {
  .filter-grid {
    flex-direction: column;
    border-radius: 20px;
    padding: 15px;
  }

  .search-box {
    border-right: none;
    border-bottom: 1px solid #eee;
    width: 100%;
  }

  .sort-box {
    width: 100%;
  }
}

/* ------------- Fin search bar ------*/

.liste-produit {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  padding: 20px;
}

.produit {
  width: calc(25% - 15px);
  box-sizing: border-box;
  height: auto;
  flex-shrink: 0;
  display: flex;
}

[class^="produit-"] {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border: 2px solid var(--color-article-border);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  box-sizing: border-box;
  text-decoration: none;
  position: relative;
  min-height: 100%;
  height: auto;
}

[class^="produit-"]>img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: transparent;
  border-radius: 10px;
  margin-bottom: 10px;

}

[class^="produit-"]>p {
  font-family: 'Poppins', sans-serif;
  color: black;
  margin: 5px 0;
  font-size: 1.2em;
}

[class^="produit-"]>p.desc {
  font-family: 'Poppins', sans-serif;
  line-height: 1.5;
  font-size: 1.1em;
  margin: 0;
  width: 90%;
  text-align: left;
}

[class^="produit-"]>p.nom {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6em;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 10px;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
  width: 100%;
}

.info-product {
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: auto;
  padding: 10px 5px;
}

.voir-produit {
  font-family: 'Poppins', sans-serif;
  display: inline-block;
  margin-top: 10px;
  color: var(--color-article);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
}

.voir-produit:hover {
  text-decoration: underline;
}

.lien-product {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: auto;
  padding: 10px 5px;
  font-size: 22px;
}

.lien-product a {
  text-decoration: none;
  font-size: 0.85em;
  font-family: 'Poppins', sans-serif;
}

.ajout-panier {
  font-family: 'Poppins', sans-serif;
  padding: 10px;
  background-color: var(--color-article);
  color: var(--color-text);
  text-decoration: none;
  border-radius: 8px;

}


.delButton,
.masqueButton,
.modifButton {
  display: none;
  z-index: 1111;
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: 10px;
  transition: all 0.3s ease;
  pointer-events: auto !important;
  justify-content: center;
  align-items: center;
  border: 2px solid white;
}

.delButton:hover,
.masqueButton:hover,
.modifButton:hover {
  transform: translateX(-50%) translateY(-5px) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.delButton img,
.masqueButton img,
.modifButton img {
  width: 30px !important;
  height: 30px !important;
}

.produit {
  position: relative;
  width: calc(25% - 15px);
  display: flex;
}

/* ------- section responsable --------- */
.responsable {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  flex-direction: row;

}

.button,
.button2 {
  display: block;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
  font-size: 1.3em;
  border-radius: 12px;
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin: 0;
  margin-top: 10px;
  margin-bottom: 10px;

}

.button {
  background-color: var(--color-bouton);
  color: white !important;
}

.button2 {
  background-color: #6c757d;
  color: white;
  display: none;
}

.button:hover,
.button2:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  color: white;
}

/* --- action sur les cartes --- */
.delButton,
.masqueButton,
.modifButton {
  display: none;
  z-index: 1111;
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: 10px;
  transition: all 0.3s ease;
  pointer-events: auto !important;
  justify-content: center;
  align-items: center;
  border: 2px solid white;
}

/* --- couleurs --- */
.delButton {
  background-color: var(--color-del);
}

.masqueButton {
  background-color: #838383;
}

.modifButton {
  background-color: var(--color-bouton);
}

/* --- survol --- */
.delButton:hover,
.masqueButton:hover,
.modifButton:hover {
  transform: translateX(-50%) translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  filter: brightness(1.2);
}

/* --- taille des icones --- */
.delButton img,
.masqueButton img,
.modifButton img {
  width: 32px !important;
  /* Plus gros */
  height: 32px !important;
  object-fit: contain;
  display: block;
}

/* --- overlay et masquage --- */
.produit {
  position: relative;
  width: calc(25% - 15px);
  display: flex;
}

.indisponible-overlay {
  display: none;
  z-index: 10;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(2px);
  border-radius: 10px;
  pointer-events: none;
  justify-content: center;
  align-items: center;
}



.produit.masque .indisponible-overlay {
  display: flex;
}

.produit.masque {
  cursor: not-allowed;
}

.indisponible-overlay span {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--color-del-hover);
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 24px;
  border-radius: 8px;
  transform: rotate(-10deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* désactivation des clics */
.produit.masque a:not(.masqueButton):not(.delButton):not(.modifButton),
.produit.masque .ajout-panier {
  pointer-events: none;
  opacity: 0.4;
}

.produit.masque img {
  filter: grayscale(100%);
}

.empty-list {
  width: 100%;
  text-align: center;
  padding: 50px 20px;
  font-family: 'Poppins', sans-serif;
  color: #666;
  border: 2px dashed var(--color-article-border);
  border-radius: 10px;
}

.empty-list>.btn-retour {
  background: #f0f0f0;
  color: #777;
  font-family: 'Poppins', sans-serif;
  display: block;
  padding: 18px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: 15px;
  transition: all 0.3s ease;
  font-size: 1.1em;
}

.empty-list>.btn-retour:hover {
  background: #e5e5e5;
  color: #333;
}


/* ---------------------------- DEBUT pages des formulaires (edit et add) -----------------------*/

.form-container {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 20px 0;
}

#productForm {
  width: 100%;
  max-width: 600px;
}

/* compteurs */
.compteur-caractere {
  text-align: right;
  font-size: 0.8em;
  margin-right: 5%;
  color: #666;
  margin-top: -5px;
  margin-bottom: 10px;
}

/* preview image */
#image-preview-container {
  margin: 15px auto;
  text-align: center;
  width: 90%;
  display: none;
}

#image-preview-container img {
  max-width: 100%;
  height: auto;
  max-height: 200px;
  border: 2px solid #77b361;
  border-radius: 10px;
}

/* les boutons valider/annuler */
#confirmNo2,
.btnAdd {
  width: 90% !important;
  margin: 10px 5% !important;
  padding: 10px !important;
  font-size: 1.2em !important;
}

#confirmNo2 {
  background-color: #6c757d;
}

.btnAdd {
  background-color: #77b361;
}

.form-content>label,
.form-content>input,
.form-content>textarea {
  width: 90%;
  margin-left: 5%;
  margin-right: 5%;
}

/*----------------------------------------- FIN pages des formulaires (edit et add) ------------------------------------------*/
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid #5e974d;
  width: 40%;
  max-width: 40%;
  font-size: 1em;
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.37);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-text);
}

.modal-content>p {
  font-size: 24px;
  margin-bottom: 2%;
}

.modal-actions {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.modal-actions button {
  padding: 10px 20px;
  margin: 5px;
  cursor: pointer;
  border: none;
  border-radius: 3px;
}

#confirmYes {
  background-color: var(--color-del);
  color: var(--color-text);
  transition: background-color 0.3s ease;
  width: 35%;
}

#confirmYes:hover {
  background-color: var(--color-del-hover);
  color: white;
}

#confirmNo {
  background-color: #6c757d;
  color: white;
  width: 35%;
}

#confirmNo2 {
  background-color: #6c757d;
  color: white;
  width: 71%;
}

@media (max-width: 1024px) {
  .vente-banniere {
    height: 300px;
  }

  .vente-banniere h1 {
    font-size: 2.5em;
  }

  .vente-banniere h2 {
    font-size: 1em;
    width: 90%;
  }

  .liste-produit {
    padding: 10px;
    gap: 15px;
    justify-content: center;
  }

  .produit {
    width: calc(50% - 7.5px);
  }

  [class^="produit-"] {
    padding: 5px;
    height: 100%;
  }

  [class^="produit-"]>p.nom {
    font-size: 1.4em;
  }

  [class^="produit-"]>p.desc {
    font-size: 0.9em;
  }

  [class^="produit-"]>.delButton,
  [class^="produit-"]>.masqueButton,
  [class^="produit-"]>.modifButton {
    font-size: 14px;
    padding: 4px 8px;
    top: 10px;
    width: auto;
  }

  [class^="produit-"]>.modifButton {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
  }

  [class^="produit-"]>.masqueButton {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
  }

  [class^="produit-"]>.delButton {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
  }

  .modal-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 14%;
  }

  #confirmYes {
    transition: background-color 0.3s ease;
    width: 70%;
  }

  #confirmNo {
    background-color: #6c757d;
    color: white;
    width: 70%;
  }

  .form-container>form {
    padding: 10px;
  }

  .form-content {
    width: 95%;
    margin-top: 10px;
  }

  .form-content>fieldset {
    font-size: 1.3em;
  }

  .form-content>label,
  .form-content>input,
  .form-content>textarea {
    margin: 5px 3% 5px 3%;
    width: 94%;
    box-sizing: border-box;
  }

  .form-content>.btnAdd {
    margin: 10px 3%;
    width: 94%;
  }

  .close-btn {
    font-size: 20px;
    padding: 8px 12px;
  }
}

/* ---------------------------- Page Details Produit ---------------------------- */

.detail-container {
  padding: 80px 5%;
  display: flex;
  justify-content: center;
  background-color: #fcfdfc;
}

.product-detail-wrapper {
  display: flex;
  flex-direction: row;
  gap: 60px;
  max-width: 1100px;
  width: 100%;
  background: white;
  border-radius: 25px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.detail-image {
  flex: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  border-radius: 20px;
  overflow: hidden;
}

.detail-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.detail-image:hover img {
  transform: scale(1.05);
}

.detail-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 25px;
}

.detail-info h1 {
  font-family: 'Poppins', sans-serif;
  color: #2c3e50;
  font-size: 2.8em;
  margin: 0;
  line-height: 1.2;
}

.detail-prix {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2em;
  color: var(--color-bouton);
  font-weight: 800;
  margin: 0;
}

.detail-desc h3 {
  font-family: 'Poppins', sans-serif;
  color: #2c3e50;
  font-size: 1.2em;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-desc p {
  font-family: 'Poppins', sans-serif;
  line-height: 1.8;
  color: #666;
  font-size: 1.05em;
}

.detail-stock {
  font-family: 'Poppins', sans-serif;
  font-size: 1em;
  color: #888;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-stock strong {
  color: #2c3e50;
  background: #edf7ed;
  padding: 2px 10px;
  border-radius: 20px;
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.detail-actions .ajout-panier,
.detail-actions .btn-retour {
  font-family: 'Poppins', sans-serif;
  display: block;
  padding: 18px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: 15px;
  transition: all 0.3s ease;
  font-size: 1.1em;
}

.detail-actions .ajout-panier {
  background: var(--color-bouton);
  color: white;
  box-shadow: 0 8px 20px rgba(119, 179, 97, 0.3);
}

.detail-actions .ajout-panier:hover {
  background: #558b2f;
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(119, 179, 97, 0.4);
}

.detail-actions .btn-retour {
  background: #f0f0f0;
  color: #777;
}

.detail-actions .btn-retour:hover {
  background: #e5e5e5;
  color: #333;
}

.detail-info.out-of-stock .ajout-panier {
  background: #ccc;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

@media (max-width: 900px) {
  .product-detail-wrapper {
    flex-direction: column;
    padding: 25px;
    gap: 30px;
  }

  .detail-info h1 {
    font-size: 2em;
  }

  .detail-image {
    max-height: 400px;
  }
}

/*-- Fin detail produit --- */
/* --- Page de Confirmation de Suppression --- */
.confirm-delete-container {
  display: flex;
  justify-content: center;
  padding: 50px 5%;
}

.confirm-delete-box {
  background-color: white;
  border: 3px solid var(--color-del);
  border-radius: 20px;
  padding: 40px;
  max-width: 700px;
  width: 95%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.confirm-delete-box h3 {
  font-family: 'Poppins', sans-serif;
  color: #2c3e50;
  margin-bottom: 25px;
  font-size: 1.8em;
}

.confirm-product-info {
  margin-bottom: 35px;
  padding: 25px;
  background: #fdfdfd;
  border-radius: 15px;
  border: 1px solid #eee;
}

.confirm-product-info img {
  max-width: 250px;
  height: auto;
  border-radius: 12px;
  border: 2px solid #f0f0f0;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.confirm-product-info p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2em;
  margin: 8px 0;
  color: #333;
}

.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-confirm-back {
  background-color: #6c757d;
  color: white;
  padding: 15px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.btn-confirm-back:hover {
  background-color: #5a6268;
  transform: translateY(-2px);
}

.btn-confirm-danger {
  background-color: var(--color-del);
  color: white;
  padding: 15px 30px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-confirm-danger:hover {
  background-color: var(--color-del-hover);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .confirm-actions {
    flex-direction: column;
  }

  .btn-confirm-back,
  .btn-confirm-danger {
    width: 100%;
  }
}

/*----------------------------- Fin confirmation delete --------------*/

/*------------------------------- Fin Vente Page  ------------------------*/

/*------------------------------Debut Panier------------------------*/

/* --- (Header) --- */
.panier-link {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.panier-link>img {
  width: 50px;
  height: auto;
  border-radius: 5px;
  transition: transform 0.2s;
}

.panier-link:hover>img {
  transform: scale(1.1);
}

.panier-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #ff0000;
  color: white;
  font-size: 0.65em;
  padding: 1px 5px;
  border-radius: 50%;
  border: 1.5px solid white;
  min-width: 15px;
  text-align: center;
  font-weight: bold;
}

/* --- panier --- */
.empty-cart {
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 15px;
  padding: 50px 0;
}

/* ---------------------------- Page Panier ---------------------------- */
/*------------------------------ SECTION PANIER ------------------------*/

.panier-container {
  padding: 60px 5%;
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Poppins', sans-serif;
}

.panier-titre {
  text-align: center;
  color: #2c3e50;
  font-weight: 800;
  font-size: 2.2em;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- etat vide --- */
.empty-cart {
  text-align: center;
  padding: 80px 20px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.empty-msg {
  color: #888;
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* info promesse d'achat */
    .cart-info-notice {
        display: flex;
        align-items: flex-start;
        background-color: #f2f9f2;
        border-left: 5px solid #6bb264;
        border-radius: 8px;
        padding: 20px 25px;
        margin: 30px 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    }

    .cart-info-notice .notice-icon {
        color: #6bb264;
        font-size: 1.8em;
        margin-right: 18px;
        margin-top: 2px;
    }

    .cart-info-notice .notice-content h4 {
        margin: 0 0 8px 0;
        color: #2c3e50;
        font-size: 1.1em;
        font-weight: 700;
        font-family: 'Poppins', sans-serif;
    }

    .cart-info-notice .notice-content p {
        margin: 0;
        color: #555;
        font-size: 0.95em;
        line-height: 1.6;
    }

    .cart-info-notice .notice-content strong {
        color: #2c3e50;
        font-weight: 600;
    }

    @media (max-width: 768px) {
        .cart-info-notice {
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 15px;
        }

        .cart-info-notice .notice-icon {
            margin-right: 0;
            margin-bottom: 10px;
        }
    }

/* --- Tableau (Cartes) --- */
.panier-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 15px;
  margin-bottom: 30px;
}

.panier-table thead th {
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85em;
  padding: 10px 25px;
  border: none;
}

.panier-table tbody tr {
  background-color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.panier-table tbody tr:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.panier-table td {
  padding: 25px;
  vertical-align: middle;
}

.panier-table td:first-child {
  border-radius: 20px 0 0 20px;
}

.panier-table td:last-child {
  border-radius: 0 20px 20px 0;
}

/* --- Cellule Produit --- */
.td-produit {
  display: flex;
  align-items: center;
  gap: 25px;
}

.td-produit img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 15px;
  border: 1px solid #f0f0f0;
}

.product-name {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1.1em;
}

/* --- Controles de Quantité (Alignés) --- */
.td-qte {
  text-align: center;
}

.qte-controls {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  padding: 5px;
  border-radius: 12px;
  gap: 15px;
}

.btn-qte {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  color: #2c3e50;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.btn-qte:hover:not(.disabled) {
  background-color: var(--color-bouton);
  color: white;
  transform: scale(1.1);
}

.qte-valeur {
  min-width: 25px;
  text-align: center;
  font-size: 1.1em;
  color: #2c3e50;
}

.btn-qte.disabled {
  opacity: 0.2;
  cursor: not-allowed;
  box-shadow: none;
}

/* --- Sous-total & Actions --- */
.td-subtotal {
  font-weight: 800;
  color: #2c3e50;
  font-size: 1.1em;
}

.td-actions {
  text-align: right;
}

.btn-suppr {
  color: #e74c3c;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
  padding: 8px 15px;
  border-radius: 10px;
  transition: background 0.2s;
}

.btn-suppr:hover {
  background: #fef2f2;
}

/* --- Footer & Total --- */
.panier-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 35px;
  margin-top: 40px;
}

.total-box {
  display: flex;
  align-items: center;
  gap: 25px;
  background: white;
  padding: 20px 40px;
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.total-label {
  color: #999;
  font-weight: 700;
  font-size: 0.9em;
  letter-spacing: 1px;
}

.total-montant {
  font-size: 2.2em;
  font-weight: 900;
  color: var(--color-bouton);
}

/* --- Boutons Finaux  --- */
.actions-finales {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 20px;
}


.actions-finales form {
  margin: 0;
  display: contents;
}

.btn-valider,
.btn-continuer {
  border-radius: 18px;
  font-weight: 700;
  font-size: 1.15em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.btn-valider {
  background-color: var(--color-bouton, #77b361);
  color: white;
  box-shadow: 0 10px 25px rgba(119, 179, 97, 0.3);
  padding: 20px;
  margin: 0;
}

.btn-valider:hover {
  background-color: #558b2f;
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(119, 179, 97, 0.4);
}

.btn-continuer {
  background-color: #f5f5f5;
  color: #666;
  max-height: fit-content;
  max-width: fit-content;
  padding: 20px;
  margin: 0;
}

.btn-continuer:hover {
  background-color: #eee;
  color: #333;
  transform: translateY(-3px);
}


/* --- Chargement validation --- */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  text-align: center;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.spinner {
  width: 70px;
  height: 70px;
  border: 6px solid #f0f0f0;
  border-top: 6px solid var(--color-bouton);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 25px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5em;
  color: #2c3e50;
  font-weight: 700;
}

.loading-subtext {
  display: block;
  font-size: 0.65em;
  color: #777;
  margin-top: 15px;
  font-weight: 500;
}

/* --- Media Queries (Mobile) --- */
@media (max-width: 1024px) {
  .panier-table thead {
    display: none;
  }

  .panier-table tr {
    display: block;
    background: white;
    margin-bottom: 20px;
    border-radius: 20px;
    padding: 15px;
  }

  .panier-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 10px;
  }

  .panier-table td:last-child {
    border-bottom: none;
  }

  .panier-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--color-bouton);
    font-size: 0.8em;
  }

  .td-produit {
    flex-direction: column;
    text-align: center;
  }

  .td-produit::before {
    display: none;
  }

  .panier-footer {
    flex-direction: column;
    align-items: center;
  }

  .total-box {
    margin-bottom: 20px;
  }

  .actions-finales {
    flex-direction: column-reverse;
    align-items: center;
    gap: 15px;
    width: 100%;
  }

  .btn-valider,
  .btn-continuer {
    width: 100%;
    max-width: none;
    justify-content: center;
    font-size: 20px;
  }
}

/*------------------------------Fin Panier------------------------*/

/*-----------------------------------Debut PARTENAIRE PAGE-----------------------------------*/
.partenaires-banniere {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("/img/imgPartenaire/part-banniere.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 400px;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.partenaires-banniere h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 4em;
  margin: 0;
}

.partenaires-banniere h2 {
  font-size: 1.5em;
  margin: 0;
  font-style: italic;
}

.liste-partenaire {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  padding: 20px;
}

.partenaire {
  width: calc(25% - 15px);
  box-sizing: border-box;
  flex-shrink: 0;
}

a.btnAdd {

  display: inline-block;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
  font-size: 1.3em;
  border-radius: 12px;
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;

}

[class^="partenaire-"] {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border: 2px solid #77b361;
  border-radius: 10px;
  padding: 7px;
  text-align: center;
  box-sizing: border-box;
  text-decoration: none;
  position: relative;
  max-height: 100%;
  height: 100%;
}

[class^="partenaire-"]>p {
  font-family: 'Poppins', sans-serif;
  color: black;
  margin: 5px 0;
  font-size: 1.2em;
}

[class^="partenaire-"]>p.nom {
  font-size: 1.5em;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 10px;
  text-align: center;
  text-transform: uppercase;
}

[class^="partenaire-"]>a {
  font-size: 1.4em;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  color: #77b361;
  margin: 5px 0;
}

[class^="partenaire-"]>a:hover {
  text-decoration: underline;
}

[class^="partenaire-"]>.delButton {
  display: none;
  z-index: 11;
  background-color: #bb2626;
  color: white;
  border: none;
  padding: 5px 10px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(50%, -50%);

  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

[class^="partenaire-"]>.delButton:hover {
  background-color: #ff0019;
  transform: translate(50%, -50%) scale(1.1);
}

.error-message {
  color: red;
  font-size: 0.9em;
  margin-left: 5%;
  margin-bottom: 10px;
  margin-top: -20px;
  display: block;
}

.form-content textarea.error {
  border: 2px solid red !important;
}

@media (max-width: 1024px) {
  .partenaires-banniere {
    height: 300px;
  }

  .responsable>.button,
  .button2 {
    width: 40%;
  }

  .partenaires-banniere h1 {
    font-size: 2.5em;
  }

  .partenaires-banniere h2 {
    font-size: 1em;
    width: 90%;
  }

  .liste-partenaire {
    padding: 10px;
    gap: 15px;
    justify-content: center;
  }

  .partenaire {
    width: calc(50% - 7.5px);
  }

  [class^="partenaire-"] {
    height: 100%;
    padding: 5px;
  }

  [class^="partenaire-"]>p.nom {
    font-size: 1.2em;
  }

  [class^="partenaire-"]>p {
    font-size: 1em;
  }

  [class^="partenaire-"]>a {
    font-size: 1.2em;
  }

  [class^="partenaire-"]>.delButton {
    font-size: 16px;
    padding: 3px 8px;
    width: auto;
  }

  .responsable {
    flex-direction: column;
    gap: 10px;
  }

  .responsable>.button {
    width: 70%;
    font-size: 1em;
    height: auto;
    padding: 10px;
  }

  .responsable form {
    display: none;
  }

  .form-content>.btnAdd {
    background-color: #77b361;
    border: 2px solid #77b361;
    color: white;
    font-weight: bold;
    font-size: 1em;
    font-family: "Poppins", sans-serif;
    cursor: pointer;
    margin: 2% auto;
    transition: background-color 0.3s ease;
    width: 80%;
  }

  #confirmNo2 {
    background-color: #6c757d;
    color: white;
    width: 80%;
  }
}

/*-----------------------------------Fin PARTENAIRE PAGE-----------------------------------*/


/*-----------------------------------Profil-----------------------------------*/
#profilDiv {
  display: flex;
  flex-direction: column;
  align-items: center;

  max-width: 100%;
}

@media (min-width: 1025px) {
  .profil {
    margin: 0 auto;
    display: block;
    text-align: left;
    font-size: 1.5rem;
    padding-left: 4rem;
    padding-right: 4rem;
    width: fit-content;
    border: 5px solid #88b370;
    border-radius: 10px;
    margin-top: 2.25em;
  }

  .profil.profil--compact {
    margin-top: 0em;
  }

  .a-button {
    text-align: center;
    text-decoration: none;
    color: white;
    margin: 0 auto;
  }

  .a-button {
    text-align: center;
    text-decoration: none;
    color: white;
    margin: 0 auto;
    padding: 5px;
    margin-bottom: 10px;
  }

  .b-button {
    text-align: center;
    text-decoration: none;
    color: white;

    border: 5px var(--color-button-background-del-profil);
    background-color: var(--color-button-background-del-profil);
    padding: 3px;

  }

  .notif {
    text-align: center;
  }


  .legend-profil {
    margin-left: 37%;
  }

  .span-profil2 {
    display: block;
    text-align: center;
    padding: 0;
    margin-top: 1%;
    margin-bottom: -1em;
    font-family: "Childos Arabic";
    font-size: 2em;
    margin-bottom: 20px;
  }

  .span-message-profil {
    font-size: 1.2em;
    font-weight: 450;
    display: block;
    text-decoration: none;
    color: black;
    font-family: "Poppins", sans-serif;
    text-align: center;
    padding-bottom: 25px;
  }

  .p-profil {
    display: flex;
    flex-direction: row;
    max-width: 100%;
  }

  .p-profil-name {
    display: flex;
    flex-direction: column;


  }

  .p-profil-name2 {
    display: flex;
    flex-direction: column;

  }

  h2#profil-h2 {
    align-self: center;
  }
}

@media (max-width: 1024px) {
  .profil {
    margin: 0 auto;
    display: block;
    text-align: left;
    font-size: 1rem;
    width: fit-content;
    border: 5px solid var(--color-article-border);
    border-radius: 10px;
  }

  .notif {
    text-align: center;
  }


  .profil.profil--compact {
    margin-top: 0em;
  }

  .span-profil {
    display: block;
    text-align: center;
    font-family: "Childos Arabic";
    font-size: 1.2em;
  }

  .span-profil2 {
    display: block;
    text-align: center;
    padding: 0;
    margin-top: 3em;
    margin-bottom: -1em;
    font-family: "Childos Arabic";
    font-size: 1.5em;
  }

  .a-button {
    text-align: center;
    text-decoration: none;
    color: white;
    margin: 0 auto;
    width: fit-content;
    max-width: 230px;
  }

  .legend-profil {
    margin-left: 0;
  }

  .span-profil2 {
    display: block;
    text-align: center;
    align-items: center;
    padding: 0;
  }


  .form-profil {
    align-content: center;
  }

  .p-profil {
    font-family: 'Bebas';
    display: flex;
    flex-direction: row;
    width: 100%;
  }

  .p-profil-name {
    display: flex;
    flex-direction: column;
  }

  .p-profil-name2 {
    display: flex;
    flex-direction: column;

  }

  h2#profil-h2 {
    align-self: center;
  }

}

@media (max-width: 768px) {
  .p-profil {
    flex-direction: column;
    width: 100%;
  }
}

/*-----------------------------------fin Profil-----------------------------------*/

/*-----------------------------------RESET MDP-----------------------------------*/

@media(min-width:769px) {
  .form-reset {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1em;
    margin-left: 30%;
    margin-right: 35%;
    margin-top: 5%;
    margin-bottom: 10%;
    padding: 1em;
  }

  .reset-legend {
    font-size: 1.2em;
    margin-left: .5em;
  }

  .reset-label {
    font-size: 1em;
  }

  .reset-button {
    font-size: 1.2em;
  }
}


@media(max-width:768px) {
  .form-reset {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1em;
    margin-top: 20%;
    margin-bottom: 10%;
    padding: 1em;
  }

  .reset-legend {
    font-size: .7em;
  }

  .reset-label {
    font-size: .6em;
  }

  .reset-button {
    font-size: .7em;
  }
}

/*-----------------------------------fin RESET-----------------------------------*/

/*-----------------------------------Debut sous-menu -----------------------------------*/


.profile-link>img {
  width: 60px;
  height: auto;
  transition: transform 0.2s;
}

.profile-link:hover>img {
  transform: scale(1.1);
}

.sous-menuProfile,
.sous-menuAction {
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
  position: absolute;
  background-color: #fff;
  list-style: none;
  padding: 10px;
  margin: 0;
  pointer-events: none;
  border-right: #77b361 solid;
  border-left: #77b361 solid;

}

.sous-menuProfile>li,
.sous-menuAction>li {
  margin-top: 20px;
  margin-bottom: 20px;

}

li:hover>.sous-menuProfile,
li:hover>.sous-menuAction {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 1024px) {

  .nos-actions-title,
  .profile-item {
    display: none !important;
  }

  .visible-mobile {
    display: block !important;
  }
}

.visible-mobile {
  display: none;
}

/*-----------------------------------Fin sous-menu -----------------------------------*/

/*-----------------------------------ADMIN-----------------------------------*/

.banniere-admin {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("/img/admin.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 400px;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.banniere-admin h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 4em;
  margin: 0;
}

.banniere-admin h2 {
  font-size: 1.5em;
  margin: 0;
  font-style: italic;
}

#admin {
  width: 80%;
  max-width: 900px;
  margin: 50px auto;
  border-collapse: collapse;
  font-size: clamp(0.9rem, 1.5vw, 1.3rem);
}

#admin th,
#admin td {
  border: 3px solid #1e9738;
  padding: 15px;
  text-align: center;
}

#admin th {
  color: #1e9738;
  font-weight: bold;
}

#admin thead,
tbody {
  border: #1e9738 2.5px solid;
  border-radius: 20px;
  overflow: hidden;
}

@media (max-width: 768px) {
  #admin {
    font-size: clamp(0.8rem, 3vw, 1.1rem);
  }

  #admin thead {
    display: none;
  }

  #admin tr {
    display: block;
    margin-bottom: 20px;
    border: 3px solid #1e9738;
    border-radius: 10px;
    padding: 10px;
  }

  #admin td {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border: none;
    border-bottom: 1px solid #ccc;
  }

  #admin td:last-child {
    border-bottom: none;
  }

  #admin td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #1e9738;
  }
}

#user-name {
  font-family: "Poppins", sans-serif;
  font-size: 0.9em;
  color: var(--color-article);
  transform: translateX(-25%);
  padding: 20px 50% 20px 50%;
}

/*-----------------------------------ROLES-----------------------------------*/

#role-select {
  display: flex;
  flex-direction: row;
  padding: 10px 30% 10px 30%;
}

#email-input button,
#role-select button {
  background-color: #77b361;
  border: 5px solid #5e974d;
  color: white;
  font-weight: bold;
  font-size: 1em;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  margin: 2% 3.6em;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  text-decoration: none;
  text-align: center;
  padding-left: 10px;
  padding-right: 10px;
}

#role-select button:hover {
  background-color: #5e974d;
}

/*-----------------------------------404-----------------------------------*/

.p404 {
  max-width: 600px;
  text-align: center;
  padding: 20px;
  margin-left: 33%;
  margin-top: 5%;
}

.error-code {
  font-size: 120px;
  font-weight: 900;
  color: #77b361;
  line-height: 1;
  margin-bottom: 20px;
  animation: p404 3s ease-in-out infinite;
}

.p404 h1 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #77b361;
  font-family: 'Childos Arabic', sans-serif;
}

.p404 p {
  font-size: 18px;
  font-family: 'Monserrat', sans-serif;
  margin-bottom: 30px;
}

.p404 .btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #77b361;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-family: 'Monserrat', sans-serif;
}

.p404 .btn:hover {
  background-color: #77b361;
  transform: translateY(-2px);
}

@keyframes p404 {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/*-----------------------------------404-----------------------------------*/

/*-----------------------------------RGPD-----------------------------------*/

@media(min-width: 769px) {

  .rgpd-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1f2933;
    background-color: #ffffff;
  }

  .rgpd-container h1 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
  }

  .rgpd-section {
    margin-bottom: 35px;
  }

  .rgpd-section h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #0f172a;
  }

  .rgpd-section p {
    line-height: 1.6;
    margin-bottom: 10px;
  }

  .rgpd-section ul {
    padding-left: 20px;
  }

  .rgpd-section li {
    margin-bottom: 6px;
  }

  .c-button {
    text-align: center;
    text-decoration: none;
    color: white;
    margin: 25px auto;
    padding: 5px;
    margin-bottom: 10px;
  }

  .d-button {
    text-align: center;
    text-decoration: none;
    color: white;
    margin-top: 25px auto;
    padding: 5px;
    margin-bottom: 10px;
  }
}

@media(max-width: 768px) {

  .rgpd-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1f2933;
    background-color: #ffffff;
  }

  .rgpd-container h1 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
  }

  .rgpd-section {
    margin-bottom: 35px;
  }

  .rgpd-section h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #0f172a;
  }

  .rgpd-section p {
    line-height: 1.6;
    margin-bottom: 10px;
  }

  .rgpd-section ul {
    padding-left: 20px;
  }

  .rgpd-section li {
    margin-bottom: 6px;
  }

  .c-button {
    text-align: center;
    text-decoration: none;
    color: white;
    margin: 25px auto;
    padding: 5px;
    margin-bottom: 10px;
  }

  .d-button {
    text-align: center;
    text-decoration: none;
    color: white;
    margin-top: 25px auto;
    padding: 5px;
    margin-bottom: 10px;
  }
}

/*-----------------------------------FIN-RGPD-----------------------------------*/

/*-----------------------------------FOOTER-----------------------------------*/

footer {
  background-color: #77b361;
  color: white;
  font-family: 'Poppins', sans-serif;
  margin-top: 3em;
  padding: 20px 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

footer p,
footer a {
  margin: 0;
  color: white;
}

@media (max-width: 768px) {
  footer {
    flex-direction: column;
    text-align: center;
  }

  footer p,
  footer a {
    font-size: 13px;
  }
}

@media (min-width: 769px) {
  footer {
    flex-direction: row;
    padding: 30px 50px;
  }

  footer p {
    font-size: 15px;
  }

  footer a {
    font-size: 18px;
  }
}

/*-----------------------------------FIN-----------------------------------*/