/* 📊 Fichier : annexes.css — règles spécifiques annexes */

/* Messages spécifiques */
.warning, .success {
    font-weight: bold;
    margin-top: 5px;
    padding: 8px;
    border-radius: 4px;
}
.warning {
    color: var(--color-warning);
    background-color: var(--color-warning-bg);
    border-left: 5px solid var(--color-warning);
}
.success {
    color: var(--color-success);
    background-color: #e9f9ee;
    border-left: 5px solid var(--color-success);
}
.warning::before { content: "⚠️ "; margin-right: 5px; }
.success::before { content: "✅ "; margin-right: 5px; }

.flash-message {
    padding: 10px;
    margin-bottom: 15px;
    border-left: 5px solid #e67e22;
    background: #fff5e6;
    color: #8a4b1f;
    border-radius: 6px;
}

/* Légendes et sous-titres */
.legend {
    font-size: 14px;
    color: #6b7785;
}
.hint {
    font-size: 0.85rem;
    color: #666;
    display: block;
    margin-top: 4px;
}
.subtitle { 
    color: #666; 
    font-size: 0.95rem; 
}

/* Liens annexes */
a.back, a[href="dashboard.php"] { 
    color: #3b82f6; 
    text-decoration: none; 
}
a.back:hover { text-decoration: underline; }

/* Suivi patient et date création */
.suiviPatient, .dateCreation {
    margin-top: 10px;
    font-size: 1rem;
    background-color: #f9f9f9;
    padding: 8px;
    border-left: 4px solid #ccc;
}
.suiviPatient strong, .dateCreation strong {
    color: #555;
}

/* Layout spécifique à la page Mon Compte */
.compte-two-cols {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.compte-col {
    flex: 1;
    min-width: 350px;
    text-align: left;
}

/* Cartes pastel spécifiques */
.compte-card {
    border: 1px solid rgba(0,0,0,0.1);
    border-left-width: 6px;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;
}

.compte-card-green {
    border-left-color: #7ac48f;
    background: #f3fff6;
}

.compte-card-blue {
    border-left-color: #7ab6e0;
    background: #f4faff;
}

/* Formulaire spécifique */
.compte-form {
    text-align: left;
}

.compte-password-wrapper {
    position: relative;
}

.compte-toggle-eye {
    position: absolute;
    right: 10px;
    top: 8px;
    cursor: pointer;
}
.compte-page-subtitle {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--color-primary);
    white-space: nowrap;
}

.compte-password-check {
    font-size: 0.9rem;
    margin-top: 6px;
    color: #666;
}

.compte-password-check.valid {
    color: #27ae60;
    font-weight: bold;
}

.compte-password-check.invalid {
    color: #e74c3c;
    font-weight: bold;
}

.compte-signature-layout {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.compte-signature-image {
    flex: 0 0 250px;
    text-align: center;
}

.compte-signature-details {
    flex: 1;
    min-width: 300px;
}
.compte-form label,
.compte-form input {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}
.compte-form input[type="password"] {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}
.compte-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.compte-row label {
    flex: 0 0 180px;
    font-weight: 600;
    white-space: nowrap;
}

.compte-row input {
    flex: 1;
    padding: 6px 10px;
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
}

.compte-password-check {
    margin-left: 180px;
    font-size: 0.9rem;
    color: #666;
}
.compte-col.info-col {
    max-width: 440px;
    flex: 0 0 auto;
}
.info-list span.nowrap {
    font-weight: bold;
    color: var(--color-dark);
}
.compte-signature-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.compte-signature-image {
    flex: 0 0 38%; /* ⬅️ environ 2/5 */
    max-width: 240px;
    text-align: center;
}

.compte-signature-details {
    flex: 1; /* ⬅️ environ 3/5 */
    min-width: 0;
}

.compte-signature-details p {
    margin-bottom: 8px;
}

.compte-signature-details input[type="file"] {
    margin-bottom: 10px;
}

.compte-signature-details .alert {
    margin-top: 8px;
    margin-bottom: 12px;
}
/* Répartition des colonnes dans le bloc global */
.compte-two-cols {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap; /* garde les colonnes côte à côte */
}

/* Colonne mot de passe = 2/5 */
.compte-col.compte-card-green {
    flex: 0 0 35%; /* environ 2/5 */
    max-width: 35%;
}

/* Colonne signature = 3/5 */
.compte-col.compte-card-blue {
    flex: 1; /* environ 3/5 */
    max-width: 65%;
}
