/* Variables */
:root {
  --blue-marine: #002366;
  --grey-anthracite: #333333;
  --gold: #d4af37;
  --silver: #c0c0c0;
  --white: #ffffff;
  --light-grey: #f5f5f5;
  --danger: #dc3545;
  --warning: #ffc107;
  --success: #28a745;
}

/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--grey-anthracite);
  line-height: 1.6;
  background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--blue-marine);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Security Banner */
.security-banner {
  background: var(--blue-marine);
  color: var(--gold);
  padding: 10px 0;
  font-size: 0.9rem;
  text-align: center;
  border-bottom: 2px solid var(--gold);
}

.security-banner i {
  margin-right: 10px;
}

/* Header */
header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 35, 102, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1px;
  margin: 0;
}

.slogan {
  font-size: 0.8rem;
  color: var(--grey-anthracite);
  opacity: 0.8;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: var(--grey-anthracite);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--blue-marine);
}

.btn-secure {
  background: var(--blue-marine);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 5px;
  border: 2px solid var(--gold);
}

.btn-secure:hover {
  background: var(--gold);
  color: var(--blue-marine) !important;
}

/* Hero Section */
.hero {
  height: 600px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background: var(--gold);
  color: var(--blue-marine);
  text-decoration: none;
  font-weight: 700;
  border-radius: 5px;
  transition: all 0.3s;
  border: 2px solid var(--gold);
}

.btn-primary:hover {
  background: transparent;
  color: var(--gold);
}

/* Status Widget */
.status-widget {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 10px;
  padding: 30px;
  margin: 40px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-right: 2px solid var(--light-grey);
}

.status-item:last-child {
  border-right: none;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: relative;
}

.status-indicator.online {
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulse 2s infinite;
}

.status-indicator.warning {
  background: var(--warning);
  box-shadow: 0 0 10px var(--warning);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

.badge {
  background: var(--blue-marine);
  color: var(--white);
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.8rem;
  margin-left: 10px;
}

/* Compliance Warning */
.compliance-warning {
  background: linear-gradient(
    135deg,
    var(--blue-marine) 0%,
    var(--grey-anthracite) 100%
  );
  color: var(--white);
  padding: 40px;
  border-radius: 10px;
  margin: 40px 0;
  text-align: center;
  border-left: 5px solid var(--gold);
}

.warning-content i {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 20px;
}

.warning-content h3 {
  color: var(--gold);
  margin-bottom: 15px;
}

/* Stats Section */
.stats-section {
  padding: 60px 0;
  background: var(--light-grey);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-card {
  padding: 30px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--blue-marine);
  margin-bottom: 10px;
}

.stat-label {
  color: var(--grey-anthracite);
  font-size: 0.9rem;
}

/* Footer */
footer {
  background: var(--grey-anthracite);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--gold);
}

.partners li i {
  color: var(--gold);
  margin-right: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.security-note {
  color: var(--gold);
  font-size: 0.8rem;
  margin-top: 10px;
}

/* Page Contact */
.page-header {
  text-align: center;
  padding: 60px 0 30px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}

.info-card p {
  margin-bottom: 10px;
}

.info-card i {
  width: 25px;
  color: var(--gold);
}

.contact-form-container {
  background: var(--white);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 30px rgba(0, 35, 102, 0.1);
}

.admin-form .form-group {
  margin-bottom: 25px;
}

.admin-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--blue-marine);
}

.admin-form .required {
  color: var(--danger);
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--light-grey);
  border-radius: 5px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox input {
  width: auto;
  margin-top: 3px;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background: var(--blue-marine);
  color: var(--white);
  border: none;
  border-radius: 5px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: var(--gold);
  color: var(--blue-marine);
}

/* Page de Connexion */
.login-page {
  background: linear-gradient(
    135deg,
    var(--blue-marine) 0%,
    var(--grey-anthracite) 100%
  );
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-container {
  max-width: 500px;
  margin: 50px auto;
  background: var(--white);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.login-form .form-group {
  margin-bottom: 25px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--light-grey);
  border-radius: 5px;
  font-size: 1rem;
}

.btn-login {
  width: 100%;
  padding: 15px;
  background: var(--blue-marine);
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 5px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-login:hover {
  background: var(--gold);
  color: var(--blue-marine);
}

.security-notice {
  margin-top: 30px;
  padding: 20px;
  background: var(--light-grey);
  border-radius: 5px;
  font-size: 0.9rem;
}

.security-notice h4 {
  color: var(--danger);
  margin-bottom: 10px;
}

.security-list {
  list-style: none;
  margin-top: 15px;
}

.security-list li {
  margin-bottom: 15px;
  display: flex;
  gap: 10px;
}

.security-list i {
  color: var(--gold);
  font-size: 1.2rem;
}

.alert {
  padding: 15px 20px;
  border-radius: 5px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.alert-warning {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
}

/* Dashboard */
.dashboard {
  padding: 40px 0;
}

.dashboard-header {
  margin-bottom: 40px;
}

.dashboard-header .reference {
  font-family: monospace;
  font-size: 1.2rem;
  color: var(--gold);
  background: var(--blue-marine);
  padding: 5px 10px;
  border-radius: 3px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.dashboard-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card-header {
  background: var(--blue-marine);
  color: var(--white);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header i {
  color: var(--gold);
  font-size: 1.2rem;
}

.card-header h3 {
  color: var(--white);
  margin: 0;
  font-size: 1.1rem;
}

.card-content {
  padding: 20px;
}

.status-badge {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.status-badge.pre_cloture {
  background: var(--warning);
  color: var(--grey-anthracite);
}

.status-badge.en_cours_audit {
  background: var(--blue-marine);
  color: var(--white);
}

.status-badge.en_attente {
  background: var(--silver);
  color: var(--grey-anthracite);
}

.info-line {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--light-grey);
}

.info-line:last-child {
  border-bottom: none;
}

.label {
  font-weight: 600;
  color: var(--grey-anthracite);
}

.value {
  font-family: monospace;
  font-size: 1.1rem;
}

.action-list {
  list-style: none;
}

.action-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--light-grey);
}

.action-list li:last-child {
  border-bottom: none;
}

.action-list i {
  color: var(--gold);
}

.btn-small {
  padding: 5px 10px;
  background: var(--blue-marine);
  color: var(--white);
  border: none;
  border-radius: 3px;
  font-size: 0.8rem;
  cursor: pointer;
  margin-left: auto;
}

/* Timeline */
.timeline-section {
  margin-top: 40px;
}

.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
}

.timeline-item {
  position: relative;
  padding-left: 50px;
  margin-bottom: 30px;
}

.timeline-marker {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}

.timeline-content {
  background: var(--white);
  padding: 15px;
  border-radius: 5px;
  border: 1px solid var(--light-grey);
}

.timeline-content h4 {
  margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 20px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .login-container {
    margin: 20px;
    padding: 20px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.status-widget,
.compliance-warning {
  animation: fadeIn 1s ease-out;
}

/* Countdown */
.countdown {
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--danger);
  background: var(--white);
  padding: 3px 8px;
  border-radius: 3px;
}
