/*
  Feuille de style principale pour le site « Rage de dents ».
  Palette de couleurs : rouge (#d32f2f), gris foncé (#111), gris clair (#f5f5f5) et blanc (#fff).
  Utilise la police Montserrat via Google Fonts.
*/

:root {
  --primary: #d32f2f;
  --primary-dark: #b71c1c;
  --dark: #111;
  --light: #f5f5f5;
  --white: #fff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header & Navigation */
header {
  background: var(--dark);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white);
}

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

.nav-list li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-list li a:hover {
  color: var(--primary);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

/* Hero section */
.hero {
  height: 100vh;
  background: url('../img/hero.png') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--white);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

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

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.primary-btn {
  background: var(--primary);
  color: var(--white);
  transition: background 0.3s;
}

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

/* Services section */
.services {
  padding: 100px 0;
  background: var(--light);
  text-align: center;
}

.services h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  flex: 1 1 250px;
  max-width: 300px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

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

.service-card i {
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.service-card p {
  font-size: 1rem;
  color: #555;
}

/* About section */
.about {
  padding: 100px 0;
  background: var(--white);
}

.about-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.about-img {
  flex: 1 1 300px;
  text-align: center;
}

.about-img img {
  width: 100%;
  max-width: 400px;
}

.about-text {
  flex: 2 1 400px;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #555;
}

/* Contact section */
.contact {
  padding: 100px 0;
  background: var(--light);
  text-align: center;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.contact p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #333;
}

.contact-info p {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  color: #333;
}

.contact-info i {
  margin-right: 0.5rem;
  color: var(--primary);
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 1rem 0;
}

.footer p {
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
  }
  .nav-list.open {
    max-height: 300px;
  }
  .menu-toggle {
    display: block;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .services-grid {
    gap: 1.5rem;
  }
  .service-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .about-flex {
    flex-direction: column;
  }
  .about-text {
    text-align: center;
  }

  /* Réorganisation des témoignages sur mobile */
  .testimonials-grid {
    flex-direction: column;
    gap: 1.5rem;
  }
  .testimonial-card {
    max-width: 100%;
  }
}

/* Video section */
.video-section {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.video-section .video-container {
  position: relative;
  width: 100%;
  /* Maintien d’un ratio 16:9 */
  padding-top: 56.25%;
}

.video-section iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Testimonials section */
.testimonials {
  padding: 100px 0;
  background: var(--white);
  text-align: center;
}

.testimonials h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.testimonial-card {
  background: var(--light);
  border-radius: 10px;
  padding: 2rem;
  max-width: 300px;
  flex: 1 1 250px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.testimonial-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.testimonial-card p {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 1rem;
  color: #555;
}

.testimonial-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
}