/* Autorisation d'exportation — formulaire diaspora */

.exp-page {
  padding-top: 80px;
}

.exp-hero {
  background:
    linear-gradient(180deg, rgba(11,38,22,.55) 0%, rgba(11,38,22,.8) 100%),
    url('https://images.pexels.com/photos/1072179/pexels-photo-1072179.jpeg?auto=compress&cs=tinysrgb&w=1920&h=600&fit=crop') center / cover no-repeat;
  color: #fff;
  padding: 3rem 0 2.5rem;
}

.exp-hero-inner {
  max-width: 760px;
}

.exp-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.75rem;
}

.exp-hero p {
  margin: 0;
  line-height: 1.7;
  opacity: 0.95;
  font-size: 1rem;
}

.exp-section {
  padding: 2.5rem 0 3.5rem;
  background: #f4f7f5;
}

.exp-card {
  background: #fff;
  border: 1px solid #dde5df;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.exp-card h2 {
  margin: 0 0 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #111827;
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.exp-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.exp-field--full {
  grid-column: 1 / -1;
}

.exp-field label {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
}

.exp-field input,
.exp-field select,
.exp-field textarea {
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  border: 1px solid #cfd8d2;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #1f2937;
  background: #fff;
}

.exp-field textarea {
  min-height: 90px;
  resize: vertical;
}

.exp-articles-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.exp-articles-toolbar input {
  flex: 1 1 180px;
  min-height: 40px;
  padding: 0.5rem 0.7rem;
  border: 1px solid #cfd8d2;
  border-radius: 8px;
  font-size: 0.88rem;
}

.exp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0 0.9rem;
  border-radius: 8px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.exp-btn--primary {
  background: #1b6b3a;
  color: #fff;
}

.exp-btn--primary:hover {
  background: #155729;
}

.exp-btn--secondary {
  background: #fff;
  color: #1b6b3a;
  border: 1px solid #1b6b3a;
}

.exp-btn--ghost {
  background: #f3f4f6;
  color: #374151;
}

.exp-articles-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
}

.exp-articles-table th,
.exp-articles-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid #e8eeea;
  text-align: left;
}

.exp-articles-table th {
  color: #6b7280;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.exp-empty-articles {
  padding: 1rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.86rem;
  border: 1px dashed #cfd8d2;
  border-radius: 8px;
}

.exp-camera-zone {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}

.exp-camera-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.exp-photo-thumb {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #dde5df;
}

.exp-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exp-photo-thumb button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  color: #fff;
  cursor: pointer;
  font-size: 0.75rem;
}

.exp-camera-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.exp-camera-modal.open {
  display: flex;
}

.exp-camera-box {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  max-width: 520px;
  width: 100%;
}

.exp-camera-x {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.exp-camera-x:hover { background: #fff; }

.exp-camera-box video {
  width: 100%;
  border-radius: 8px;
  background: #000;
}

.exp-camera-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  justify-content: flex-end;
}

.exp-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.exp-note {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.5;
}

.exp-alert {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
}

.exp-alert.show {
  display: block;
}

.exp-alert--success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.exp-alert--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.exp-status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.exp-status--pending { background: #fef3c7; color: #92400e; }
.exp-status--approved { background: #d1fae5; color: #047857; }
.exp-status--rejected { background: #fee2e2; color: #b91c1c; }

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