/*
Theme Name:   Perles et Prières
Theme URI:    https://perlesetprieres.fr
Description:  Thème enfant de Kadence pour Perles et Prières — chapelets, dizainiers et bijoux de prière faits main. Palette crème et or reprise du logo.
Author:       Atelier Perles et Prières
Template:     kadence
Version:      1.0.0
Text Domain:  perles-et-prieres
*/

/* ============================================================
   Palette — reprise du logo : crème, or, brun profond.
   Les variables sont posées dans functions.php (perles-palette) pour
   être disponibles aussi dans les blocs WooCommerce.
   ============================================================ */

body,
.site {
    background-color: #FAF4EA;
    color: #4A3728;
}

/* Titres : sérif, comme le logo. Kadence charge sa propre police de titres ;
   on garde la sienne et on se contente de la couleur et de l'espacement. */
h1, h2, h3, h4,
.entry-title,
.woocommerce-loop-product__title,
.product_title {
    color: #4A3728;
    letter-spacing: 0.01em;
}

/* Filets dorés, discrets, comme le cercle du logo */
hr,
.entry-content hr,
.woocommerce-tabs ul.tabs {
    border-color: #E3C87B;
}

/* Fiches produit : fond crème très clair, bord doré léger */
.woocommerce ul.products li.product,
.woocommerce div.product .woocommerce-tabs .panel {
    background-color: #FFFCF7;
    border: 1px solid rgba(201, 162, 39, 0.28);
    border-radius: 10px;
}

.woocommerce ul.products li.product {
    padding: 10px 10px 16px;
    box-shadow: 0 1px 3px rgba(74, 55, 40, 0.06);
}

.woocommerce ul.products li.product img {
    border-radius: 8px;
}

/* Prix et promotions */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price {
    color: #4A3728;
    font-weight: 600;
}

.woocommerce span.onsale {
    background-color: #C9A227;
    color: #FFFFFF;
}

/* Boutons : brun profond, doré au survol */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wp-block-button__link {
    background-color: #4A3728;
    color: #FFFFFF;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.wp-block-button__link:hover {
    background-color: #C9A227;
    color: #FFFFFF;
}

/* Champs de formulaire : le texte saisi doit rester lisible sur fond clair.
   Même correctif que sur l'autre boutique, où le navigateur repeignait les
   champs auto-remplis en bleu pâle avec un texte presque invisible. */
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], input[type="date"],
textarea, select,
.woocommerce form .form-row input.input-text {
    background-color: #FFFFFF;
    color: #2B2724;
    border: 1px solid rgba(201, 162, 39, 0.45);
    border-radius: 6px;
}

input:focus, textarea:focus, select:focus {
    border-color: #C9A227;
    outline: none;
    box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.2);
}

input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
    -webkit-text-fill-color: #2B2724;
    -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset;
}

::placeholder { color: #9A8F7F; opacity: 1; }

/* Pied de page sobre, dans le ton du logo */
.site-footer {
    background-color: #F2E8D7;
    color: #4A3728;
}

.site-footer a { color: #4A3728; }
.site-footer a:hover { color: #C9A227; }
