@import "custom.css";
@import "navigation.css";
@import "hero.css";
@import "services.css";
@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&display=swap");

/* Variables CSS */
:root {
  --primary-color: #e74a3b; /* Rouge */
  --secondary-color: #b62418; /* Rouge foncé */
  --accent-color: #ffffff; /* Blanc */
  --dark-color: #000000; /* Noir */
  --light-color: #f8f9fc; /* Blanc cassé */
  --success-color: #1cc88a;
  --info-color: #36b9cc;
  --warning-color: #f6c23e;
  --danger-color: #e74a3b; /* Rouge */
  --body-color: #ffffff; /* Blanc */
  --text-color: #000000; /* Noir */
  --heading-color: #e74a3b; /* Rouge */
  --border-color: #e3e6f0;
  --shadow: 0 0.15rem 1.75rem 0 rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease-in-out;
  --container-width: 1140px;
  --header-height: 80px;
  --section-padding: 80px 0;
  --border-radius: 5px;
  --font-primary: "Barlow", sans-serif;
}

/* Reset et Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: none;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--body-color);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

button {
  cursor: pointer;
  background-color: var(--primary-color);
  color: var(--accent-color);
  border: none;
  transition: var(--transition);
}

button:hover {
  background-color: var(--secondary-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--heading-color);
}

p {
  margin-bottom: 1rem;
}

section {
  padding: var(--section-padding);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-header p {
  color: var(--dark-color);
  font-size: 1.1rem;
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  margin-right: 10px;
  margin-bottom: 10px;
}

/* Header */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: var(--shadow);
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  margin-right: 10px;
}

.logo h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.about-text h3 {
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-text {
  font-size: 0.9rem;
  color: var(--dark-color);
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-item {
  display: flex;
  margin-bottom: 30px;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 15px;
  width: 40px;
  height: 40px;
  background-color: rgba(78, 115, 223, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-item h3 {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.social-links {
  display: flex;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.contact-form {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

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

.form-group textarea {
  height: 150px;
  resize: none;
}

/* Styles pour la validation du formulaire de contact */
.form-group.valid input,
.form-group.valid textarea {
  border-color: #28a745;
  background-color: rgba(40, 167, 69, 0.05);
}

.form-group.invalid input,
.form-group.invalid textarea {
  border-color: #dc3545;
  background-color: rgba(220, 53, 69, 0.05);
}

.form-group.valid::after {
  content: "✓";
  color: #28a745;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.form-group.invalid::after {
  content: "✗";
  color: #dc3545;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

/* Footer */
#footer {
  background-color: var(--dark-color);
  color: var(--accent-color);
  padding: 70px 0 0;
}

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

.footer-logo img {
  height: 50px;
  margin-bottom: 20px;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links h3 {
  color: var(--accent-color);
  position: relative;
  display: inline-block;
  margin-bottom: 25px;
  padding-bottom: 15px;
}

.footer-links h3::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 0;
}

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

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-bottom {
  background-color: var(--dark-color);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary-color);
  color: var(--accent-color);
}

/* Media Queries */
@media screen and (max-width: 991px) {
  .container {
    max-width: 100%;
  }

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

  .about-image {
    order: 2;
  }

  .about-text {
    order: 1;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .section-header h2 {
    font-size: 2rem;
  }
}

@media screen and (max-width: 576px) {
  .about-stats {
    flex-direction: column;
  }

  .stat {
    margin-bottom: 20px;
  }

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