:root {
  --primary: #2B4C7E;
  --secondary: #567EBB;
  --accent: #88A0C9;
  --light: #F5F7FA;
  --text: #333333;
  --white: #FFFFFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  line-height: 1.6;
  background-color: var(--light);
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- Header / Nav ---------- */
.header {
  position: fixed;
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s;
  font-size: 1rem;
}

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

.nav-link.active {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.cta-button {
  background: var(--primary);
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  border: none;
  font-weight: 500;
  transition: all 0.3s;
  cursor: pointer;
  font-size: 1rem;
}

.cta-button:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

.cta-button.outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--primary);
}

.cta-button.outline:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ---------- Page headers ---------- */
.page-header {
  padding: 180px 2rem 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-family: 'Montserrat', sans-serif;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* ---------- Hero (home) ---------- */
.hero {
  padding: 180px 2rem 100px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  font-family: 'Montserrat', sans-serif;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btns .cta-button.outline {
  border-color: rgba(255,255,255,0.7);
  color: white;
}

.hero-btns .cta-button.outline:hover {
  background: white;
  color: var(--primary);
}

/* ---------- Section helpers ---------- */
.section {
  padding: 5rem 2rem;
}

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

.section-title h2 {
  font-size: 2.4rem;
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1rem;
}

.section-title p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Service cards (home) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.service-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1.5rem;
  fill: var(--primary);
}

.service-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-family: 'Montserrat', sans-serif;
}

.service-description {
  color: var(--text);
  margin-bottom: 1.5rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
}

.cta-band h2 {
  font-size: 2.4rem;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1rem;
}

.cta-band p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-band .cta-button {
  background: white;
  color: var(--primary);
}

.cta-band .cta-button:hover {
  background: var(--light);
  color: var(--primary);
}

/* ---------- Services page ---------- */
.services-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.service-section {
  margin-bottom: 4rem;
  background: white;
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

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

.service-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-icon-large {
  width: 60px;
  height: 60px;
  fill: var(--primary);
  flex-shrink: 0;
}

.service-title-large {
  font-size: 2rem;
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
}

.service-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  width: 24px;
  height: 24px;
  fill: var(--secondary);
  flex-shrink: 0;
  margin-top: 3px;
}

.service-cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* ---------- Expertise ---------- */
.expertise-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.expertise-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  position: relative;
  overflow: hidden;
}

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

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  transition: width 0.3s;
}

.expertise-card:hover::before {
  width: 8px;
}

.expertise-icon {
  width: 60px;
  height: 60px;
  fill: var(--primary);
  margin-bottom: 1.5rem;
}

.expertise-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-family: 'Montserrat', sans-serif;
}

.expertise-list {
  list-style: none;
  margin-top: 1rem;
}

.expertise-list li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.expertise-list li::before {
  content: '•';
  color: var(--secondary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* ---------- Equipe ---------- */
.team-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.team-member {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.team-member:hover {
  transform: translateY(-5px);
}

.member-image {
  width: 100%;
  height: 300px;
  background: var(--accent);
  position: relative;
  overflow: hidden;
}

.member-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.3s;
}

.team-member:hover .member-avatar {
  filter: grayscale(0%);
}

.member-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.member-info {
  padding: 1.5rem;
  text-align: center;
}

.member-name {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
}

.member-title {
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.member-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-links a {
  color: var(--accent);
  transition: color 0.3s;
}

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

.social-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ---------- Ressources ---------- */
.resources-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.search-container {
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
}

.search-box {
  width: 100%;
  max-width: 500px;
  padding: 1rem 1.5rem;
  border: 2px solid var(--accent);
  border-radius: 30px;
  font-size: 1rem;
  transition: all 0.3s;
  background: var(--white);
}

.search-box:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 76, 126, 0.1);
}

.resources-categories {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.category-button {
  padding: 0.8rem 1.5rem;
  background: var(--white);
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.category-button.active,
.category-button:hover {
  background: var(--primary);
  color: var(--white);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.resource-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.resource-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
}

.resource-icon {
  width: 60px;
  height: 60px;
  fill: var(--white);
}

.resource-content {
  padding: 1.5rem;
}

.resource-tag {
  background: var(--light);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.resource-title {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 1rem;
  font-weight: 600;
}

.resource-description {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.resource-link {
  color: var(--primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s;
}

.resource-link:hover {
  gap: 0.8rem;
}

/* ---------- Forms (contact / devis) ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-full {
  grid-column: 1 / -1;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--accent);
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s;
  background: var(--white);
  font-family: 'Inter', sans-serif;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 76, 126, 0.1);
}

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

.submit-button {
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  font-size: 1rem;
}

.submit-button:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

.form-success {
  text-align: center;
  padding: 3rem 2rem;
}

.form-success h2 {
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1rem;
}

/* ---------- Contact page ---------- */
.contact-container {
  max-width: 1200px;
  margin: -60px auto 4rem;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
}

.contact-info {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-block {
  margin-bottom: 2rem;
}

.info-block h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-block svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-container {
  margin-top: 4rem;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
}

/* ---------- Devis (quote wizard) ---------- */
.quote-container {
  max-width: 900px;
  margin: -60px auto 4rem;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.quote-form {
  background: var(--white);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
}

.quote-form h2 {
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1.5rem;
}

.services-grid.quote-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 0 0 2rem;
}

.service-option {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
  user-select: none;
}

.service-option:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.service-option.selected {
  border-color: var(--primary);
  background: rgba(43, 76, 126, 0.1);
}

.service-option h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--light);
  margin: 0 0 2rem;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--primary);
  width: 33.33%;
  border-radius: 2px;
  transition: width 0.3s;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

.step-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.step-button {
  padding: 1rem 2rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
}

.prev-button {
  background: var(--light);
  color: var(--text);
  border: none;
}

.next-button {
  background: var(--primary);
  color: white;
  border: none;
}

.next-button:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.9);
  padding: 4rem 2rem 0;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer h4 {
  color: white;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1.2rem;
}

.footer .logo {
  color: white;
  margin-bottom: 1rem;
}

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

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  opacity: 0.85;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-contact p {
  margin-bottom: 0.7rem;
  opacity: 0.85;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.5rem 0;
  text-align: center;
  opacity: 0.85;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
    z-index: 101;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 102;
  }

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

  .quote-container,
  .contact-container {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 140px 1.5rem 80px;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .page-header {
    padding: 140px 1.5rem 60px;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .services-grid.quote-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .service-header {
    align-items: flex-start;
    gap: 1rem;
  }

  .service-title-large {
    font-size: 1.5rem;
  }
}