/* Style global inspiré de macOS/iOS */
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: #f5f5f7;
    color: #1d1d1f;
    margin: 0;
}

.login-container {
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px); /* Effet flou iOS */
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 360px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.logo-icon {
    background: #2d5a27; /* Vert Digital Pine */
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.apple-form .input-group {
    margin-bottom: 15px;
    text-align: left;
}

.apple-form input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #d2d2d7;
    background: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    box-sizing: border-box;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #0071e3; /* Bleu Apple */
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary:hover {
    background: #0077ed;
}

.app-footer {
    text-align: center;
    font-size: 12px;
    color: #86868b;
    padding: 20px;
}

/*-----------------------------------------------------------------------------------------------*/
/*  notif  */
.notif {
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
}
.notif-success { background: #e3f9e5; color: #1e4620; border: 1px solid #c1e7c4; }
.notif-error { background: #ffe5e5; color: #851d1d; border: 1px solid #f5c2c2; }

@keyframes slideIn {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/*-----------------------------------------------------------------------------------------------*/
/*  DashBoard  */
.dashboard-content {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.btn-add {
    background: #0071e3;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

/* Grille de stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.icon-box.green { background: #e3f9e5; color: #2d5a27; }
.icon-box.blue { background: #e3f2fd; color: #0071e3; }
.icon-box.gold { background: #fff8e1; color: #f9a825; }

.stat-info h3 { margin: 0; font-size: 28px; }
.stat-info p { margin: 0; color: #86868b; font-size: 14px; }

/* Bento Menu */
.bento-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.bento-item {
    background: #f5f5f7;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 500;
    text-align: center;
    transition: 0.2s;
}

.bento-item:hover {
    background: #e8e8ed;
}

/* Rend le lien invisible visuellement mais actif sur toute la carte */
.card-link {
    text-decoration: none;
    color: inherit; /* Garde la couleur du texte originale */
    display: block;
    transition: transform 0.2s ease;
}

.card-link:hover .stat-card {
    background-color: rgba(255, 255, 255, 0.9); /* Effet de survol léger */
    transform: translateY(-3px); /* Petit saut style iOS */
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* --- BOUTON DECONNEXION DASHBOARD --- */

.btn-logout-circle {
    display: flex;
    align-items: center;
    background: #fff2f2; /* Fond rouge très clair */
    color: #ff3b30;      /* Rouge iOS */
    padding: 10px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

/* FORCE LA COULEUR : 
   Même si le lien est visité, actif ou survolé, 
   on garde la cohérence visuelle.
*/
.btn-logout-circle:visited, 
.btn-logout-circle:active,
.btn-logout-circle:focus {
    color: #ff3b30;      /* On maintient le rouge */
    background: #fff2f2; /* On maintient le fond */
    text-decoration: none;
}

.btn-logout-circle:hover {
    background: #ff3b30;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.2);
}

.btn-logout-circle i {
    font-size: 1rem;
}

/* --- BADGE ROND IPHONE STYLE --- */

.icon-wrapper {
    position: relative;
    display: inline-flex;
}

.badge-round {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: #ff3b30; /* Rouge vif iOS */
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    
    /* Pour un cercle parfait */
    width: 24px;
    height: 24px;
    border-radius: 50%;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Détourage blanc pour l'effet de profondeur */
    border: 3px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    
    z-index: 10;
}

/* Ajustement des cartes Bento */
.stat-card-bento {
    background: #ffffff;
    border-radius: 28px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #f2f2f7;
    transition: transform 0.2s ease;
}

.stat-card-bento h3 {
    margin-top: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.3px;
}

/*-----------------------------------------------------------------------------------------------*/
/*  owner  */

/* Header styling */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.header-titles h1 { font-size: 32px; font-weight: 700; margin: 0; }
.header-titles p { color: #86868b; margin: 5px 0 0; }

.header-tools { display: flex; gap: 15px; align-items: center; }

/* Search bar macOS style */
.search-wrapper {
    background: #e8e8ed;
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    width: 250px;
}
.search-wrapper input {
    background: transparent;
    border: none;
    margin-left: 8px;
    outline: none;
    font-size: 14px;
    width: 100%;
}

/* Owner Cards */
.owner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.owner-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.owner-avatar {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #2d5a27, #4ca13e);
    color: white;
    border-radius: 14px; /* Squircle style iOS */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.owner-details h3 { font-size: 16px; margin: 0; }
.location { font-size: 12px; color: #86868b; display: block; margin: 4px 0; }

.contact-links { display: flex; gap: 12px; margin-top: 8px; }
.contact-links a { color: #0071e3; font-size: 14px; }

.owner-actions { margin-left: auto; }
.action-btn.edit {
    color: #c7c7cc;
    font-size: 18px;
    transition: 0.2s;
}
.action-btn.edit:hover { color: #0071e3; transform: translateX(3px); }

.container-small { max-width: 600px; margin: 40px auto; padding: 0 20px; }

.back-link { text-decoration: none; color: #0071e3; font-size: 14px; display: block; margin-bottom: 10px; }

.form-card { padding: 0; overflow: hidden; }
.form-section { padding: 25px; border-bottom: 1px solid #f2f2f7; }
.form-section h3 { font-size: 13px; text-transform: uppercase; color: #86868b; margin-bottom: 20px; letter-spacing: 0.5px; }

.input-row { display: flex; gap: 15px; }
.input-row .input-group { flex: 1; }

.form-actions { padding: 25px; background: #fbfbfd; text-align: right; }

.apple-form select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #d2d2d7;
    background: white;
    appearance: none;
}

/* Conteneur principal avec décalage à gauche et à droite */
.container-fluid.page-owners {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px 40px 60px; /* On augmente le padding à gauche (60px) */
}

/* Fil d'Ariane / Retour */
.breadcrumb {
    margin-bottom: 20px;
}
.breadcrumb a {
    text-decoration: none;
    color: #0071e3;
    font-size: 14px;
    font-weight: 500;
}

/* Header propre : évite le chevauchement */
.content-header-clean {
    display: flex;
    flex-direction: column; /* Force l'empilement vertical */
    gap: 25px;
    margin-bottom: 40px;
}

.content-header-clean .titles h1 {
    font-size: 34px;
    margin: 0;
    font-weight: 700;
}

.content-header-clean .titles p {
    color: #86868b;
    margin: 5px 0 0 0;
}

/* Barre d'outils - Layout Vertical SÉCURISÉ */
.actions-bar {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligne à gauche */
    justify-content: flex-start;
    gap: 12px;
    margin: 20px 0 30px 0;
    /* On s'assure que le parent ne force pas l'étirement */
    height: auto !important; 
}

/* Le bouton et la barre de recherche */
.actions-bar .btn-primary, 
.actions-bar .search-wrapper {
    width: 280px !important;      /* Largeur fixe forcée */
    height: 44px !important;      /* Hauteur fixe forcée */
    max-height: 44px !important;  /* Empêche ABSOLUMENT l'étirement */
    border-radius: 12px;
    box-sizing: border-box;
    display: inline-flex !important; /* Utilisation de inline-flex pour limiter l'espace */
    align-items: center;
    overflow: hidden;             /* Sécurité pour le contenu */
    text-decoration: none !important;
}

/* Bouton Bleu */
.actions-bar .btn-primary {
    background-color: #0071e3;
    color: white !important;
    font-weight: 500;
    justify-content: center;
    border: none;
    padding: 0 15px;
}

/* Barre de recherche Grise */
.actions-bar .search-wrapper {
    background: #efeff4;
    padding: 0 15px;
}

.actions-bar .search-wrapper input {
    border: none;
    background: transparent;
    margin-left: 10px;
    outline: none;
    width: 100%;
    height: 100%; /* L'input prend toute la hauteur des 44px */
    font-size: 14px;
}

/* Grille de cartes */
.owner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.owner-card {
    background: white;
    border-radius: 18px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.owner-avatar {
    width: 50px;
    height: 50px;
    background: #2d5a27;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 15px;
}

.owner-details h3 { font-size: 16px; margin: 0; }
.owner-details .location { font-size: 13px; color: #86868b; }

.owner-actions { margin-left: auto; }

/*poubelle*/
.owner-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: auto;
}

.action-btn {
    border: none;
    background: #f2f2f7;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #8e8e93;
}

/* Style spécifique pour la suppression */
.action-btn.delete:hover {
    background-color: #ff3b30; /* Rouge iOS */
    color: white;
}

.action-btn.edit:hover {
    background-color: #0071e3;
    color: white;
}

/*-----------------------------------------------------------------------------------------------*/

/* Container des parcelles */
.plot-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.plot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    transition: transform 0.2s;
}

.plot-row:hover {
    transform: scale(1.01);
}

/* Infos principales */
.plot-main-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1.5;
}

.plot-icon {
    width: 45px;
    height: 45px;
    background: #f2f2f7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d5a27;
    font-size: 20px;
}

.plot-text h3 { margin: 0; font-size: 16px; color: #1d1d1f; }
.owner-name { margin: 0; font-size: 13px; color: #86868b; }

/* Détails en colonnes */
.plot-details {
    display: flex;
    gap: 40px;
    flex: 3;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item .label { font-size: 11px; text-transform: uppercase; color: #aeaeb2; margin-bottom: 2px; }
.detail-item .value { font-size: 14px; font-weight: 500; }

/* Badges iOS */
.badge {
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}
.badge-blue { background: #e1f0ff; color: #0071e3; }
.badge-green { background: #e3f9e5; color: #2d5a27; }

/* Actions */
.plot-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-manage {
    background: #f2f2f7;
    color: #1d1d1f;
    padding: 6px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.btn-icon-ios {
    color: #c7c7cc;
    font-size: 16px;
    background: none;
    border: none;
    cursor: pointer;
}

.btn-icon-ios.delete:hover { color: #ff3b30; }

/* Alignement identique à la liste des propriétaires */
.container-fluid.page-plots {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px 40px 60px; /* Le 60px à gauche crée le décalage souhaité */
}

.plot-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.plot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 25px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Infos et Badges */
.plot-main-info { display: flex; align-items: center; gap: 15px; flex: 1.5; }
.plot-icon { width: 48px; height: 48px; background: #f2f2f7; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #2d5a27; font-size: 20px; }
.plot-text h3 { margin: 0; font-size: 16px; }
.owner-name { margin: 2px 0 0; font-size: 13px; color: #86868b; }

.plot-details { display: flex; gap: 40px; flex: 3; }
.detail-item { display: flex; flex-direction: column; }
.detail-item .label { font-size: 10px; text-transform: uppercase; color: #aeaeb2; letter-spacing: 0.5px; margin-bottom: 3px; }
.detail-item .value { font-size: 14px; font-weight: 500; }

.badge { padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.badge-blue { background: #e1f0ff; color: #0071e3; }
.badge-green { background: #e3f9e5; color: #2d5a27; }

/* Boutons d'actions */
.plot-actions { display: flex; align-items: center; gap: 12px; }
.btn-manage { background: #f2f2f7; color: #1d1d1f; padding: 8px 16px; border-radius: 10px; text-decoration: none; font-size: 13px; font-weight: 600; transition: 0.2s; }
.btn-manage:hover { background: #e5e5ea; }
.btn-icon-ios { background: none; border: none; color: #c7c7cc; font-size: 18px; cursor: pointer; transition: 0.2s; }
.btn-icon-ios.delete:hover { color: #ff3b30; }

.page-manage { padding: 40px 40px 40px 60px; max-width: 1300px; margin: 0 auto; }

.manage-grid { display: grid; grid-template-columns: 1fr 350px; gap: 30px; margin-top: 30px; }

/* Timeline Design */
.timeline { position: relative; padding: 20px 0; }

.timeline-item {
    display: flex;
    gap: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #f2f2f7;
    align-items: center;
}

.timeline-date { width: 70px; text-align: right; }
.timeline-date .year { display: block; font-weight: 700; font-size: 15px; color: #1d1d1f; }
.timeline-date .age { font-size: 12px; color: #86868b; }

.timeline-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-content h4 { margin: 0; font-size: 15px; font-weight: 500; }

/* Toggle Switch style iOS */
.status-toggle input { display: none; }
.status-label {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: #f2f2f7;
    color: #8e8e93;
    transition: all 0.3s;
}

.status-toggle input:checked + .status-label {
    background: #34c759; /* Vert iOS */
    color: white;
}

/* État en retard */
.overdue .year { color: #ff3b30; }
.overdue h4 { color: #ff3b30; }

/* Header Infos */
.plot-info-header { display: flex; flex-direction: column; gap: 15px; padding: 20px; margin-bottom: 20px; border-left: 5px solid #0071e3; }
.info-main { display: flex; align-items: center; gap: 15px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; color: #48484a; font-size: 14px; }

/* Table Style iOS */
.ios-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ios-table th { text-align: left; padding: 12px; color: #8e8e93; font-weight: 500; border-bottom: 1px solid #d1d1d6; }
.ios-table td { padding: 12px; border-bottom: 1px solid #f2f2f7; }
.ios-table tbody tr:nth-child(even) { background-color: #fbfbfd; } /* Différenciation des lignes */

/* Bouton iPhone (Switch) */
.col-status { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.ios-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.ios-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #e9e9ea; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 2px; bottom: 2px; background-color: white; transition: .4s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
input:checked + .slider { background-color: #0071e3; }
input:checked + .slider:before { transform: translateX(20px); }
.status-text { font-size: 12px; color: #8e8e93; min-width: 60px; }

/* Documents */
.docs-section { margin-top: 20px; padding: 20px; }
.ios-table-mini { width: 100%; margin-bottom: 15px; }
.btn-ios-small { padding: 4px 10px; border-radius: 6px; font-size: 12px; text-decoration: none; background: #f2f2f7; color: #0071e3; border: none; }
.btn-ios-small.delete { color: #ff3b30; margin-left: 5px; }
.upload-zone { border-top: 1px solid #f2f2f7; padding-top: 15px; text-align: center; }

/* Boutons Voir et Supprimer plus généreux */
.btn-ios-small {
    padding: 8px 16px; /* Plus large */
    border-radius: 10px;
    font-size: 14px; /* Texte plus grand */
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f2f2f7;
    color: #0071e3;
    border: none;
    min-width: 80px; /* Taille minimale garantie */
    transition: all 0.2s ease;
}

.btn-ios-small.delete {
    background: #fff5f5;
    color: #ff3b30;
    margin-left: 8px;
}

.btn-ios-small:active {
    transform: scale(0.95); /* Effet de pression */
}

/* Ajustement du Switch pour qu'il soit plus réactif visuellement */
.ios-switch {
    width: 50px; /* Un peu plus grand */
    height: 28px;
}

.slider:before {
    height: 24px;
    width: 24px;
    left: 2px;
    bottom: 2px;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Changement de couleur du texte à côté du switch */
input:checked ~ .status-text {
    color: #0071e3;
    font-weight: 600;
}

/* Boutons Voir et Supprimer Agrandis */
.btn-ios-action {
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    background: #f2f2f7;
    color: #0071e3;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-ios-action.delete {
    background: #fff5f5;
    color: #ff3b30;
    margin-left: 10px;
}

/* Bouton d'envoi Géant (Style iOS Dashboard) */
.upload-zone-large {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #f2f2f7;
}

.btn-upload-big {
    width: 100%;
    max-width: 400px;
    height: 60px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #0071e3;
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
    transition: transform 0.2s, background 0.2s;
}

.btn-upload-big:hover {
    background: #0077ed;
    transform: translateY(-2px);
}

.btn-upload-big i {
    font-size: 20px;
}

/* Fix Switch iPhone pour l'enregistrement */
.ios-switch {
    width: 52px;
    height: 30px;
}

.slider:before {
    height: 26px;
    width: 26px;
    left: 2px;
    bottom: 2px;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* --- COMPRESSION GLOBALE IOS (Mini Styles) --- */

/* Ajustement du Header Document pour coller le texte à l'icône à gauche */
.docs-section .card-header-ios {
    justify-content: flex-start; /* Aligne tout à gauche */
    gap: 12px; /* Espace fixe icône/texte */
    padding: 10px 16px; /* Moins de padding */
}

/* --- TRAVAUX COMPACTS --- */
.ios-work-list-compact {
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.ios-work-item-mini {
    display: flex;
    align-items: center; /* Centrage vertical parfait */
    padding: 8px 16px; /* Padding très réduit en hauteur */
    border-bottom: 1px solid #f2f2f7;
    transition: background 0.1s;
}

.ios-work-item-mini.completed {
    background-color: #fafffb;
}

/* Aligner le libellé à gauche */
.work-col-label {
    flex: 1; /* Prend tout l'espace */
    font-weight: 600;
    color: #1d1d1f;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Coupe propre si trop long */
}

/* Aligner l'année au centre/droite */
.work-col-year {
    width: 60px;
    text-align: center;
    font-size: 0.85rem;
    color: #86868b;
    font-family: 'SF Pro Text', monospace;
}

/* Aligner le switch parfaitement à droite */
.work-col-action {
    width: 60px;
    display: flex;
    justify-content: flex-end; /* Force à droite */
    align-items: center;
}

/* Switch iOS réduit */
.ios-switch-mini {
    position: relative;
    display: inline-block;
    width: 44px; /* Plus petit */
    height: 26px; /* Plus petit */
}

.ios-switch-mini input { opacity: 0; width: 0; height: 0; }

.slider-mini {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #e9e9ea;
    transition: .3s;
    border-radius: 26px;
}

.slider-mini:before {
    position: absolute;
    content: "";
    height: 22px; width: 22px; /* Plus petit */
    left: 2px; bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .slider-mini { background-color: #0071e3; }
input:checked + .slider-mini:before { transform: translateX(18px); /* Réduit */ }


/* --- DOCUMENTS COMPACTS & ALIGNÉS --- */
.ios-doc-item-mini {
    display: flex;
    align-items: center;
    padding: 6px 12px; /* Hauteur réduite */
    background: #f5f5f7;
    border-radius: 8px; /* Moins arrondi */
    margin-bottom: 6px;
    gap: 12px;
    border: 1px solid transparent;
}

.doc-icon-mini {
    color: #ff3b30;
    font-size: 1.1rem;
    width: 20px; /* Largeur fixe pour alignement */
    text-align: center;
}

.doc-name-mini {
    flex: 1; /* Prend l'espace, pousse les boutons à droite */
    font-size: 0.85rem;
    font-weight: 500;
    color: #1d1d1f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Aligné à gauche après l'icône */
}

/* Zone boutons verrouillée à droite */
.doc-buttons-mini {
    display: flex;
    gap: 6px; /* Espace constant entre les boutons */
    justify-content: flex-end; /* Force l'alignement à droite */
}

/* Boutons d'action réduits */
.btn-circle-ios-mini {
    width: 30px; /* Plus petit */
    height: 30px; /* Plus petit */
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-circle-ios-mini.view { background: #e8f2fe; color: #007aff; }
.btn-circle-ios-mini.delete { background: #fff2f2; color: #ff3b30; }

.btn-circle-ios-mini:active { transform: scale(0.9); }

/* Supprime le soulignement sur tous les boutons icones */
.btn-circle-ios-mini, 
.btn-circle-ios-mini:hover, 
.btn-circle-ios-mini:visited {
    text-decoration: none !important; /* Force la suppression du soulignement */
    outline: none;
}

/* On s'assure que l'icône à l'intérieur n'est pas soulignée non plus */
.btn-circle-ios-mini i {
    text-decoration: none !important;
    display: inline-block;
}

.btn-circle-ios-mini.view {
    background-color: #e8f2fe !important; /* Fond bleu très clair */
    color: #007aff !important;            /* Bleu iPhone standard */
}

.btn-circle-ios-mini.view i {
    color: #007aff !important;
}

.ios-doc-item-mini {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligne tout le contenu vers la gauche */
    padding: 6px 12px;
    background: #f5f5f7;
    border-radius: 8px;
    margin-bottom: 6px;
}

.doc-name-mini {
    flex: 1; /* Pousse les boutons vers la droite */
    margin-left: 10px; /* Espace constant après l'icône rouge */
    text-align: left;
    font-size: 0.85rem;
    color: #1d1d1f;
    text-decoration: none !important;
}

/* Correction spécifique pour iPhone sur la page Parcelles */
@media (max-width: 768px) {
    .plot-row {
        flex-direction: column; /* On empile les éléments au lieu de les aligner */
        align-items: flex-start;
        padding: 15px;
    }

    .plot-details {
        display: grid;
        grid-template-columns: 1fr 1fr; /* On fait deux colonnes propres */
        gap: 10px;
        width: 100%;
        margin: 15px 0;
        border-top: 1px solid #eee;
        padding-top: 10px;
    }

    .plot-actions {
        width: 100%;
        justify-content: space-between;
        display: flex;
    }
    
    .btn-manage {
        flex-grow: 1;
        text-align: center;
        margin-right: 10px;
    }
}



/* --- ACCORDEON PSG --- */

.card-header-ios {
    display: flex;
    justify-content: space-between; /* Pour pousser le chevron à droite */
    align-items: center;
    padding: 15px 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chevron-icon {
    color: #c7c7cc;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

/* Classe qui fera tourner le chevron quand on ouvre */
.chevron-rotate {
    transform: rotate(180deg);
}

/* Conteneur masqué par défaut */
.psg-collapse-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Quand la section est active */
.psg-collapse-content.show {
    max-height: 500px; /* Ajuste selon la taille de ton image */
}

.psg-banner img {
    width: 100%;
    display: block;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

/*-----------------------------------------------------------------------------------------------*/
/*   SALES */
/* Container principal avec centrage et largeur max */
.page-sales-manage {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header plus élégant */
.content-header-clean {
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e5e7;
    padding-bottom: 20px;
}

.btn-back {
    display: inline-block;
    color: #007aff;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 10px;
}

/* Grille de mise en page (Desktop: 2 colonnes / Mobile: 1 colonne) */
.sales-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 992px) {
    .sales-grid { grid-template-columns: 1fr; }
}

/* Style des Cartes (Cards) */
.card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 25px;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Formulaire d'upload style iOS */
.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #86868b;
    margin-bottom: 8px;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    background: #f5f5f7;
    margin-bottom: 20px;
}

.file-drop-area {
    border: 2px dashed #d2d2d7;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
    margin-bottom: 20px;
}

.file-drop-area:hover { border-color: #007aff; background: #f0f7ff; }

.file-drop-area input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0; opacity: 0; cursor: pointer;
}

.btn-submit-ios {
    width: 100%;
    background: #007aff;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* Liste des documents style iOS */
.ios-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ios-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fbfbfd;
    border-radius: 12px;
    transition: transform 0.2s;
}

.ios-item:hover { transform: scale(1.01); background: #f5f5f7; }

.item-icon {
    width: 40px;
    height: 40px;
    background: #fff9e6;
    color: #ffcc00;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-right: 15px;
}

.item-content { flex-grow: 1; }

.item-title { display: block; font-weight: 600; color: #1d1d1f; }
.item-date { font-size: 0.8rem; color: #86868b; }

.item-actions { display: flex; gap: 8px; }

.btn-view, .btn-delete {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-view { background: #e8f2fe; color: #007aff; }
.btn-delete { background: #fff2f2; color: #ff3b30; }
/*-----------------------------------------------------------------------------------------------*/
/*  FRAIS  */

.page-frais-list {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.header-top { margin-bottom: 20px; }

.btn-back-ios {
    color: #007aff;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
}

.content-header-clean h1 {
    font-size: 2rem;
    color: #1d1d1f;
    margin-bottom: 5px;
}

/* Liste en colonnes (une ligne par catégorie) */
.frais-column-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.frais-row-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 18px 25px;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border: 1px solid #f2f2f7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.frais-row-item:hover {
    background: #f5f5f7;
    transform: translateX(5px);
    border-color: #d2d2d7;
}

.row-icon {
    width: 45px;
    height: 45px;
    background: #f2f2f7;
    color: #3a3a3c;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
    margin-right: 20px;
}

.row-content { flex-grow: 1; }

.row-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1c1c1e;
}

.row-subtitle {
    font-size: 0.85rem;
    color: #8e8e93;
}

.row-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.badge-count {
    background: #e5e5ea;
    color: #3a3a3c;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.row-stats i {
    color: #c7c7cc;
    font-size: 0.9rem;
}

.row-icon {
    width: 42px;
    height: 42px;
    background: #f2f2f7;
    color: #007aff; /* On met l'ID en bleu pour rappeler le thème */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 700;
    margin-right: 18px;
}
.id-badge { font-size: 0.9rem; }


/*-----------------------------------------------------------------------------------------------*/
/* --- FISCALITÉ --- */

.page-fisc-list {
    max-width: 850px;
    margin: 40px auto;
    padding: 0 20px;
}

.fisc-column-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 35px;
}

.fisc-row-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border: 1px solid #f2f2f7;
}

.fisc-row-item:hover {
    background: #f5f5f7;
    border-color: #d2d2d7;
}

.row-icon-fisc {
    width: 42px;
    height: 42px;
    background: #1d1d1f;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-right: 18px;
    font-weight: bold;
}

.badge-count-fisc {
    background: #f2f2f7;
    color: #1d1d1f;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* --- MISE EN PAGE COMMUNE MANAGE (Sales, Frais, Fisc) --- */

.page-manage-content {
    max-width: 1100px; /* Limite la largeur pour décoller des bords */
    margin: 40px auto; /* Centre horizontalement et ajoute de l'espace en haut */
    padding: 0 30px;   /* Espace de sécurité sur les côtés */
}

.manage-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* 1/3 pour l'upload, 2/3 pour la liste */
    gap: 40px; /* Espace important entre les deux colonnes */
    margin-top: 30px;
}

/* Forcer le bleu iOS sur les boutons de validation */
.btn-submit-ios {
    width: 100%;
    background: #007aff !important;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit-ios:hover {
    background: #0056b3 !important;
}

/* Drop area icon color */
.file-drop-area i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

/* Adaptabilité mobile */
@media (max-width: 992px) {
    .manage-grid {
        grid-template-columns: 1fr;
    }
    .page-manage-content {
        margin: 20px auto;
        padding: 0 15px;
    }
}

/* --- WIDGET IMPOTS FONCIERS --- */

.balance-card {
    background: linear-gradient(135deg, #1d1d1f 0%, #434345 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 35px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.balance-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.balance-info {
    font-size: 0.85rem;
    opacity: 0.6;
}

.item-value {
    font-weight: 700;
    font-family: 'Courier New', Courier, monospace; /* Pour un look comptable */
}

.btn-delete-small {
    background: none;
    border: none;
    color: #d2d2d7;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
}

.btn-delete-small:hover { color: #ff3b30; }



/* --- FORMULAIRE MODERNE --- */
.input-group-modern {
    position: relative;
    margin-bottom: 15px;
}

.input-group-modern i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #007aff;
    font-size: 1rem;
}

.input-group-modern input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    background: #f5f5f7;
    font-size: 1rem;
    transition: all 0.2s;
}

.input-group-modern input:focus {
    background: #ffffff;
    border-color: #007aff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
    outline: none;
}

/* --- ACTIONS DANS L'HISTORIQUE --- */
.item-actions-group {
    display: flex;
    gap: 8px;
    margin-left: 15px;
}

.btn-action-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.btn-action-circle.edit {
    background: #e8f2fe;
    color: #007aff;
}

.btn-action-circle.delete {
    background: #fff2f2;
    color: #ff3b30;
}

.btn-action-circle:hover {
    transform: scale(1.1);
}

.item-value {
    min-width: 100px;
    text-align: right;
    font-weight: 700;
}
/*-----------------------------------------------------------------------------------------------*/
/*    */
/* --- AJUSTEMENTS FORMULAIRE MODERNE --- */

.modern-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espace régulier entre les éléments */
}

.input-group-modern {
    position: relative;
    width: 100%;
    /* On s'assure que le groupe ne déborde pas */
    box-sizing: border-box; 
}

.input-group-modern i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #007aff;
    z-index: 2; /* Pour rester au dessus de l'input */
}

.input-group-modern input {
    width: 100%; /* Occupe toute la largeur du parent */
    padding: 14px 15px 14px 45px; /* Padding gauche plus large pour l'icône */
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    background: #f5f5f7;
    font-size: 1rem;
    
    /* CRITIQUE : Empêche le dépassement du cadre */
    box-sizing: border-box; 
    display: block;
    
    transition: all 0.2s ease-in-out;
}

.input-group-modern input:focus {
    background: #ffffff;
    border-color: #007aff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
    outline: none;
}

/* On s'assure que le bouton a les mêmes propriétés de calcul de taille */
.btn-submit-ios {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: #007aff;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: block;
}
/*-----------------------------------------------------------------------------------------------*/
/* ==========================================================================
   ADMINISTRATION SYLVA - STYLE DEFINITIF (iOS Design)
   ========================================================================== */

/* --- 1. LAYOUT & WRAPPER --- */
.admin-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 25px;
    width: 100%;
    box-sizing: border-box;
}

.content-header-clean {
    margin-bottom: 30px;
    padding: 10px 0;
}

/* --- 2. CARTES & FORMULAIRES --- */
.form-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px; 
    border: 1px solid #e5e5ea;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* --- 3. INPUTS MODERNES (Correction Radicale de l'alignement) --- */
.input-group-modern {
    display: flex !important;
    align-items: center !important;
    background: #f2f2f7 !important; /* Gris iOS */
    border-radius: 12px !important;
    margin-bottom: 15px !important;
    border: 1px solid transparent !important;
    height: 50px !important;        /* Hauteur fixe et propre */
    overflow: hidden !important;
    width: 100% !important;
}

/* Icônes FontAwesome : On les isole dans un carré fixe */
.input-group-modern i {
    color: #007aff !important;
    width: 50px !important;         /* Carré de 50px */
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.1rem !important;
    flex-shrink: 0 !important;      /* Empêche l'icône de s'écraser */
    margin: 0 !important;
    padding: 0 !important;
}

/* Champs de texte : On force l'alignement sans padding gauche parasite */
.input-group-modern input {
    border: none !important;
    background: transparent !important;
    flex: 1 !important;
    height: 50px !important;
    line-height: 50px !important;   /* Aligne le texte au milieu verticalement */
    padding: 0 15px 0 0 !important; /* Marge à droite seulement */
    font-size: 16px !important;
    color: #1c1c1e !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}

/* --- 4. LISTE UTILISATEURS (Style iOS) --- */
.ios-list {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e5ea;
    overflow: hidden;
}

.ios-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #f2f2f7;
    gap: 15px;
}
.ios-item:last-child { border-bottom: none; }

.item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.item-content { flex-grow: 1; }
.item-title { display: block; font-weight: 600; font-size: 1.05rem; }
.item-subtitle { display: block; font-size: 0.85rem; color: #8e8e93; }

/* --- 5. COMPOSANTS (Badges & Boutons) --- */
.badge {
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-blue { background: #e1f0ff; color: #007aff; }
.badge-red { background: #ffe9e9; color: #ff3b30; }

.btn-submit-ios {
    background: #007aff !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    height: 50px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    width: 100% !important;
    cursor: pointer;
    margin-top: 20px !important;
}

/* Grille pour Nom/Prénom */
.input-row {
    display: flex;
    gap: 15px;
}
.input-row .input-group-modern { flex: 1; }

@media (max-width: 768px) {
    .input-row { flex-direction: column; gap: 0; }
}
/*-----------------------------------------------------------------------------------------------*/
/* --- PROTECTION ET ALIGNEMENT SA FORM --- */

/* Conteneur principal */
.admin-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 25px;
}

/* La carte du formulaire */
.sa-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 30px !important;
    border: 1px solid #e5e5ea !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}

/* Le groupe d'input - FORCE LE FLEX */
.sa-input-group {
    display: flex !important;
    flex-direction: row !important; /* Force l'alignement horizontal */
    align-items: center !important;
    background: #f2f2f7 !important;
    border-radius: 12px !important;
    margin-bottom: 15px !important;
    height: 50px !important;
    width: 100% !important;
    overflow: hidden !important;
    border: 1px solid transparent !important;
}

/* L'icône - FORCE LA LARGEUR */
.sa-input-group i {
    width: 50px !important;
    min-width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #007aff !important;
    font-size: 1.1rem !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* L'input - FORCE LE REMPLISSAGE */
.sa-input-group input {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    height: 50px !important;
    padding: 0 15px 0 0 !important;
    margin: 0 !important;
    font-size: 16px !important;
    outline: none !important;
    box-shadow: none !important;
    color: #1c1c1e !important;
}

/* Grille Nom/Prénom */
.sa-row {
    display: flex !important;
    gap: 15px !important;
}
.sa-row .sa-input-group { flex: 1 !important; }

/* Titres */
.sa-section-title {
    font-size: 13px !important;
    color: #8e8e93 !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    margin: 25px 0 10px 0 !important;
}

@media (max-width: 600px) {
    .sa-row { flex-direction: column !important; gap: 0 !important; }
}

/*-----------------------------------------------------------------------------------------------*/
/*  IMAGE  */
/* --- SECTION PLAN DE GESTION & IMAGE --- */
/* --- SECTION PLAN DE GESTION & IMAGE --- */

.psg-banner {
    position: relative;
    overflow: hidden;
    background: #f2f2f7;
    border-radius: 0 0 15px 15px;
    min-height: 60px; /* Taille minimum pour voir le bouton si pas d'image */
    transition: all 0.3s ease;
}

/* Si pas d'image, on réduit la hauteur et on centre le message */
.psg-banner.no-image {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-image-msg {
    color: #8e8e93;
    font-size: 0.9rem;
    font-style: italic;
}

.psg-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Le bouton flottant */
.upload-trigger-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: #007aff;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 10;
}

.upload-trigger-btn:hover {
    transform: scale(1.05);
    background: #ffffff;
}

@media (max-width: 600px) {
    .upload-trigger-btn span { display: none; }
}
/*-----------------------------------------------------------------------------------------------*/
/*    */

/*-----------------------------------------------------------------------------------------------*/
/*    */

/*-----------------------------------------------------------------------------------------------*/
/*    */

/*-----------------------------------------------------------------------------------------------*/
/*    */