body{
    height: auto;
    background-color: #f9f3ea;
}
.burger {
    display: none;
}

.carousel-mobile {
    display: none;
}

/* HEADER */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;
    background-color: #e7c695;
    max-height: 100px;
    gap: 20px;
}

header .logo-section {
    flex-shrink: 0;
}

header .logo img {
    height: 80px;
    width: auto;
    display: block;
}

header .nav-section {
    flex: 1;
    display: flex;
    justify-content: center;
}

header .nav-section ul {
    list-style: none;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

header .nav-section li {
    display: inline-block;
}

header .nav-section li a {
    display: block;
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid #7a6050;
    background-color: #f9f3ea;
    font-size: 15px;
    font-weight: 600;
    color: #4a3728;
    text-decoration: none;
    transition: all 0.3s ease;
}

header .nav-section li a:hover {
    background-color: #c9963a;
    color: #f9f3ea;
    border-color: #c9963a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 55, 40, 0.2);
}

header .social-section {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

header .social-section a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #f9f3ea;
    border-radius: 50%;
    transition: all 0.3s ease;
}

header .social-section img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

header .social-section a:hover {
    background-color: #c9963a;
    transform: scale(1.1);
}

.btn-deconnexion {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #c0392b;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;   
    text-decoration: none;
    transition: background 0.2s;
    flex-shrink: 0;
}

.btn-deconnexion:hover {
    background-color: #922b21;
}
/* INDEX */

.hero-index {
    padding: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
}
.hero-index h1 {
    width: 100%;
    font-size: 70px;
    text-align: center;
    margin-bottom: 30px;
    display: none;
}
.hero-index .intro {
    flex: 1 1 55%;
    min-width: 280px;
    font-size: 20px;
    line-height: 1.6;
    color: #4a3728;
}
.hero-index .carousel_gallery {
    flex: 1 1 35%;
    min-width: 280px;
    
}
.carousel_gallery {
    width: 100%;
    background-color: #f9f3ea;
}
.carousel_gallery .flickity-viewport {
    overflow: hidden;
}
.carousel_gallery .carousel-cell {
    width: 100%;
    margin-right: 0;
}
.carousel_gallery .carousel-cell img {
    display: block;
    width: auto;
    height: 250px;
    margin: 0 auto;
}

.gallery-alt {
    font-size: 14px;
    color: #7a6050;
    text-align: center;
    margin-top: 10px;
}

.presentation {
    padding: 50px;
    text-align: center;
}
.presentation h3 {
    font-size: 30px;
    color: #4a3728;
    margin-bottom: 30px;
}

.presentation p {
    font-size: 16px;
    color: #7a6050;
    line-height: 1.7;
    margin-bottom: 20px;
}

.bouton {
    text-align: center;
    margin-top: 20px;
}
.bouton a {
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid #7a6050;
    background-color: #f9f3ea;
    font-size: 15px;
    font-weight: 600;
    color: #4a3728;
    text-decoration: none;
    transition: all 0.3s ease;
}
.bouton a:hover {
    background-color: #c9963a;
    color: #f9f3ea;
    border-color: #c9963a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 55, 40, 0.2);
}

.Actuality {
  padding: 70px 60px;
  text-align: center;
}

.Actuality h2 {
  font-size: 50px;
  color: #4a3728;
  margin-bottom: 40px;
}

/* Flickity */
.Actuality .carousel_gallery {
  width: 100%;
}

.Actuality .carousel-cell {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px 0;
  align-items: stretch;
}

/* Cards */
.block-actuality {
  background-color: #f9f3ea;
  border: 1px solid rgba(201, 150, 58, 0.3);
  border-radius: 12px;
  width: 400px;
  flex-shrink: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.block-actuality img {
  width: auto;
  height: 200px;
}

.block-actuality h3 {
  font-size: 30px;
  color: #4a3728;
  margin-bottom: 10px;
  margin-top: 10px;
}

.block-actuality p {
  font-size: 20px;
  color: #7a6050;
  line-height: 1.7;
  margin-bottom: 16px;
}

.block-actuality a {
  display: inline-block;
  font-size: 20px;
  font-weight: 500;
  color: #6a462f;
  text-decoration: none;
}

.block-actuality a:hover {
  color: #ba852a;
  border-color: #e8d9c0;
}

.block-actuality p:last-child {
  margin-top: auto;
  margin-bottom: 0;
}
/* PRODUIT */

.hero-produits {
  text-align: center;
}

.hero-produits h1 {
  padding: 50px;
  font-size: 70px;
  color: #4a3728;
  margin-bottom: 40px;
}

.boutons button {
  font-size: 18px;
  font-weight: 500;
  padding: 9px 22px;
  border-radius: 40px;
  border: 2px solid #7a6050;
  background-color: #f9f3ea;
  color: #4a3728;
  transition: all 0.2s;
}

.boutons button:hover {
  background-color: #4a3728;
  color: #f9f3ea;
  border-color: #4a3728;
}

.boutons button.actif {
  background-color: #c9963a;
  color: #fff;
  border-color: #c9963a;
}

.boutons {
  position: sticky;
  top: 0;
  background-color: #f9f3ea;
  z-index: 10;
  padding: 20px 50px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}


.Produits {
    padding: 20px;
    text-align: center;
}

.Mandragore,
.Driade,
.Dahut,
.EnergyB {
    margin-bottom: 70px;
}

.Mandragore h2,
.Driade h2,
.Dahut h2,
.EnergyB h2 {
    font-size: 48px;
    color: #4a3728;
    margin-bottom: 36px;
}
.Mandragore p,
.Driade p,
.Dahut p,
.EnergyB p {
    font-size: 20px;
    color: #7a6050;
    line-height: 1.6;
    margin-bottom: 36px;
}

.Mandragore .carousel_gallery,
.Driade .carousel_gallery,
.Dahut .carousel_gallery,
.EnergyB .carousel_gallery {
    width: 100%;
}

.Mandragore .carousel-cell,
.Driade .carousel-cell,
.Dahut .carousel-cell,
.EnergyB .carousel-cell {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    padding: 10px 0;
}

.block-mandragore,
.Block-Driade,
.Block-Dahut,
.Block-EnergyB {
    border: 1px solid #e8d9c0;
    padding: 20px;
    background-color: #f9f3ea;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(74, 55, 40, 0.12);
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.block-mandragore:hover,
.Block-Driade:hover,
.Block-Dahut:hover,
.Block-EnergyB:hover {
    box-shadow: 0 8px 40px rgba(74, 55, 40, 0.2);
}
.block-mandragore img,
.Block-Driade img,
.Block-Dahut img,
.Block-EnergyB img {
    width: auto;
    height: 100px;
    border-radius: 8px;
    margin-top: 16px;
    margin-bottom: 12px;
}


.block-mandragore h3,
.Block-Driade h3,
.Block-Dahut h3,
.Block-EnergyB h3 {
    font-size: 30px;
    color: #4a3728;
    margin-bottom: 8px;
}

.block-mandragore p,
.Block-Driade p,
.Block-Dahut p,
.Block-EnergyB p {
    font-size: 20px;
    color: #7a6050;
    line-height: 1.6;
    margin-bottom: 8px;
}


.block-mandragore .btn-panier,
.Block-Driade .btn-panier,
.Block-Dahut .btn-panier,
.Block-EnergyB .btn-panier {
    margin-top: 0;
}
.Produits .prix {
    font-size: 25px;
    font-weight: bold;
    color: #c9963a;
    margin: 10px 0;
    margin-top: auto;  
}

.Produits .quantite {
    width: 60px;
    padding: 8px 10px;
    border: 1.5px solid #4a3728;
    border-radius: 8px;
    font-size: 15px;
    color: #4a3728;
    background: #f9f3ea;
    text-align: center;
    margin-top: 10px;
}

.recapitulatif {
    max-width: 600px;
    margin: 40px auto 20px;
    padding: 24px 32px;
    background-color: #f9f3ea;
    border: 2px solid #c9922a;
    border-radius: 12px;
}

.recapitulatif h2 {
    font-size: 20px;
    font-weight: 500;
    color: #4a3728;
    margin-bottom: 16px;
    text-align: center;
}

.recapitulatif ul {
    list-style: none;
    margin-bottom: 16px;
}

.recapitulatif ul li {
    padding: 8px 0;
    border-bottom: 1px solid #e7c695;
    color: #4a3728;
    font-size: 15px;
}

.recapitulatif ul li:last-child {
    border-bottom: none;
}

.recap-total {
    text-align: right;
    font-size: 15px;
    color: #7a5020;
    margin-top: 8px;
}

.recap-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}
.recap-qte-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}
.recap-qte {
    min-width: 20px;
    text-align: center;
}

.qte-btn {
    padding: 4px 8px;
    background-color: #4a3728;
    color: #f9f3ea;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}
.qte-btn:hover {
    background-color: #c9963a;
}

.btn-ajouter-panier {
    margin-top: 10px;
    padding: 10px 16px;
    background-color: #4a3728;
    color: #f9f3ea;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-ajouter-panier:hover {
    background-color: #c9963a;
}

.form-panier {
    background-color: #f9f3ea;
    padding: 24px;
    text-align: left;
    border: 1px solid #e8d9c0;
    border-radius: 12px;
    max-width: 520px;
    margin: 20px auto 0;
    box-shadow: 0 4px 20px rgba(74, 55, 40, 0.12);
    margin-bottom: 20px;
}

.form-panier div {
    margin-bottom: 16px;
}

.form-panier label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: #4a3728;
    font-weight: 500;
    text-align: center;  
}

.form-panier input {
    width: 80%;              
    display: block;        
    margin-left: auto;    
    margin-right: auto;
    padding: 12px 14px;
    border: 1.5px solid #e8d9c0;
    border-radius: 10px;
    background-color: #fff7ef;
    color: #4a3728;
    font-size: 16px;
}
.form-panier button {
    display: inline-block;
    width: 100%;
    padding: 12px 16px;
    margin-top: 8px;
    background-color: #4a3728;
    color: #f9f3ea;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
}

.form-panier button:hover {
    background-color: #c9963a;
}

.messagealert{

    text-align: center;
    font-size: 14px;
    color: #c0392b;
    margin-top: 20px;
    margin-bottom: 20px;
}




/* ADMIN*/ 

.admin .tabs {
    display: flex;
    background: #e8d9c0;
    padding: 0 40px;
}

.admin .tab {
    padding: 14px 28px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #7a6050;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.admin .tab.active, .admin .tab:hover {
    color: #4a3728;
    border-bottom: 3px solid #c9963a;
    background: #fdf6ee;
}

.admin .content { padding: 40px; }

.admin .section { display: none; }
.admin .section.active { display: block; }

.admin .message {
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 24px;
    font-size: 16px;
}
.admin .message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.admin .message.danger  { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.admin h2 { font-size: 32px; color: #4a3728; margin-bottom: 24px; }
.admin h3 { font-size: 20px; color: #4a3728; margin-bottom: 16px; }

.admin .form-card {
    background: #f9f3ea;
    border: 1px solid #e8d9c0;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 40px;
    max-width: 700px;
}

.admin .form-group { margin-bottom: 16px; }

.admin label {
    display: block;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #4a3728;
}

.admin input[type="text"],
.admin input[type="number"],
.admin input[type="file"],
.admin textarea,
.admin select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #c9963a;
    border-radius: 8px;
    font-size: 15px;
    font-family: Georgia, serif;
    background: #fff;
    color: #4a3728;
}

.admin input[type="file"] {
    padding: 8px;
    cursor: pointer;
}

.admin .img-separator {
    text-align: center;
    color: #7a6050;
    font-size: 14px;
    margin: 8px 0;
}

.admin .preview-img {
    height: 80px;
    width: auto;
    border-radius: 8px;
    margin-top: 8px;
    display: block;
}

.admin textarea { height: 100px; resize: vertical; }

.admin .btn {
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    font-family: Georgia, serif;
    font-weight: bold;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}

.admin .btn-primary { background: #4a3728; color: #f9f3ea; }
.admin .btn-primary:hover { background: #c9963a; }
.admin .btn-warning { background: #c9963a; color: #fff; }
.admin .btn-warning:hover { background: #a07828; }
.admin .btn-danger { background: #c0392b; color: #fff; }
.admin .btn-danger:hover { background: #922b21; }

.admin .btn-group { display: flex; gap: 10px; margin-top: 8px; }

.admin table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(74,55,40,0.08);
}

.admin thead { background: #4a3728; color: #f9f3ea; }

.admin th, .admin td {
    padding: 12px 16px;
    text-align: left;
    font-size: 15px;
    border-bottom: 1px solid #e8d9c0;
}

.admin tr:last-child td { border-bottom: none; }
.admin tr:hover td { background: #fdf6ee; }

.admin td img {
    height: 50px;
    width: auto;
    border-radius: 6px;
}

.admin .actions { display: flex; gap: 8px; }

.admin .galerie-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.admin .galerie-item {
    background: #f9f3ea;
    border: 1px solid #e8d9c0;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    width: 180px;
}

.admin .galerie-item img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.admin .galerie-item p {
    font-size: 13px;
    color: #7a6050;
    margin-bottom: 10px;
}
.sortable-ghost {
    opacity: 0.4;
    background-color: #e7c695;
}
#liste-actualites tr {
    cursor: grab;
}
#liste-actualites tr:active {
    cursor: grabbing;
}


/* ENVOIE */

.confirmation {
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
}

.confirmation ul {
    list-style: none;
    margin: 20px 0;
}

.confirmation li {
    padding: 8px 0;
    border-bottom: 1px solid #e7c695;
}

.confirmation .recap-total {
    margin-top: 20px;
    font-size: 18px;
}

.confirmation a {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 24px;
    border-radius: 40px;
    border: 2px solid #7a6050;
    background-color: #f9f3ea;
    color: #4a3728;
    text-decoration: none;
    transition: all 0.2s;
}

.confirmation a:hover {
    background-color: #ba852a;
    border-color: #ba852a;
    color: #f9f3ea;
}


/* CONTACT */ 
.contact-main {
    padding: 50px;
    text-align: center;
}
.hero-contact h1 {
    font-size: 70px;
    color: #4a3728;
    margin-bottom: 40px;
}

.contact-form {
    max-width: 500px;
    margin: 40px auto;
    padding: 24px;
    background-color: #f9f3ea;
    border: 1px solid #e8d9c0;
    border-radius: 12px;
}
.contact-form h2 {
    font-size: 28px;
    color: #4a3728;
    margin-bottom: 20px;
    text-align: center;
}
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: #4a3728;
    font-weight: 500;
}
.contact-form input,
.contact-form textarea {
    width: 80%;             
    display: block;         
    margin-left: auto;     
    margin-right: auto;
    padding: 12px 14px;
    border: 1.5px solid #e8d9c0;
    border-radius: 10px;
    background-color: #fff7ef;
    color: #4a3728;
    font-size: 16px;
    margin-bottom: 16px;    
}
.contact-form button {
    display: inline-block;
    width: 100%;
    padding: 12px 16px;
    margin-top: 8px;
    background-color: #4a3728;
    color: #f9f3ea;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
}
.contact-form button:hover {
    background-color: #c9963a;
}

/* CONNECT*/

.login-wrapper {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 60vh;
        }

        .login-card {
            background: #f9f3ea;
            border: 1px solid #e8d9c0;
            border-radius: 12px;
            padding: 40px;
            width: 100%;
            max-width: 400px;
            text-align: center;
            box-shadow: 0 4px 20px rgba(74, 55, 40, 0.12);
        }

        .login-card h2 {
            font-size: 28px;
            color: #4a3728;
            margin-bottom: 28px;
        }

        .login-card .form-group {
            margin-bottom: 16px;
            text-align: left;
        }

        .login-card label {
            display: block;
            font-size: 15px;
            font-weight: bold;
            margin-bottom: 6px;
            color: #4a3728;
        }

        .login-card input {
            width: 100%;
            padding: 10px 14px;
            border: 1.5px solid #c9963a;
            border-radius: 8px;
            font-size: 15px;
            font-family: Georgia, serif;
            background: #fff;
            color: #4a3728;
            box-sizing: border-box;
        }

        .login-card .erreur {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
            border-radius: 8px;
            padding: 10px;
            margin-bottom: 16px;
            font-size: 14px;
        }

        .login-card button {
            width: 100%;
            padding: 12px;
            margin-top: 8px;
            background: #4a3728;
            color: #f9f3ea;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-family: Georgia, serif;
            font-weight: bold;
            cursor: pointer;
            transition: background 0.2s;
        }

        .login-card button:hover {
            background: #c9963a;
        }

/* Confidentialité */
.hero-confidentialite
{
    padding: 50px;
    text-align: center;
}
.hero-confidentialite h1 {
    font-size: 70px;
    color: #4a3728;
    margin-bottom: 40px;
}
.confidentialite{
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 18px;
    line-height: 1.8;
    color: #7a6050;
    text-align: center; 
}
.confidentialite h2 {
    font-size: 28px;
    color: #4a3728;
    margin-top: 30px;
    margin-bottom: 20px;
}
.confidentialite p {
    margin-bottom: 16px;
}

/* Mentions */

.hero-mentions {
    padding: 50px;
    text-align: center;
}
.hero-mentions h1 {
    font-size: 70px;
    color: #4a3728;
    margin-bottom: 40px;
}
.mentions {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 18px;
    line-height: 1.8;
    color: #7a6050;
    text-align: center;
}
.mentions h2 {
    font-size: 28px;
    color: #4a3728;
    margin-top: 30px;
    margin-bottom: 20px;
}
.mentions p {
    margin-bottom: 16px;
}

/* FOOTER */

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;
    background-color: #e7c695;
    min-height: 100px;
    gap: 20px;
}

footer .logo {
    flex-shrink: 0;
}

footer .logo img {
    height: 80px;
    width: auto;
    display: block;
}

footer .links {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

footer .links p {
    font-size: 13px;
    color: #4a3728;
    margin: 0;
}

footer .links-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

footer .links-nav a {
    display: block;
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid #7a6050;
    background-color: #f9f3ea;
    font-size: 14px;
    font-weight: 600;
    color: #4a3728;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer .links-nav a:hover {
    background-color: #c9963a;
    color: #f9f3ea;
    border-color: #c9963a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 55, 40, 0.2);
}

footer .social {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
    float: none;
}

footer .social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #f9f3ea;
    border-radius: 50%;
    transition: all 0.3s ease;
}

footer .social img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

footer .social a:hover {
    background-color: #c9963a;
    transform: scale(1.1);
}