/* =====================================================================
   Balance ton abeille — Thème général du site
   ---------------------------------------------------------------------
   Charte commune à TOUS les templates : tokens, fond de page, typographie,
   champs de formulaire, boutons, tableaux, fieldsets, cartes.
   À charger APRÈS foundation / cake.css et AVANT les feuilles spécifiques
   de page (valeurs_index.css, moncompte.css…), qui gardent ainsi la priorité.

   Principes :
   - n'altère AUCUNE règle structurelle de Foundation (grid-x, cell, float,
     display, position) ni les éléments pilotés en JS ;
   - ne fait que l'habillage : couleurs, bordures, rayons, ombres, focus, typo.
   ===================================================================== */

:root {
    --bta-honey:        #e8a317;   /* accent principal : miel */
    --bta-honey-deep:   #c77c11;   /* survol / profondeur    */
    --bta-honey-soft:   #fcefd3;   /* fond ambre très clair  */
    --bta-comb:         #fbf6ec;   /* teinte « cire » panneau */
    --bta-ink:          #22303c;   /* titres, texte fort     */
    --bta-slate:        #5b6b78;   /* texte secondaire       */
    --bta-slate-faint:  #8a97a1;   /* labels, légendes       */
    --bta-line:         #e7ecef;   /* filets, bordures       */
    --bta-surface:      #ffffff;   /* cartes                 */
    --bta-bg:           #eef2f4;   /* fond de page froid     */
    --bta-hive:         #6e9c0f;   /* vert ruche (nature)    */
    --bta-danger:       #b3261e;   /* actions destructrices  */

    --bta-radius:       14px;
    --bta-radius-sm:    9px;
    --bta-shadow-sm:    0 1px 2px rgba(34, 48, 60, .06),
                        0 1px 3px rgba(34, 48, 60, .08);
    --bta-shadow-md:    0 10px 24px -12px rgba(34, 48, 60, .28),
                        0 4px 10px -6px rgba(34, 48, 60, .14);
    --bta-ease:         cubic-bezier(.2, .7, .3, 1);
}

/* --- Ambiance de page : trame froide + halo miel discret -------------- */
body {
    background: var(--bta-bg);
    color: var(--bta-ink);
}

.main .menu_haut {
    background-image:
        radial-gradient(1100px 420px at 88% -8%, rgba(232, 163, 23, .07), transparent 60%),
        radial-gradient(900px 380px at -6% 4%,  rgba(110, 156, 15, .05), transparent 55%);
}

/* --- Typographie des titres ------------------------------------------ */
h1, h2, h3, h4, legend {
    font-family: "Raleway", "Helvetica Neue", Arial, sans-serif;
    color: var(--bta-ink);
}

/* =====================================================================
   Champs de formulaire — nets, cohérents, focus miel
   ===================================================================== */
label {
    color: var(--bta-slate);
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
select,
textarea {
    border: 1px solid var(--bta-line);
    border-radius: var(--bta-radius-sm);
    box-shadow: none;
    background-color: var(--bta-surface);
    color: var(--bta-ink);
    transition: border-color .15s var(--bta-ease), box-shadow .15s var(--bta-ease);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--bta-honey);
    box-shadow: 0 0 0 3px rgba(232, 163, 23, .18);
    background-color: var(--bta-surface);
}

::placeholder { color: var(--bta-slate-faint); }

/* =====================================================================
   Boutons
   ===================================================================== */
.button {
    border-radius: var(--bta-radius-sm);
    font-weight: 700;
    letter-spacing: .01em;
    box-shadow: var(--bta-shadow-sm);
    transition: transform .12s var(--bta-ease),
                box-shadow .15s var(--bta-ease),
                background-color .15s var(--bta-ease);
}
.button:hover,
.button:focus { transform: translateY(-1px); }
.button:active { transform: translateY(0); }

.button.success {
    background: linear-gradient(180deg, var(--bta-honey), var(--bta-honey-deep));
    border: 0;
    color: #fff;
}
.button.success:hover,
.button.success:focus {
    background: linear-gradient(180deg, var(--bta-honey-deep), var(--bta-honey-deep));
    color: #fff;
}

.button.alert {
    background: linear-gradient(180deg, #d3382f, var(--bta-danger));
    border: 0;
}

/* =====================================================================
   Fieldset / legend
   ===================================================================== */
fieldset {
    border: 1px solid var(--bta-line);
    border-radius: var(--bta-radius);
    background: var(--bta-surface);
    padding: 1.1rem 1.35rem 1.35rem;
}
legend {
    padding: 0 .5rem;
    font-weight: 700;
}
legend h3 { margin: 0; }

/* =====================================================================
   Tableaux (pages index)
   ===================================================================== */
table {
    border: 1px solid var(--bta-line);
    border-radius: var(--bta-radius);
    overflow: hidden;
    box-shadow: var(--bta-shadow-sm);
    background: var(--bta-surface);
}
table thead {
    background: var(--bta-comb);
    color: var(--bta-ink);
}
table thead th {
    font-family: "Raleway", "Helvetica Neue", Arial, sans-serif;
    font-size: .74rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--bta-slate);
}
table tbody tr { transition: background-color .12s var(--bta-ease); }
table tbody tr:hover { background: var(--bta-honey-soft); }

/* =====================================================================
   Cartes utilitaires réutilisables
   ===================================================================== */
.card {
    background: var(--bta-surface);
    border: 1px solid var(--bta-line);
    border-radius: var(--bta-radius);
    box-shadow: var(--bta-shadow-sm);
    padding: 1.25rem 1.4rem;
}

/* Liens des messages flash un peu plus doux (habillage seulement) */
.message { border-radius: var(--bta-radius-sm); }
