/* Variables */
:root {
  --primary-color: #ffcc00; /* Jaune vif comme dans le logo */
  --secondary-color: #222222; /* Noir */
  --accent-color: #f5f5f5; /* Gris très clair */
  --text-color: #333333;
  --light-text: #ffffff;
  --background-color: #ffffff;
  --header-height: 80px;
  --footer-height: 60px;
  --border-radius: 5px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

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

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 10px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

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

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

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

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

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  display: inline-block;
}

.section-title h2::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: var(--border-radius);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

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

.btn-primary:hover {
  background-color: var(--secondary-color);
  color: var(--light-text);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--light-text);
}

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

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--secondary-color);
}

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

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

.header.scrolled {
  height: 70px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

.logo img {
  height: 60px;
  transition: var(--transition);
}

.header.scrolled .logo img {
  height: 50px;
}

/* Navigation */
.nav {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 2rem;
}

.nav-link {
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile Menu */
.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 5px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  color: var(--light-text);
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/renovation-maison.jpg');
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 15px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--light-text);
}

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

.hero .highlight {
  color: var(--primary-color);
}

/* About Section */
.about-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 300px;
  padding-right: 30px;
}

.about-image {
  flex: 1;
  min-width: 300px;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--light-text);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 20px;
}

.service-content h3 {
  margin-bottom: 10px;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  cursor: pointer;
}

.project-image {
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: var(--light-text);
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.project-category {
  font-size: 0.9rem;
  color: var(--primary-color);
}

/* Testimonials Section */
.testimonials {
  background-color: var(--accent-color);
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-slide {
  display: none;
  text-align: center;
  padding: 20px;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-quote {
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 700;
  color: var(--secondary-color);
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  margin: 0 5px;
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dot.active {
  background-color: var(--primary-color);
}

/* Contact Section */
.contact-section {
  position: relative;
}

.contact-form-container {
  background-color: var(--light-text);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--box-shadow);
  max-width: 600px;
  margin: 0 auto;
}

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

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.25);
}

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

/* Footer */
.footer {
  background-color: var(--secondary-color);
  color: var(--light-text);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: 2rem;
}

.footer-title {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: 10px;
}

.footer-link a {
  color: var(--light-text);
}

.footer-link a:hover {
  color: var(--primary-color);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.footer-contact-icon {
  margin-right: 10px;
  color: var(--primary-color);
}

.footer-social {
  display: flex;
}

.social-icon {
  margin-right: 15px;
  font-size: 1.5rem;
}

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

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  max-width: 80%;
  max-height: 80%;
  position: relative;
}

.modal-image {
  max-width: 100%;
  max-height: 80vh;
}

.modal-close {
  position: absolute;
  top: -30px;
  right: 0;
  color: var(--light-text);
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

.modal-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.modal-prev,
.modal-next {
  color: var(--light-text);
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

/* Flash Messages */
.flash-messages {
  position: fixed;
  top: calc(var(--header-height) + 20px);
  right: 20px;
  z-index: 1500;
}

.flash-message {
  padding: 15px 25px;
  margin-bottom: 10px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  background-color: var(--light-text);
  border-left: 5px solid var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideIn 0.3s ease-out forwards;
}

.flash-message.error {
  border-left-color: #e74c3c;
}

.flash-message.success {
  border-left-color: #2ecc71;
}

.flash-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 15px;
}

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

/* Responsive */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .header {
    height: 70px;
  }
  
  .logo img {
    height: 50px;
  }
  
  .nav {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background-color: var(--light-text);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    clip-path: circle(0 at 100% 0);
    transition: all 0.5s ease-out;
  }
  
  .nav.active {
    clip-path: circle(150% at 100% 0);
  }
  
  .nav-list {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-item {
    margin: 15px 0;
  }
  
  .burger {
    display: block;
  }
  
  .burger.active div:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .burger.active div:nth-child(2) {
    opacity: 0;
  }
  
  .burger.active div:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  .hero {
    height: 80vh;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .about-text {
    padding-right: 0;
    margin-bottom: 30px;
  }
  
  .projects-grid,
  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .footer-column {
    min-width: 100%;
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 10px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .contact-form-container {
    padding: 30px 20px;
  }
  
  .modal-content {
    max-width: 95%;
  }
}