/* =====================================
   CARNET DE SANTÉ ANIMAUX - STYLE.CSS
   Version finale complète
   ===================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #fff0f5, #f0f8ff);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: #d45a80;
    margin-bottom: 25px;
    font-size: 2.3em;
}

h2 {
    color: #d45a80;
    margin-bottom: 18px;
}

h3 {
    color: #d45a80;
    margin: 25px 0 15px 0;
}

/* ====================== BANNER ALERTES ====================== */
.banniere-alertes {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border: 3px solid #f57c00;
    border-radius: 12px;
    padding: 14px 18px;
    margin: 15px 0 25px 0;
    box-shadow: 0 6px 20px rgba(245, 124, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    color: #e65100;
}

.banniere-alertes .banniere-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
}

#texteBanniere {
    flex: 1;
    font-size: 1.05em;
}

.btn-fermer {
    background: none;
    border: none;
    font-size: 1.8em;
    color: #e65100;
    cursor: pointer;
    padding: 0 10px;
    line-height: 1;
}

.btn-fermer:hover {
    color: #c62828;
    transform: scale(1.2);
}

/* ====================== ONGLET ====================== */
.onglets {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.onglet {
    padding: 12px 24px;
    background: #f0d0e0;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.onglet.actif {
    background: #d45a80;
    color: white;
}

/* ====================== LISTE ANIMAUX ====================== */
#listeAnimaux {
    list-style: none;
}

#listeAnimaux li {
    padding: 16px 20px;
    background: white;
    margin-bottom: 10px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid #f8c1d4;
    transition: 0.3s;
}

#listeAnimaux li:hover {
    background: #fff0f5;
    transform: translateX(8px);
}

/* ====================== PHOTO ====================== */
.photoCarree {
    width: 100%;
    max-width: 240px;
    height: 240px;
    object-fit: contain;
    background: #f8f8f8;
    border-radius: 20px;
    border: 6px solid white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    padding: 12px;
    box-sizing: border-box;
}

@media (max-width: 700px) {
    .ficheHeader {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    .photoCarree {
        max-width: 300px;
        height: 300px;
    }
}

/* ====================== URGENCES ====================== */
.phone-group {
    margin-bottom: 28px;
}

.phone-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #444;
}

.phone-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone-row input {
    flex: 1;
    padding: 14px 16px;
    font-size: 1.15em;
    border: 2px solid #f8c1d4;
    border-radius: 10px;
    background: white;
}

.phone-row button {
    padding: 14px 22px;
    min-width: 120px;
}

.numero-affiche {
    margin-top: 10px;
    padding: 14px 16px;
    background: #fff0f5;
    border: 2px solid #d45a80;
    border-radius: 10px;
    font-size: 1.15em;
    font-weight: bold;
}

.numero-affiche a {
    color: #d45a80;
    text-decoration: none;
}

.numero-affiche a:hover {
    text-decoration: underline;
}

.numeroFixe {
    background: white;
    padding: 18px;
    border-radius: 12px;
    border: 2px solid #f8c1d4;
    margin-top: 10px;
    line-height: 1.7;
}

.numeroFixe strong {
    color: #d45a80;
}

.numeroFixe a {
    color: #d45a80;
    text-decoration: none;
    font-weight: bold;
}

.numeroFixe a:hover {
    text-decoration: underline;
}

/* ====================== NOTES ====================== */
.noteItem {
    background: #fff9fb;
    padding: 14px 18px;
    margin-bottom: 12px;
    border-left: 6px solid #d45a80;
    border-radius: 10px;
    position: relative;
}

.btn-supprimer-note {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.85em;
    cursor: pointer;
}

.btn-supprimer-note:hover {
    background: #c0392b;
}

/* ====================== RENDEZ-VOUS ====================== */
.rdv-item {
    background: white;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    border-left: 6px solid #3498db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ====================== BLOC SAUVEGARDE ====================== */
.bloc-sauvegarde {
    background: #f0f8ff;
    padding: 22px;
    border-radius: 15px;
    margin: 30px 0;
    border: 2px solid #a0d2ff;
}

.sauvegarde-boutons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 15px 0;
}

/* ====================== BOUTONS ====================== */
.btn-principal {
    background: #d45a80;
    color: white;
    border: none;
    padding: 13px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

.btn-secondaire {
    background: #6c757d;
    color: white;
    border: none;
    padding: 13px 24px;
    border-radius: 10px;
    cursor: pointer;
}

.btn-principal:hover, .btn-secondaire:hover {
    opacity: 0.9;
}

/* ====================== CACHE & MODALE ====================== */
.cache {
    display: none !important;
}

.modal-alertes .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-alertes .modal-content {
    background: white;
    padding: 25px;
    border-radius: 18px;
    max-width: 520px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 650px) {
    .phone-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    body {
        padding: 15px;
    }
}

/* ====================== BLOC SAUVEGARDE ====================== */
.bloc-sauvegarde {
    background: #f0f8ff;
    padding: 22px;
    border-radius: 15px;
    margin: 30px 0;
    border: 2px solid #a0d2ff;
}

.sauvegarde-boutons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 15px 0;
}
