/* ========================================
   FORMULAIRE DE CONNEXION
======================================== */
.watch-login-form {
    max-width: 400px;
    margin: 4em auto;
    padding: 2.5em;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
}

.watch-login-form label {
    display: block;
    margin-bottom: 1.5em;
    font-weight: 500;
    color: #333333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.watch-login-form input {
    width: 100%;
    padding: 12px 16px;
    margin-top: 8px;
    border: 1px solid #d1d5db;
    border-radius: 2px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.watch-login-form input:focus {
    outline: none;
    border-color: #000000;
}

.watch-login-form button {
    width: 100%;
    padding: 14px 20px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.watch-login-form button:hover {
    background: #333333;
}

.watch-login-form button:disabled {
    background: #666666;
    cursor: not-allowed;
    opacity: 0.8;
}

.watch-login-form button .btn-spinner {
    font-size: 14px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.watch-error {
    color: #dc2626;
    text-align: center;
    font-weight: 500;
    background: #fef2f2;
    padding: 12px;
    border-radius: 2px;
    border: 1px solid #fecaca;
    margin-bottom: 20px;
    font-size: 14px;
}

.watch-warning {
    color: #d97706;
    text-align: center;
    font-weight: 500;
    background: #fffbeb;
    padding: 12px;
    border-radius: 2px;
    border: 1px solid #fed7aa;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ========================================
   CONTAINER PRINCIPAL DE LA MONTRE
======================================== */
.watch-container {
    max-width: 1000px;
    margin: 3em auto;
    padding: 0 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
}

/* ========================================
   EN-TÊTE
======================================== */
.watch-header {
    text-align: center;
    margin-bottom: 4em;
    padding-bottom: 2em;
    border-bottom: 1px solid #e5e7eb;
}

.watch-title {
    font-size: 2.5em;
    font-weight: 300;
    color: #111827;
    margin: 0;
    letter-spacing: -0.025em;
}

.watch-description {
    background: #f9fafb;
    padding: 2em;
    border-radius: 2px;
    margin: 2em 0;
    color: #6b7280;
    font-size: 16px;
    line-height: 1.7;
}

/* ========================================
   SPÉCIFICATIONS TECHNIQUES
======================================== */
.watch-specs {
    margin-bottom: 4em;
}

.watch-specs h2 {
    font-size: 1.5em;
    color: #111827;
    margin: 1em 0 2em 0;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 400;
    letter-spacing: -0.025em;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    margin-bottom: 2em;
}

.specs-table thead {
    background: #f9fafb;
}

.specs-table th {
    padding: 1em 1.5em;
    text-align: left;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.specs-table td {
    padding: 1em 1.5em;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.spec-label {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
    width: 40%;
}

.spec-value {
    font-weight: 400;
    color: #111827;
    font-size: 14px;
    width: 60%;
}

/* ========================================
   DESCRIPTION
======================================== */
.watch-description-section {
    margin-bottom: 4em;
}

.watch-description-section h2 {
    font-size: 1.5em;
    color: #111827;
    margin: 1em 0 2em 0;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 400;
    letter-spacing: -0.025em;
}

.description-content {
    background: #f9fafb;
    padding: 2em;
    border-radius: 2px;
    color: #374151;
    font-size: 16px;
    line-height: 1.7;
}

.description-content p {
    margin: 0 0 1em 0;
}

.description-content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   SECTIONS D'IMAGES
======================================== */
.watch-photos-section, .watch-dna-section {
    margin-bottom: 4em;
}

.watch-photos-section h2, .watch-dna-section h2 {
    font-size: 1.5em;
    color: #111827;
    margin: 1em 0 2em 0;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 400;
    letter-spacing: -0.025em;
}

.watch-gallery, .dna-gallery {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2em !important;
    margin-top: 2em;
    width: 100%;
}

/* Conteneurs d'images avec taille fixe */
.photo-item, .dna-item {
    width: 100%;
    height: 400px; /* Hauteur augmentée pour plus d'impact */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

/* Images qui s'adaptent sans être coupées */
.photo-item img, .dna-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Garde l'image entière, pas coupée */
    object-position: center;
}

.photo-item, .dna-item {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    border: 1px solid #e5e7eb;
    transition: border-color 0.2s ease;
}

.photo-item:hover, .dna-item:hover {
    border-color: #000000;
}

.photo-item img, .dna-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 2px;
    transition: opacity 0.2s ease;
}

.photo-item img:hover, .dna-item img:hover {
    opacity: 0.9;
}

/* ========================================
   RÉVISIONS
======================================== */
.watch-revisions-section {
    margin-bottom: 4em;
}

.watch-revisions-section h2 {
    font-size: 1.5em;
    color: #111827;
    margin: 1em 0 2em 0;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 400;
    letter-spacing: -0.025em;
}

.revision-card {
    background: #ffffff;
    padding: 2.5em;
    margin-bottom: 2em;
    border: 1px solid #e5e7eb;
    border-radius: 2px;
}

.revision-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: 1px solid #f3f4f6;
}

.revision-header h3 {
    color: #111827;
    font-size: 1.2em;
    margin: 0;
    font-weight: 500;
}

.revision-date {
    background: #f3f4f6;
    color: #374151;
    padding: 0.5em 1em;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.revision-work {
    margin-bottom: 2em;
}

.revision-work h4 {
    color: #374151;
    font-size: 14px;
    margin-bottom: 1em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.work-description {
    background: #f9fafb;
    padding: 1.5em;
    border-radius: 2px;
    line-height: 1.7;
    color: #6b7280;
    font-size: 14px;
}

.revision-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3em;
}

.photos-section h4 {
    color: #374151;
    font-size: 14px;
    margin-bottom: 1.5em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.photos-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5em !important;
    width: 100%;
}

/* Photos des révisions avec le même style */
.photos-grid img {
    max-width: 100%;
    max-height: 250px; /* Un peu plus petit que les photos principales */
    width: auto;
    height: auto;
    object-fit: contain; /* Garde l'image entière */
    object-position: center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
    padding: 10px;
}

.photos-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid #e5e7eb;
    transition: border-color 0.2s ease;
    cursor: pointer;
}

.photos-grid img:hover {
    border-color: #000000;
}



/* ========================================
   ADMIN - CROIX DE SUPPRESSION D'IMAGE
======================================== */
.remove-photo, .remove-dna, .remove-photo-avant, .remove-photo-apres {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ffffff;
    color: #dc2626;
    border: 1px solid #e5e7eb;
    border-radius: 2px;
    width: 24px;
    height: 24px;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    z-index: 2;
    padding: 0;
    transition: all 0.2s ease;
    font-weight: 500;
}

.remove-photo:hover, .remove-dna:hover, .remove-photo-avant:hover, .remove-photo-apres:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

.watch-photo-thumb, .rev-photo-thumb, .img-thumb, .watch-dna-thumb {
    position: relative;
    display: inline-block;
    margin: 8px;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .watch-container {
        padding: 0 20px;
        margin: 2em auto;
    }
    
    .watch-title {
        font-size: 2em;
    }
    
    .specs-table {
        font-size: 12px;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 0.8em 1em;
    }
    
    .revision-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1em;
    }
    
    .revision-photos {
        grid-template-columns: 1fr;
    }
    
    .watch-gallery, .dna-gallery {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }
    
    .photos-grid {
        grid-template-columns: 1fr;
        gap: 1em;
    }
}
