/* MATELASSAGE FAÇON - Styles Principaux */
:root {
  --primary-color: #0f4c81; /* Bleu professionnel */
  --secondary-color: #e8e8e8; /* Gris clair pour les zones neutres */
  --accent-color: #d4af37; /* Doré pour les accents et call-to-actions */
  --text-color: #333333;
  --light-color: #ffffff;
  --transition: all 0.3s ease;
  --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --border-radius: 5px;
  --font-main: 'Montserrat', sans-serif;
  --font-title: 'Playfair Display', serif;
}

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

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  margin-bottom: 2rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--primary-color);
}

h1 {
  font-size: 4.2rem;
  margin-bottom: 3rem;
}

h2 {
  font-size: 3.6rem;
}

h3 {
  font-size: 2.8rem;
}

p {
  margin-bottom: 1.6rem;
}

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

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

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--light-color);
  box-shadow: var(--box-shadow);
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
}

.header.scrolled {
  padding: 1rem 0;
}

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

.logo {
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo img {
  height: 6rem;
}

/* Navigation */
.nav-menu {
  display: flex;
  list-style: none;
}

.nav-link {
  padding: 1rem 1.5rem;
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2.4rem;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  height: 80vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 8rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--light-color);
  max-width: 60%;
}

.hero h1 {
  color: var(--light-color);
  margin-bottom: 2rem;
  font-size: 5rem;
}

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

.btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
}

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

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

.btn-outline {
  border: 2px solid var(--accent-color);
  color: var(--light-color);
}

.btn-outline:hover {
  background-color: var(--accent-color);
  color: var(--light-color);
}

/* Section styling */
.section {
  padding: 8rem 0;
}

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

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

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 8rem;
  height: 3px;
  background-color: var(--accent-color);
}

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

.service-card {
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  background-color: var(--light-color);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 4rem;
  color: var(--accent-color);
  margin-bottom: 2rem;
}

.service-title {
  margin-bottom: 1.5rem;
}

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

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

.footer-column h3 {
  color: var(--light-color);
  margin-bottom: 2rem;
  font-size: 2.2rem;
}

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

.footer-link {
  margin-bottom: 1rem;
}

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

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

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

/* Responsive */
@media (max-width: 992px) {
  html {
    font-size: 60%;
  }
  
  .hero-content {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 58%;
  }
  
  .nav-menu {
    position: fixed;
    top: 8rem;
    left: 0;
    width: 100%;
    height: calc(100vh - 8rem);
    background-color: var(--light-color);
    flex-direction: column;
    align-items: center;
    padding-top: 4rem;
    clip-path: circle(0% at top right);
    transition: clip-path 0.5s ease-in-out;
  }
  
  .nav-menu.active {
    clip-path: circle(150% at top right);
  }
  
  .nav-item {
    margin: 1.5rem 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  
  .section {
    padding: 6rem 0;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 55%;
  }
  
  h1 {
    font-size: 3.6rem;
  }
  
  h2 {
    font-size: 3rem;
  }
  
  .hero {
    height: 70vh;
  }
}

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

.fadeIn {
  animation: fadeIn 1s ease forwards;
}

/* Grid and layout utilities */
.grid {
  display: grid;
  gap: 3rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Custom elements for secteurs */
.secteur-card {
  position: relative;
  height: 300px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

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

.secteur-card:hover img {
  transform: scale(1.05);
}

.secteur-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: var(--light-color);
  transition: var(--transition);
}

.secteur-card:hover .secteur-content {
  background: linear-gradient(to top, rgba(15, 76, 129, 0.9), transparent);
}

/* Testimonials */
.testimonial {
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  background-color: var(--light-color);
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 2rem;
  left: 2rem;
  font-size: 8rem;
  font-family: var(--font-title);
  color: rgba(0, 0, 0, 0.05);
  line-height: 0.5;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 2rem;
}

.testimonial-author img {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  margin-right: 1.5rem;
}

.author-name {
  font-weight: 600;
}

.author-title {
  font-size: 1.4rem;
  color: #777;
}

/* Contact Form */
.contact-form {
  display: grid;
  gap: 2rem;
}

.form-group {
  position: relative;
}

.form-control {
  width: 100%;
  padding: 1.5rem 2rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: var(--font-main);
  font-size: 1.6rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-label {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  color: #777;
  transition: var(--transition);
  pointer-events: none;
}

.form-control:focus + .form-label,
.form-control:not(:placeholder-shown) + .form-label {
  top: -1.2rem;
  left: 1rem;
  font-size: 1.2rem;
  background-color: var(--light-color);
  padding: 0 0.5rem;
  color: var(--primary-color);
}

textarea.form-control {
  resize: vertical;
  min-height: 15rem;
}

/* Animations for elements */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
