/*
Theme Name:   Synexta : Hello theme child
Theme URI:    https://elementor.com/
Description:  Thème enfant Hello par Synexta
Author:       Synexta
Author URI:   https://synexta.fr
Template:     hello-elementor
Version:      1.0.0
Text Domain:  hello-elementor-child
*/

/* Vous pouvez ajouter votre CSS personnalisé ci-dessous */

/* ==========================================================================
   1. DÉFINITION (CORRECTION) VARIABLES ELEMENTOR
   ========================================================================== */
:root {
    /* On force les variables natives de Hello Theme à utiliser NOTRE charte.
       Cela assure que si Elementor "oublie" de styliser un truc, il sera quand même dans tes couleurs. */
    
    --hello-theme-text-color: #222222;  /* Texte courant (Noir Synexta) */
    --hello-theme-link-color: #0083c8;  /* Liens (Bleu Synexta) */
    --hello-theme-link-color-hover: #00afef; /* Survol (Bleu Clair Synexta) */
    --hello-theme-header-menu-color: #222222; /* Menu Header */
    --hello-theme-footer-menu-color: #0083c8; /* Menu Footer */

/* ==========================================================================
   2. DÉFINITION VARIABLES SYNEXTA
   ========================================================================== */
    
    /* Couleurs Principales */
    --syn-maincolor: #0083c8;       /* Bleu Principal (Base) */
    --syn-secondarycolor: #00afef;  /* Bleu Secondaire (Hover/Accent) */
    --syn-textcolor: #222222;       /* Noir/Gris Foncé (Texte) */
	--syn-lightbackground: #0083c81c;       /* Noir/Gris Foncé (Texte) */
    
    /* Couleurs Utilitaires (Pour nettoyer le design) */
    --syn-white: #ffffff;
    --syn-light-bg: #f4f9fc;        /* Fond très clair pour les inputs (subtil rappel bleu) */
    --syn-border: #e0e0e0;          /* Gris neutre pour les bordures inactives */
    
    /* Configuration des Formes */
    --syn-radius: 4px;              /* Arrondi léger et pro */
}

/* ==========================================================================
   3. AUTRES CORRECTIONS ELEMENTOR (NETTOYAGE & RESET)
   ========================================================================== */

*:focus {
    outline: none !important; /* Supprime le contour bleu/rose natif du navigateur */
}

input, button, select, textarea, .elementor-button {
    box-shadow: none !important; /* Enlève les ombres internes parfois rouges/grises */
}

[type=button], [type=submit], button {
	padding: .5rem .5rem;
}

body {
    color: var(--hello-theme-text-color);
    background-color: var(--syn-white);
    line-height: 1.6;
}

a { color: var(--hello-theme-link-color); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--hello-theme-link-color-hover); }

/* ==========================================================================
   FIX : BUG AFFICHAGE LIGNE VERTE / BORDURE FANTOME (Mini Panier)
   ========================================================================== */

/* 1. On cible les images du widget panier et du mini-panier Woo */
.widget_shopping_cart img,
.woocommerce-mini-cart img,
.woocommerce-mini-cart-item img {
    /* Supprime toute bordure ou contour potentiel */
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    
    /* Force l'image à se comporter comme un bloc (évite les bugs d'alignement texte) */
    display: block !important;
    
    /* Empêche le navigateur de peindre un fond si l'image charge mal ou a des pixels transparents */
    background-color: transparent !important;
    
    /* Corrige le rendu sur les écrans haute densité */
    transform: translateZ(0); 
    -webkit-backface-visibility: hidden;
}

/* 2. On s'assure que le LIEN autour de l'image n'a pas de décoration qui dépasse */
.widget_shopping_cart .cart_list li a,
.woocommerce-mini-cart-item a {
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important; 
}


/* ==========================================================================
   4. DÉBUT DU CODE CSS SYNEXTA
   ========================================================================== */

/* --- A. TYPOGRAPHIE --- */

h1, h2, h3, h4, h5, h6 {
    font-family: sans-serif; /* À remplacer par ta font si tu en as une spécifique */
    color: var(--syn-maincolor);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

h1 { font-size: 2.2rem; line-height: 1.2; }
h2 { font-size: 1.8rem; }

/* --- B. BOUTONS UNIFIÉS (Elementor, WP, Woo) --- */

/* Ce bloc cible TOUS les boutons pour virer les bordures moches et mettre le bleu Synexta */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.elementor-button,
.button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {
    background-color: var(--syn-maincolor) !important;
    color: var(--syn-white) !important;
    border: 1px solid var(--syn-maincolor) !important; /* Bordure de la même couleur pour éviter l'effet "double bord" */
    border-radius: var(--syn-radius);
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-align: center;
}

/* État Survol (Hover) */
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.elementor-button:hover,
.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover {
    background-color: var(--syn-secondarycolor) !important;
    border-color: var(--syn-secondarycolor) !important;
    color: var(--syn-white) !important;
    transform: translateY(-2px); /* Petit effet de levier */
}

.woocommerce a.remove:hover {
    color: #fff !important;
    background: var(--wc-red);
    padding: 1px 0 0 1px;
}

.woocommerce a.remove {
    padding: 1px 0 0 1px;
}

/* --- C. FORMULAIRES (Inputs propres) --- */

/* Champs de texte : on vire les bordures grises tristes ou rouges */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
    background-color: var(--syn-light-bg);
    border: 1px solid var(--syn-border) !important;
    border-radius: var(--syn-radius);
    padding: 12px;
    color: var(--syn-textcolor);
    width: 100%;
}

/* Quand on clique dans un champ (Focus) : Bordure BLEUE SYNEXTA (et pas rose) */
input:focus, textarea:focus, select:focus {
    background-color: var(--syn-white);
    border-color: var(--syn-maincolor) !important;
    box-shadow: 0 0 5px rgba(0, 131, 200, 0.2) !important; /* Légère lueur bleue */
}

/* --- D. WOOCOMMERCE ÉPURÉ --- */

/* Prix */
.woocommerce div.product p.price, 
.woocommerce ul.products li.product .price {
    color: var(--syn-textcolor) !important; /* Prix en noir */
    font-weight: bold;
}

.woocommerce div.product p.price ins, 
.woocommerce ul.products li.product .price ins {
    color: var(--syn-maincolor) !important; /* Promo en bleu */
    text-decoration: none;
}

/* Badges Promo carrés */
.woocommerce span.onsale {
    background-color: var(--syn-secondarycolor) !important;
    border-radius: var(--syn-radius);
    min-height: auto;
    line-height: normal;
    padding: 5px 10px;
}

/* Messages d'info/erreur Woo */
.woocommerce-message, .woocommerce-info {
    border-top-color: var(--syn-maincolor) !important;
}
.woocommerce-message::before, .woocommerce-info::before {
    color: var(--syn-maincolor) !important;
}