body {
    font-family: Arial, sans-serif;
    background-color: #f0f8f0;
    margin: 0;
    color: #333;
}

header {
    background-color: #4CAF50;
    color: white;
    padding: 20px;
    text-align: center;
}

nav {
    display: flex;
    justify-content: center;
    background-color: #8C7B26;
}

nav a {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    display: inline-block;
}

nav a:hover {
    background-color: #8C6954;
}

.container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 10px;
}

.boutures {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bouture {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bouture:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.bouture img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: transform 0.2s;
}

.bouture img:hover {
    transform: scale(1.05);
}

.bouture h3 {
    margin: 10px 0 5px 0;
}

.bouture p {
    margin: 5px 0;
}

.buy-btn {
    display: inline-block;
    margin-top: 10px;
    background-color: #4CAF50;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s;
}

.buy-btn:hover {
    background-color: #45a049;
}

@media(max-width: 800px){
    .bouture { width: calc(50% - 20px); }
}

@media(max-width: 500px){
    .bouture { width: 100%; }
}

footer {
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
}

.site-header h1 {
    margin: 0 0 10px;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.main-nav a:hover {
    text-decoration: underline;
}
.site-footer {
    margin-top: 40px;
    padding: 20px;
    background: #8C6954; /* couleur vert fond du footer etait 2e7d32 #8C6954*/
    color: white;
    text-align: center;
    font-size: 0.9em;
}

.site-footer p {
    margin: 0;
}
/* ===== ADMIN ===== */
.admin-header {
    background: #2c3e50;
    color: white;
    padding: 15px;
}

.admin-header nav a {
    color: white;
    margin-right: 15px;
    text-decoration: none;
}

.admin-header nav a:hover {
    text-decoration: underline;
}

.admin-footer {
    margin-top: 40px;
    padding: 10px;
    text-align: center;
    background: #eee;
}

.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
}
.desc-cell {
    text-align: left;
}

.desc-preview {
    font-size: 0.9em;
    color: #333;
    margin-bottom: 5px;
}

.edit-desc-btn {
    font-size: 0.8em;
    background: #eee;
    border: 1px solid #ccc;
    padding: 3px 6px;
    cursor: pointer;
    border-radius: 4px;
}

.col-name {

    width: 220px;
}

.col-name input {
    min-width: 200px;
    font-weight: 600;
}
/* Prix : plus lisible */
.col-price {
    width: 110px;
}

.col-price input {
    min-width: 90px;
    text-align: right;
    font-weight: 600;
}

/* Image : un peu plus étroite */
.col-image {
    width: 140px;
    padding: 4px;
}

.col-image input[type="file"] {
    width: 100%;
    font-size: 12px;
}

img.thumb {
    max-width: 70px;
    max-height: 50px;
}

@media (max-width: 800px) {
    .boutures {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .boutures {
        grid-template-columns: 1fr;
    }
}
/* ===== HERO PAGE ACCUEIL ===== */

.hero-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.hero-link:hover h2,
.hero-link:hover p {
    text-decoration: underline;
}

.hero-banner {
    height: 70vh;
    min-height: 400px;

    background-image: url('../images/image8.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

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

.hero-text {
    background: rgba(0, 0, 0, 0.45);
    color: white;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
}

.hero-text h1 {
    margin: 0 0 10px;
    font-size: 2.5rem;
}

.hero-text p {
    margin: 0;
    font-size: 1.2rem;
}
h2 {
    background-color: #4CAF50;
    color: white;
    padding: 20px;
    text-align: center;
}
.hero-click:hover h2,
.hero-click:hover p {
    text-decoration: underline;
}

/* Liens et bouton Produits */
.main-nav a,
.main-nav .dropbtn {
    font-size: 16px;
    font-family: inherit;
    font-weight: bold;
    padding: 16px 20px;
    line-height: 20px;
    color: white;              /* TEXTE BLANC */
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

/* Dropdown container */
.dropdown {
    position: relative;
}

/* Dropdown caché par défaut */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 1000;
}

/* Liens dans le dropdown */
.dropdown-content a {
    color: #333;
    padding: 14px 20px;
    display: block;
    text-decoration: none;
}

/* Classe ACTIVE (au clic) */
.dropdown.active .dropdown-content {
    display: block;
}
.dropdown.open .dropdown-content {
    display: block;
}
/* Triangle ▼ */
.dropbtn::after {
    content: " ▼";
    font-size: 0.7em;
    margin-left: 6px;
}

/* Quand le menu est ouvert (clic hero) */
.dropdown.open .dropbtn::after {
    content: " ▲";
}
#hero-title {
    cursor: pointer; /* la main n’apparaît que sur le H1 */
}


/* =========================
   STYLE ARTISAN #3 - GLOBAL
   ========================= */
body {
    font-family: 'Helvetica', sans-serif;
    background-color: #f0f8f0;   /* vert très clair / pastel */
    color: #333;                 /* texte gris foncé */
    margin: 0;
    padding: 0;
}

a {
    color: #4CAF50;              /* vert feuille */
    text-decoration: none;
}

a:hover {
    color: white; 
}

/* =========================
   HEADER
   ========================= */
.site-header {
    background-color: #2f6b31;   /* vert foncéetait 2f6b31 changer pour #8C7B26 */
    color: #fcfbf9;              /* texte blanc cassé */
    padding: 15px 20px;
}

.site-header h1 {
    color: #fcfbf9;
    margin: 0;
}

/* MENU NAV */
.main-nav a,
.main-nav .dropbtn {
    color: #fcfbf9 !important;
    font-weight: bold;
    padding: 14px 20px;
}

/* DROPDOWN */
.dropdown-content a {
    color: #4a3728 !important;   /* brun foncé lisible */
    background-color: #fcfbf9;   /* fond beige clair */
}

.dropdown-content a:hover,
.dropdown-content a:focus,
.dropdown-content a:active {
    color: #4a3728 !important;
    background-color: #f7f2eb;   /* beige léger pour hover */
}

.dropdown-content {
    border-radius: 8px;
    border: 1px solid #e3d7c8;
}

/* =========================
   HERO
   ========================= */
.hero-text {
    background: rgba(0, 0, 0, 0.45);   /* voile sombre */
    color: white;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
}

.hero-text h1,
.hero-text p,
.hero-text a {
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* =========================
   H2 pages produits (Boutures, etc.)
   ========================= */
.container > h2 {
    font-size: 3rem;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin: 50px 0 30px;
    color: #4a3728;              /* brun artisan */
    position: sticky;            /* sticky */
    top: 120;
    background-color: #f7f2eb;   /* fond pour rester lisible #f7f2eb */
    padding: 15px 20px;
    z-index: 900;
    border-bottom: 2px solid #c86b3c; /* décoratif */
}

/* Responsive H2 */
@media (max-width: 768px) {
    .container > h2 {
        font-size: 1.9rem;
        letter-spacing: 1px;
    }
}

/* =========================
   Boutures list
   ========================= */
.boutures {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.bouture {
    background-color: #fcfbf9;
    border: 1px solid #e3d7c8;
    border-radius: 12px;
    padding: 15px;
    width: calc(33.333% - 20px);
}

.bouture img {
    max-width: 100%;
    border-radius: 8px;
}

/* Responsive Boutures */
@media (max-width: 1024px) {
    .bouture {
        width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .bouture {
        width: 100%;
    }
}

/* =========================
   Buttons
   ========================= */
.buy-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.buy-btn:hover {
    background-color: #8C7B26;
}

/* =========================
   Footerder

   ========================= */
footer {
    background-color: #f7f2eb; /* couleur vert fond du footer etait f7f2eb fcfbf9*/
    color: white;
    text-align: center;
    padding: 20px;
}
/* === STYLE ARTISAN / AUTHENTIQUE === */

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f7f2eb;  /* couleur du fond du footer etait #f7f2eb 8C7B26*/
    color: #4a3728;
}

/* Header */
.site-header {
    background-color: #8C6954; /* couleur brun fond du header 4a3728*/
    color: #fcfbf9;
    padding: 24px;
}

/* Navigation */
.main-nav a,
.main-nav .dropbtn {
    color: #fcfbf9;
    font-weight: 600;
}

/* Titres */
h1, h2, h3 {
    color: #4a3728;
    letter-spacing: 0.5px;
}

/* Accent couleur */
a {
    color: #c86b3c;
}

/* Boutons */
button,
input[type="submit"] {
    background-color: #c86b3c;
    color: #fcfbf9;
    border-radius: 6px;
    padding: 10px 20px;
    border: none;
    font-weight: 600;
}

button:active,
input[type="submit"]:active {
    background-color: #a85730;
}

/* Sections */
.section,
.card {
    background-color: #fcfbf9;
    border-left: 4px solid #c86b3c;
    padding: 22px;
    margin-bottom: 24px;
}

/* Images */
img {
    border-radius: 6px;

@media (max-width: 768px) {
    .container.boutures-page > h2 {
        font-size: 1.9rem;
        letter-spacing: 1px;
    }
}

}
/* H2 sticky pour pages produits */
.container.boutures-page > h2 {
    font-size: 3rem;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin: 50px 0 30px;
    color: #4a3728;
    position: sticky;
    top: 120;
    background-color: #f7f2eb;
    padding: 15px 20px;
    z-index: 900;
    border-bottom: 2px solid #c86b3c;
}

.boutures-page h2{
    position: sticky;
    top: 120px;
    background:white;
    z-index: 900;
}

/* Boutures horizontales */
.boutures-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bouture-horizontal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fcfbf9;
    border: 1px solid #e3d7c8;
    border-radius: 12px;
    padding: 15px 20px;
}

.bouture-info {
    flex: 2;
}

.bouture-img {
    flex: 1;
    text-align: center;
}

.bouture-img img {
    max-width: 80px;
    border-radius: 8px;
}

.bouture-actions {
    flex: 1;
    text-align: right;
}

/* Alternance de couleurs pour lisibilité */
.bouture-horizontal:nth-child(odd) {
    background-color: #f3f6f2;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .bouture-horizontal {
        flex-direction: column;
        align-items: flex-start;
    }

    .bouture-img,
    .bouture-actions {
        text-align: left;
        margin-top: 10px;
    }
}
/* Alignement des champs du formulaire */
.contact-form .form-group {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    gap: 12px;
}

.contact-form .form-group label {
    margin-bottom: 0;
    text-align: right;
    padding-right: 10px;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 70%;
}

/* Pour le textarea (Message) */
.contact-form .form-group textarea {
    align-self: start;
}
.success-message {
    background: #e6f4ea;
    color: #1e6b3a;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-item {
    width: 250px;
    height: 180px; /* hauteur fixe */
    overflow: hidden;
    border-radius: 6px;
    background: #f2f2f2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* MAGIC ✨ */
    display: block;
}
.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 10px;
}

.gallery-item {
    width: 250px;
    height: 180px;
}

/* 📱 CELLULAIRE */
@media (max-width: 768px) {
    .gallery-item {
        width: 45%;   /* 2 images par rangée */
        height: 160px;
    }
}

/* 📱 PETITS TÉLÉPHONES */
@media (max-width: 480px) {
    .gallery-item {
        width: 90%;   /* 1 image centrée */
        height: 200px;
    }
}
.lang-switch-top {
    position: fixed;          /* toujours visible */
    top: 10px;                /* distance du haut */
    right: 10px;              /* distance du côté droit */
    z-index: 999;             /* devant tout */

    font-weight: bold;
    font-family: sans-serif;
    font-size: 14px;

    background-color: transparent; /* fond transparent */
    color: white;                  /* texte blanc */
    
    padding: 0;
    margin: 0;
}

.lang-switch-top a {
    color: white;                  /* texte blanc */
    text-decoration: none;
    padding: 0;
    margin: 0;
}

.lang-switch-top a.active {
    text-decoration: underline;    /* souligne la langue active */
}

.lang-switch-top a:hover {
    color: #ddd;                   /* un peu plus clair au survol */
}
/* ================================
   Language switch (desktop + mobile)
   ================================ */
.lang-switch {
    position: fixed;
    top: 12px;
    right: 16px;
    z-index: 1000;

    font-size: 14px;
    font-weight: 600;
    background: transparent;
    color: white;
}

.lang-switch a {
    color: white;
    text-decoration: none;
}

.lang-switch a:hover {
    text-decoration: underline;
}

.lang-switch .active {
    font-weight: 800;
}

.lang-switch span {
    margin: 0 4px;
    color: white;
}

mable {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.zoomable:hover {
    transform: scale(1.05);
}

/* Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

/* Image agrandie */
.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
}

/* Bouton fermer */
.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
.section-title {
    background: inherit;   /* même fond que le header */
    color: #8C6954;           /* texte blanc */
    padding: 10px 15px;     /* espace autour du texte */
    border-radius: 5px;     /* optionnel, pour arrondir légèrement */
    margin: 30px 0 15px 0;  /* espacement vertical */
}
.video-item video {
    max-width: 350px;
    max-height: 500px;
    border-radius: 8px;
    object-fit: contain;
}
.video-item {
    display: flex;
    justify-content: center;
}
.site-header {
    background: #8C6954; /* etait 2e7d32 changer pour #8C7B26 */
    color: white;
    padding: 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.filters{
display:flex;
gap:10px;
flex-wrap:wrap;
margin-bottom:20px;
}

.filters input,
.filters select{
padding:6px;
}
