/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #0066cc;
  --primary-dark: #0052a3;
  --secondary-color: #BE2414;
  --text-color: #333;
  --text-light: #666;
  --bg-light: #f5f5f5;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --footer-bg: #1a3a5c;
  --footer-text: #ffffff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-white);
}

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

/* Header Top Bar */
.header-top {
  background-color: #2c3e50;
  color: #fff;
  padding: 10px 0;
  font-size: 14px;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.header-top-left {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.header-top-left span {
  display: flex;
  align-items: center;
  gap: 5px;
}

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

.header-top-right a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}

.header-top-right a:hover {
  opacity: 0.8;
}

/* Main Header */
.main-header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.main-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  padding: 5px 0;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-color);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-color);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  transition: all 0.3s;
}

/* Hero Section */
.hero-section,
.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

.hero-section {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: #fff;
  padding: 100px 0;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>')
    no-repeat bottom;
  background-size: cover;
  opacity: 0.3;
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  min-height: 500px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 500px;
  padding: 100px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.hero-slide[data-animation="fade"] {
  animation: fadeIn 1s ease-in-out;
}

.hero-slide[data-animation="slide"] {
  animation: slideIn 1s ease-in-out;
}

.hero-slide[data-animation="zoom"] {
  animation: zoomIn 1s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    transform: scale(1.1);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

/* Hero Controls */
.hero-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
  pointer-events: none;
}

.hero-prev,
.hero-next {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 30px;
  padding: 15px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  pointer-events: all;
  backdrop-filter: blur(5px);
}

.hero-prev:hover,
.hero-next:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Hero Indicators */
.hero-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero-indicator:hover,
.hero-indicator.active {
  background: white;
  transform: scale(1.2);
}

.hero-section h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  margin-bottom: 40px;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: #9A1D10;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background-color: #fff;
  color: var(--primary-color);
}

.btn-white {
  background-color: #fff;
  color: var(--primary-color);
}

.btn-white:hover {
  background-color: var(--bg-light);
}

.btn-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-link:hover {
  text-decoration: underline;
}

/* Sections */
.section-padding {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.bg-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 36px);
  color: var(--text-color);
  margin-bottom: 15px;
}

.bg-primary .section-header h2 {
  color: #fff;
}

/* Page Header */
.page-header {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 700;
}

/* About Preview */
.about-preview {
  text-align: center;
}

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

.lead {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--text-color);
}

.bg-primary .lead {
  color: #fff;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: var(--bg-white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 22px;
}

.service-card ul {
  list-style: none;
  margin: 15px 0;
}

.service-card ul li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
}

.service-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Service Detail Cards */
.service-detail-card {
  background: var(--bg-white);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.service-detail-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.service-detail-header .service-icon {
  font-size: 35px;
  margin: 0;
}

.service-detail-card h3 {
  color: var(--primary-color);
  font-size: 24px;
}

/* Content Sections */
.content-section {
  max-width: 1000px;
  margin: 0 auto;
}

.content-section h2 {
  font-size: clamp(26px, 4vw, 32px);
  color: var(--primary-color);
  margin-bottom: 25px;
}

.content-section p {
  margin-bottom: 15px;
  line-height: 1.8;
}

/* Two Columns */
.two-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.column h2 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.value-item {
  background: var(--bg-white);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid var(--primary-color);
}

.value-item h3 {
  color: var(--primary-color);
  font-size: 18px;
}

/* Team List */
.team-list {
  display: grid;
  gap: 15px;
  margin-top: 30px;
}

.team-item {
  background: var(--bg-white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-color);
}

.team-item strong {
  color: var(--primary-color);
}

/* News Section */
.news-content {
  text-align: center;
  color: var(--text-light);
}

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

.news-card {
  background: var(--bg-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.news-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: var(--bg-light);
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content-card {
  padding: 25px;
}

.news-content-card h3 {
  color: var(--primary-color);
  font-size: 20px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.news-excerpt {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 15px;
}

.news-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.news-date,
.news-author {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* News Article Page */
.news-article {
  max-width: 900px;
  margin: 0 auto;
}

.news-featured-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
}

.news-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.news-excerpt-large {
  font-size: 20px;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 30px;
  padding: 20px;
  background-color: var(--bg-light);
  border-left: 4px solid var(--primary-color);
  border-radius: 5px;
}

.news-content-full {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-color);
}

.news-content-full p {
  margin-bottom: 20px;
}

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

  .news-excerpt-large {
    font-size: 18px;
  }
}

/* CTA Section */
.cta-section {
  text-align: center;
}

.cta-content h2 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.95;
}

/* Contact */
.contact-intro {
  text-align: center;
  margin-bottom: 50px;
}

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

.contact-info-card {
  background: var(--bg-white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-info-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 22px;
}

.contact-info-card a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-info-card a:hover {
  text-decoration: underline;
}

/* Form */
.form-container {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 5px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Messages de formulaire */
.form-message {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  animation: slideDown 0.3s ease-out;
}

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

.form-message.success {
  background-color: #d4edda;
  border: 2px solid #28a745;
  color: #155724;
}

.form-message.error {
  background-color: #f8d7da;
  border: 2px solid #dc3545;
  color: #721c24;
}

.form-message .message-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.form-message .message-content {
  flex: 1;
  line-height: 1.6;
  font-size: 15px;
}

.form-message.success .message-content {
  font-weight: 500;
}

/* Map */
.map-container {
  text-align: center;
}

.map-container h2 {
  margin-bottom: 30px;
  color: var(--primary-color);
}

.map-placeholder {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-placeholder iframe {
  width: 100%;
  border: none;
}

/* Social Links */
.social-section {
  text-align: center;
}

.social-section h2 {
  margin-bottom: 30px;
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.social-link:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-icon {
  font-size: 1.2em;
  line-height: 1;
}

/* Footer */
.main-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 20px;
}

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

.footer-column h4 {
  margin-bottom: 20px;
  font-size: 18px;
  color: #fff;
}

.footer-column p {
  opacity: 0.9;
  line-height: 1.8;
}

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

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

.footer-column ul li a {
  color: var(--footer-text);
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.footer-column ul li a:hover {
  opacity: 1;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .header-top .container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .header-top-left,
  .header-top-right {
    justify-content: center;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.active {
    max-height: 500px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    align-items: flex-start;
  }

  .main-nav a {
    width: 100%;
    padding: 10px 0;
  }

  .hero-section {
    padding: 60px 0;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .section-padding {
    padding: 50px 0;
  }

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

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

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

  .form-container {
    padding: 25px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .logo span {
    font-size: 16px;
  }

  .logo img {
    height: 35px;
  }

  .hero-section h1 {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 16px;
  }
}
