/* ============================
   NOVABUILD - CSS STYLESHEET
   Basé sur les fondamentaux CSS
   ============================ */

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a1a2e;
  --accent: #e94560;
  --gold: #f5a623;
  --light: #f8f9fa;
  --white: #ffffff;
  --gray: #6c757d;
  --dark-gray: #343a40;
  --border: #dee2e6;
  --shadow: 0 4px 20px rgba(0,0,0,0.12);
  --radius: 8px;
  --font-heading: 'Georgia', serif;
  --font-body: 'Verdana', sans-serif;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--primary);
  background-color: var(--white);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
  text-decoration: underline;
}

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.4rem;
}

/* === LAYOUT === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

.section-title p {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin: 15px auto 0;
}

/* === GRID === */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* === HEADER & NAVIGATION === */
header {
  background-color: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--white);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
}

nav ul li a {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* === HERO SECTION === */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--primary);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.9) 0%, rgba(233,69,96,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  color: var(--white);
}

.hero-content h1 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-content p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 14px 35px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--accent);
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary);
  text-decoration: none;
}

.btn-dark {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-dark:hover {
  background-color: transparent;
  color: var(--primary);
  text-decoration: none;
}

/* === CARDS === */
.card {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 25px;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

/* === SERVICE CARDS === */
.service-card {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 35px 25px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.15);
}

.service-card .icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 20px;
}

/* === TESTIMONIALS === */
.testimonial-card {
  background-color: var(--light);
  border-radius: var(--radius);
  padding: 30px;
  border-left: 4px solid var(--accent);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--dark-gray);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}

.author-info strong {
  display: block;
  color: var(--primary);
}

.author-info span {
  font-size: 0.85rem;
  color: var(--gray);
}

/* === STATS === */
.stats-section {
  background-color: var(--primary);
  color: var(--white);
  padding: 60px 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--accent);
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  margin-top: 5px;
}

/* === TEAM === */
.team-card {
  text-align: center;
}

.team-card figure {
  margin: 0;
}

.team-card img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--accent);
  margin-bottom: 15px;
  transition: var(--transition);
}

.team-card:hover img {
  border-color: var(--gold);
  transform: scale(1.05);
}

.team-card figcaption {
  padding: 10px;
}

.team-card figcaption h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.team-card figcaption .role {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-card figcaption p {
  font-size: 0.9rem;
  margin-top: 10px;
}

/* === GALLERY === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(233,69,96,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--white);
  font-size: 2rem;
}

/* === DETAILS / SUMMARY === */
details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 15px;
  overflow: hidden;
}

summary {
  padding: 18px 20px;
  cursor: pointer;
  background-color: var(--light);
  font-weight: bold;
  font-size: 1rem;
  color: var(--primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: bold;
}

details[open] summary::after {
  content: '−';
}

details[open] summary {
  background-color: var(--primary);
  color: var(--white);
}

.details-content {
  padding: 20px;
  background-color: var(--white);
}

/* === PRICING TABLE === */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.pricing-table th,
.pricing-table td {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.pricing-table thead {
  background-color: var(--primary);
  color: var(--white);
}

.pricing-table thead th {
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.pricing-table tbody tr:hover {
  background-color: var(--light);
}

.pricing-table .highlight {
  background-color: rgba(233,69,96,0.08);
  font-weight: bold;
}

.pricing-table .price {
  color: var(--accent);
  font-weight: bold;
  font-size: 1.1rem;
}

.pricing-table tfoot {
  background-color: var(--light);
  font-weight: bold;
}

/* === CONTACT FORM === */
.contact-form-wrapper {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--primary);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--primary);
  background-color: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233,69,96,0.1);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: auto;
  accent-color: var(--accent);
}

.form-check label {
  font-weight: normal;
  margin-bottom: 0;
  cursor: pointer;
}

.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 5px;
}

/* === CONTACT INFO === */
.contact-info-card {
  background-color: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-info-card h3 {
  color: var(--white);
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.info-icon {
  font-size: 1.5rem;
  color: var(--accent);
  min-width: 30px;
}

.info-text strong {
  display: block;
  color: var(--white);
  margin-bottom: 3px;
}

.info-text span {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
}

/* === MAP === */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* === ABOUT PAGE === */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-intro img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.values-list {
  list-style: none;
  margin-left: 0;
}

.values-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.values-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
  font-size: 1.1rem;
}

/* === PAGE HERO (inner pages) === */
.page-hero {
  background-color: var(--primary);
  padding: 70px 0;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, var(--accent) 0%, transparent 70%);
  opacity: 0.15;
}

.page-hero h1 {
  color: var(--white);
  font-size: 3rem;
  position: relative;
}

.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  position: relative;
}

.breadcrumb {
  margin-top: 15px;
  position: relative;
}

.breadcrumb a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  color: var(--accent);
  font-size: 0.9rem;
}

/* === FOOTER === */
footer {
  background-color: var(--primary);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .logo {
  font-size: 1.6rem;
  display: inline-block;
  margin-bottom: 15px;
}

.footer-brand p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.7;
}

footer h4 {
  color: var(--white);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: none;
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-link {
  width: 38px;
  height: 38px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--accent);
  color: var(--white);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px;
  text-align: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--accent);
}

/* === BADGES === */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.badge-accent {
  background-color: var(--accent);
  color: var(--white);
}

.badge-gold {
  background-color: var(--gold);
  color: var(--primary);
}

/* === UTILITIES === */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-accent { color: var(--accent); }
.text-white  { color: var(--white); }
.text-gray   { color: var(--gray); }
.bg-light    { background-color: var(--light); }
.bg-primary  { background-color: var(--primary); }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .navbar {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  nav ul {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-content h1 { font-size: 2.2rem; }

  .grid-2,
  .grid-3,
  .grid-4,
  .gallery-grid,
  .about-intro,
  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section { padding: 50px 0; }
  .page-hero { padding: 50px 0; }
  .page-hero h1 { font-size: 2rem; }

  .hero-buttons { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 15px; }
  .contact-form-wrapper { padding: 25px; }
  .contact-info-card { padding: 25px; }
}