/* RESET ET BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a5f7a;
  --secondary: #ff7b00;
  --dark: #2d3748;
  --light: #f8f9fa;
  --gray: #718096;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: linear-gradient(135deg, #f5f7f9 0%, #e4e8eb 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* CONTAINER PRINCIPAL */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* HEADER */
header {
  background: linear-gradient(135deg, var(--primary) 0%, white 100%);
  color: white;
  padding: 30px 0;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.05"><circle cx="50" cy="50" r="40" fill="white"/></svg>');
  opacity: 0.1;
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.logo-placeholder {
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  border: 3px dashed rgba(255, 255, 255, 0.3);
  padding: 15px;
  transition: all 0.3s ease;
}

.logo-placeholder:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.logo-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 50%;
}

.logo-fallback {
  font-weight: bold;
  font-size: 20px;
  color: white;
  display: none;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
  color: black;
}

/* CONTENU PRINCIPAL */
main {
  flex: 1;
  padding: 60px 0;
}

.maintenance-content {
  background: white;
  border-radius: 16px;
  padding: 50px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.maintenance-content::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: var(--secondary);
  opacity: 0.05;
  border-radius: 0 0 0 100%;
}

.icon-container {
  margin-bottom: 30px;
}

.icon {
  font-size: 4.5rem;
  color: var(--secondary);
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

h2 {
  font-size: 2.3rem;
  color: var(--primary);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

p {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 25px;
  line-height: 1.8;
}

.highlight {
  color: var(--secondary);
  font-weight: 600;
}

/* INFORMATIONS DE CONTACT */
.contact-info {
  background: linear-gradient(to right, #fef5e7, #fef9e7);
  border-left: 4px solid var(--secondary);
  padding: 30px;
  border-radius: 12px;
  margin: 40px 0;
  text-align: left;
  position: relative;
}

.contact-info h3 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}

.contact-info h3 i {
  margin-right: 12px;
  color: var(--secondary);
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
}

.contact-icon {
  margin-right: 15px;
  color: var(--secondary);
  font-size: 1.4rem;
  width: 30px;
  text-align: center;
}

/* SERVICES */
.services-info {
  background: linear-gradient(to right, #eef7ff, #e6f3ff);
  border-left: 4px solid var(--primary);
  padding: 30px;
  border-radius: 12px;
  margin: 40px 0;
  text-align: left;
}

.services-info h3 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}

.services-info h3 i {
  margin-right: 12px;
  color: var(--primary);
}

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

.service-item {
  display: flex;
  align-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
}

.service-item i {
  margin-right: 12px;
  color: var(--primary);
  font-size: 1.2rem;
  width: 30px;
  text-align: center;
}

/* COMPTE À REBOURS */
.countdown {
  margin: 40px 0;
}

.countdown h3 {
  margin-bottom: 25px;
  color: var(--dark);
  font-size: 1.5rem;
}

.timer {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.time-unit {
  background: linear-gradient(135deg, var(--primary) 0%, #2c3e50 100%);
  color: white;
  padding: 20px;
  border-radius: 12px;
  min-width: 100px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.time-unit:hover {
  transform: translateY(-5px);
}

.time-value {
  font-size: 2.5rem;
  font-weight: 700;
}

.time-label {
  font-size: 1rem;
  text-transform: uppercase;
  opacity: 0.9;
  letter-spacing: 1px;
}

/* FOOTER */
footer {
  background: linear-gradient(135deg, var(--dark) 0%, #1a202c 100%);
  color: white;
  padding: 40px 0;
  text-align: center;
}

.legal-info {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.legal-info p {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.copyright {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .timer {
    flex-wrap: wrap;
  }

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

@media (max-width: 768px) {
  h1 {
    font-size: 2.3rem;
  }

  .maintenance-content {
    padding: 35px 25px;
  }

  .time-unit {
    min-width: 85px;
    padding: 15px;
  }

  .time-value {
    font-size: 2.2rem;
  }

  .logo-placeholder {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .time-unit {
    min-width: 70px;
    padding: 12px;
  }

  .time-value {
    font-size: 1.8rem;
  }

  .time-label {
    font-size: 0.8rem;
  }

  .logo-placeholder {
    width: 130px;
    height: 130px;
  }

  .contact-info,
  .services-info {
    padding: 20px;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
  }

  .service-item {
    flex-direction: column;
    text-align: center;
  }

  .contact-icon,
  .service-item i {
    margin-right: 0;
    margin-bottom: 8px;
  }

  .timer {
    gap: 10px;
  }
}
