/* ==========================================================================
   DESIGN DES OUTILS - FORGETOOLS RESCUE
   ========================================================================== */

/* Conteneur Principal de l'Outil */
.tool-card-main, .dashboard-card {
    max-width: 800px;
    margin: 3rem auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.tool-card-main h2, .dashboard-card h2 {
    font-size: 1.8rem;
    color: #0d0d0f;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

/* Alignement des lignes du formulaire */
.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0d0d0f;
}

/* Boutons Homme / Femme Flexbox d'origine */
.gender-selector {
    display: flex;
    gap: 10px;
}

.gender-btn {
    flex: 1;
    padding: 12px;
    background: #1c1c21;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.gender-btn.active {
    border-color: #ff5a00;
    background: rgba(255, 90, 0, 0.1);
    color: #ff5a00;
}

/* Inputs, Selects et Placeholders */
input[type="number"], input[type="text"], select {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    color: #000000;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: #000000;
}

/* Gros Bouton d'Action Safran */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: #000000 !important;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: #222225 !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   RETOUR DES BLOCS DE RÉSULTATS PREMIUM
   ========================================================================== */
.results-section {
    display: none;
    margin-top: 3rem;
    text-align: center;
}

/* Styles spécifiques Masse Grasse */
#hipsGroup { display: none; }
.result-value { font-size: 5rem; font-weight: 800; color: #000000; margin-bottom: 5px; line-height: 1; }
.result-category { font-size: 1.2rem; color: #000000; font-weight: 600; padding: 8px 16px; border-radius: 20px; display: inline-block; background: rgba(0,0,0,0.05); margin-top: 15px; border: 1px solid rgba(0,0,0,0.1); }

.cat-maigre, .cat-athletique, .cat-forme, .cat-surpoids { 
    border-color: #000000 !important; 
    color: #000000 !important; 
    background: rgba(0, 0, 0, 0.05) !important; 
}

.calories-display {
    font-size: 3.5rem;
    font-weight: 800;
    color: #000000;
    margin: 1rem 0 2rem 0;
}

.calories-display span {
    font-size: 1.5rem;
    color: #1a1a1e;
    margin-left: 5px;
}

/* Grille des Macros (Prot, Glu, Lip) */
.macros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.macro-box {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.macro-box:hover {
    border-color: rgba(0, 0, 0, 0.3);
}

.macro-title {
    font-size: 0.9rem;
    color: #4a4a4f;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.macro-value {
    font-size: 2rem;
    font-weight: 700;
    color: #000000 !important;
}

/* Zone Partenaires en bas */
.partners-zone {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

/* Correctif d'affichage du sélecteur de genre */
.gender-selector, .gender-container {
    display: flex !important;
    gap: 8px !important;
}
.gender-btn, .gender-container button {
    background: #f3f3f5 !important;
    border: 1px solid rgba(13, 13, 15, 0.08) !important;
    color: #0d0d0f !important;
    padding: 10px 16px !important;
    border-radius: 6px !important;
    cursor: pointer;
    flex: 1;
    font-weight: 600;
}
.gender-btn.active, .gender-container button.active {
    border-color: #000000 !important;
    color: #ffffff !important;
    background: #000000 !important;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
}