/* PALETTE TERRE CUITE - BRODERIE WECHA */
:root {
    --brun-fonce: #3d3229;
    --terre-cuite: #a0522d;
    --terre-clair: #cd853f;
    --ivoire: #f5f0e8;
    --sable: #e6dcc8;
    --beige-cafe: #c4b5a0;
    --beige-focus: #d4c4b0;
    --brun-texte: #5d4e37;
    --cornsilk: #fff8dc;
}

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

body {
    background-color: var(--ivoire);
    color: var(--brun-texte);
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    /* padding-top: 90px;  Augmentez ici (était 80px) */
}

/* NAVIGATION */
.navbar {
    background-color: var(--brun-fonce);
    border-bottom: 4px solid var(--terre-cuite);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    color: var(--ivoire) !important;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-link {
    color: #deb887 !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s;
}

.nav-link:hover {
    color: white !important;
}

.btn-devis {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px !important;
    border-radius: 999px;
    background: linear-gradient(180deg, #b5643a 0%, #8f4a24 100%) !important;
    border: 1px solid #d7a781 !important;
    color: #fff !important;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 0 6px 14px rgba(61,50,41,0.25);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-devis:hover {
    background: linear-gradient(180deg, #c07045 0%, #9b4f27 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(61,50,41,0.30);
}

.btn-devis:focus-visible {
    outline: 3px solid rgba(160,82,45,0.35);
    outline-offset: 2px;
}


/* HERO */
.hero-section {
    background: linear-gradient(135deg, var(--sable) 0%, var(--ivoire) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    border-bottom: 3px solid var(--terre-cuite);
    position: relative;
    padding-top: 40px; /* Ajoutez cette ligne */
}

.badge-artisan {
    background-color: var(--terre-cuite);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero-title {
    color: var(--brun-fonce);
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 0px rgba(160, 82, 45, 0.2);
    margin-bottom: 20px;
}

.hero-subtitle {
    color: var(--terre-cuite);
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 20px;
}

/* BOUTONS */
.btn-primary-wecha {
    background-color: var(--terre-cuite) !important;
    color: white !important;
    border: none !important;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 4px 0 #8b4513;
    transition: all 0.2s;
    display: inline-block;
    text-decoration: none;
}

.btn-primary-wecha:hover {
    background-color: var(--terre-clair) !important;
    transform: translateY(2px);
    box-shadow: 0 2px 0 #8b4513;
    color: white;
}

.btn-outline-wecha {
    background-color: transparent !important;
    color: var(--terre-cuite) !important;
    border: 3px solid var(--terre-cuite) !important;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}

.btn-outline-wecha:hover {
    background-color: var(--terre-cuite) !important;
    color: white !important;
}

/* HEADER PAGE (Portfolio, Catalogue, etc.) - classe unifiée */
.header-page {
    background: linear-gradient(135deg, var(--brun-fonce) 0%, #6b4423 100%);
    color: white;
    padding: 80px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    background-size: 60px 60px;
    opacity: 0.3;
}

.header-page h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header-page p {
    color: #deb887;
    font-size: 1.2rem;
    position: relative;
}

@media (max-width: 768px) {
    .header-page h1 {
        font-size: 2rem;
    }
}

/* SECTIONS */
.section-ivoire {
    background-color: #faf8f3;
    padding: 80px 0;
}

.section-sable {
    background-color: var(--sable);
    padding: 80px 0;
}

.titre-section {
    color: var(--brun-fonce);
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.titre-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--terre-cuite);
    border-radius: 2px;
}

/* CARTES SERVICES */
.carte-service {
    background-color: var(--ivoire);
    border: 2px solid #d2b48c;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    transition: all 0.4s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.carte-service:hover {
    background-color: white;
    border-color: var(--terre-cuite);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(160, 82, 45, 0.15);
}

.icone-service {
    width: 80px;
    height: 80px;
    background-color: var(--terre-cuite);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.carte-service:hover .icone-service {
    background-color: var(--terre-clair);
    transform: scale(1.1);
}

/* STATS */
.stat-box {
    background-color: var(--cornsilk);
    border: 2px solid #deb887;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.stat-box:hover {
    border-color: var(--terre-cuite);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.stat-number {
    color: var(--terre-cuite);
    font-size: 3rem;
    font-weight: bold;
    display: block;
    line-height: 1;
}

.stat-label {
    color: var(--brun-texte);
    font-size: 1rem;
    margin-top: 5px;
}

/* SECTION DEVIS */
.zone-devis {
    background-color: #d2b48c;
    padding: 60px 0;
}

.carte-devis {
    background-color: var(--ivoire);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border: 3px solid var(--brun-fonce);
}

.infos-contact {
    background-color: var(--brun-fonce);
    color: #deb887;
    padding: 40px;
    height: 100%;
}

.infos-contact h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--terre-cuite);
    padding-bottom: 10px;
}

.info-ligne {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
}

.info-icone {
    width: 45px;
    height: 45px;
    background-color: var(--terre-cuite);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 1.2rem;
}

/* FORMULAIRES - BEIGE CAFÉ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    background-color: var(--beige-cafe) !important;
    border: 2px solid #a0866b !important;
    color: var(--brun-fonce) !important;
    padding: 15px !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    width: 100%;
    margin-bottom: 15px;
    font-family: inherit;
    transition: all 0.3s;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

input:focus,
textarea:focus,
select:focus {
    background-color: var(--beige-focus) !important;
    border-color: var(--terre-cuite) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(160, 82, 45, 0.2), inset 0 2px 4px rgba(0,0,0,0.05) !important;
}

::placeholder {
    color: #6b5b4f !important;
    opacity: 0.8;
}

label {
    color: var(--brun-fonce);
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
    font-size: 0.95rem;
}

.btn-envoyer {
    background-color: var(--terre-cuite);
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 0 #8b4513;
}

.btn-envoyer:hover {
    background-color: #8b4513;
    transform: translateY(2px);
    box-shadow: 0 2px 0 #8b4513;
}

/* FOOTER */
.footer-wecha {
    background-color: var(--brun-fonce);
    color: #deb887;
    padding: 60px 0 30px;
    border-top: 4px solid var(--terre-cuite);
}

.footer-wecha h4,
.footer-wecha h5 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-wecha a {
    color: #deb887;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-wecha a:hover {
    color: white;
}

.btn-social {
    width: 40px;
    height: 40px;
    background-color: var(--terre-cuite);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-social:hover {
    background-color: white;
    color: var(--terre-cuite);
    transform: translateY(-3px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .btn-outline-wecha { margin-top: 15px; margin-left: 0 !important; }
    .titre-section { font-size: 2rem; }
    .infos-contact { margin-bottom: 20px; }
}

/* Filtres */
.filtres {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 40px 0;
    flex-wrap: wrap;
}

.btn-filtre {
    padding: 10px 25px;
    background: white;
    border: 2px solid var(--terre-cuite);
    color: var(--brun-fonce);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.btn-filtre:hover,
.btn-filtre.active {
    background: var(--terre-cuite);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(193,124,83,0.3);
}

/* Grille produits */
.grille-produits {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0 60px;
}

/* Card produit */
.produit-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.6s ease-out forwards;
}

.produit-card:hover {
    transform: translateY(-5px);
    border-color: var(--terre-cuite);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.produit-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, #f0e6d3 0%, #e6d5b8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terre-cuite);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.produit-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--terre-cuite);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.produit-badge.nouveau {
    background: #28a745;
}

.produit-badge.promo {
    background: #dc3545;
}

.produit-contenu {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.produit-categorie {
    color: var(--terre-cuite);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.produit-titre {
    color: var(--brun-fonce);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.produit-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.produit-prix {
    font-size: 1.4rem;
    color: var(--terre-cuite);
    font-weight: bold;
    margin-bottom: 15px;
}

.produit-prix .old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
    margin-right: 10px;
}

.produit-footer {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.produit-footer .btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
}

.produit-footer .btn-primary {
    background: var(--terre-cuite);
    color: white;
}

.produit-footer .btn-primary:hover {
    background: #a06040;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(193,124,83,0.4);
}

.produit-footer .btn-outline {
    background: transparent;
    color: var(--brun-fonce);
    border: 2px solid var(--beige-cafe);
}

.produit-footer .btn-outline:hover {
    background: var(--beige-cafe);
}

/* Section infos */
.section-info {
    background: var(--cornsilk);
    padding: 60px 0;
    border-top: 3px solid var(--terre-cuite);
}

/* Catalogue iframe */
.catalogue-iframe {
    background: linear-gradient(180deg, #f7f1e7 0%, #f1e6d6 100%);
    padding: 40px 0 60px;
    border-bottom: 2px solid var(--beige-cafe);
}

.catalogue-iframe .iframe-wrapper {
    background: white;
    border: 2px solid var(--beige-cafe);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(61,50,41,0.15);
}

.catalogue-iframe iframe {
    display: block;
    width: 100%;
    height: 75vh;
    min-height: 560px;
    border: 0;
}

.catalogue-iframe .iframe-fallback {
    text-align: center;
    color: var(--brun-texte);
    margin-top: 18px;
    font-size: 0.95rem;
}

.catalogue-iframe .iframe-fallback a {
    color: var(--terre-cuite);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid rgba(160,82,45,0.4);
}

.catalogue-iframe .iframe-fallback a:hover {
    color: var(--brun-fonce);
    border-bottom-color: var(--brun-fonce);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.info-item i {
    font-size: 2.5rem;
    color: var(--terre-cuite);
    margin-bottom: 15px;
}

.info-item h3 {
    color: var(--brun-fonce);
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-page h1 {
        font-size: 2rem;
    }
    
    .grille-produits {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filtres {
        padding: 20px 0;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.produit-card:nth-child(1) { animation-delay: 0.1s; }
.produit-card:nth-child(2) { animation-delay: 0.2s; }
.produit-card:nth-child(3) { animation-delay: 0.3s; }
.produit-card:nth-child(4) { animation-delay: 0.4s; }
.produit-card:nth-child(5) { animation-delay: 0.5s; }
.produit-card:nth-child(6) { animation-delay: 0.6s; }





/* ========== AJUSTEMENTS STRUCTURE (includes) ========== */

.navbar .nav-link.active {
    color: white !important;
    border-bottom: 2px solid var(--terre-cuite);
}

.navbar-toggler {
    border: none !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(160, 82, 45, 0.35) !important;
}

/* Icône burger en clair sur fond sombre */
.navbar-toggler-icon {
    filter: invert(1) grayscale(1);
}

.nav-lang {
    border: 1px solid rgba(222, 184, 135, 0.3);
    border-radius: 20px;
    padding: 5px 15px !important;
}

.dropdown-lang {
    background-color: var(--brun-fonce);
    border: 1px solid var(--terre-cuite);
}

.dropdown-lang .dropdown-item {
    color: #deb887;
}

.dropdown-lang .dropdown-item:hover {
    background-color: rgba(160, 82, 45, 0.25);
    color: white;
}

.nav-account {
    color: var(--terre-cuite) !important;
    font-weight: 600;
    background-color: rgba(245, 240, 232, 0.08);
    padding: 8px 15px !important;
    border-radius: 20px;
}

.navbar-spacer {
    margin-top: 90px;
}

/* Alias : certains templates utilisent social-btn */
.social-btn {
    width: 40px;
    height: 40px;
    background-color: var(--terre-cuite);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    text-decoration: none;
    transition: all 0.3s;
}

.social-btn:hover {
    background-color: white;
    color: var(--terre-cuite);
    transform: translateY(-3px);
}

.footer-chevron {
    font-size: 0.8rem;
}

.footer-legal {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-legal-links,
.footer-legal-links a {
    color: #a8a29e;
    text-decoration: none;
}

.footer-legal-links a:hover {
    color: white;
}

.footer-copy {
    color: #78716c;
    font-size: 0.8rem;
}

/* Cookies banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--brun-fonce);
    color: white;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
    border-top: 3px solid var(--terre-cuite);
}

.cookie-icon {
    color: var(--cornsilk);
    font-size: 1.5rem;
}

.cookie-title {
    color: white;
    font-size: 1.1rem;
}

.cookie-text {
    color: #deb887;
}

.cookie-text a {
    color: #deb887;
    text-decoration: underline;
}

.cookie-btn-accept {
    background-color: var(--terre-cuite);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
}

.cookie-btn-refuse {
    background-color: transparent;
    border: 2px solid #deb887;
    color: #deb887;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
}

/* ========== AJUSTEMENTS STRUCTURE (includes) ========== */

.navbar .nav-link.active {
    color: white !important;
    border-bottom: 2px solid var(--terre-cuite);
}

.navbar-toggler {
    border: none !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(160, 82, 45, 0.25) !important;
}

.navbar-toggler-icon {
    filter: invert(1) brightness(2);
}

.nav-lang {
    border: 1px solid rgba(222, 184, 135, 0.35);
    border-radius: 20px;
    padding: 5px 15px !important;
}

.dropdown-lang {
    background-color: var(--brun-fonce);
    border: 1px solid var(--terre-cuite);
}

.dropdown-lang .dropdown-item {
    color: #deb887;
}

.dropdown-lang .dropdown-item:hover,
.dropdown-lang .dropdown-item:focus {
    background-color: rgba(160, 82, 45, 0.25);
    color: white;
}

.nav-account {
    color: var(--terre-cuite) !important;
    font-weight: 600;
    background-color: rgba(245, 240, 232, 0.10);
    padding: 8px 15px !important;
    border-radius: 20px;
}

.navbar-spacer {
    margin-top: 90px;
}

/* Footer: compat + petites classes */
.footer-chevron { font-size: 0.8rem; }

.footer-legal {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-legal-links,
.footer-legal-links a {
    color: #a8a29e;
    text-decoration: none;
}

.footer-legal-links a:hover {
    color: white;
}

.footer-copy {
    color: #78716c;
    font-size: 0.8rem;
}

/* Alias: certains templates utilisaient social-btn */
.social-btn {
    width: 40px;
    height: 40px;
    background-color: var(--terre-cuite);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    text-decoration: none;
    transition: all 0.3s;
}

.social-btn:hover {
    background-color: white;
    color: var(--terre-cuite);
    transform: translateY(-3px);
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--brun-fonce);
    color: white;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
    border-top: 3px solid var(--terre-cuite);
}

.cookie-icon {
    color: var(--cornsilk);
    font-size: 1.5rem;
}

.cookie-title {
    color: white;
    font-size: 1.1rem;
}

.cookie-text {
    color: #deb887;
}

.cookie-text a {
    color: #deb887;
    text-decoration: underline;
}

.cookie-btn-accept {
    background-color: var(--terre-cuite) !important;
    color: white !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 10px 25px !important;
    font-weight: 600 !important;
}

.cookie-btn-refuse {
    background-color: transparent !important;
    border: 2px solid #deb887 !important;
    color: #deb887 !important;
    border-radius: 25px !important;
    padding: 10px 25px !important;
    font-weight: 600 !important;
}
