:root {
  --bg: #f5f7fa;
  --text: #1f1f1f;
  --accent: #0077ff;
  --accent-hover: #005fcc;
  --soft-gray: #e0e6ed;
  --font: 'Inter', sans-serif;
}

body {
  margin: 0;
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: var(--soft-gray);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.branding {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  height: 50px;
}

.site-name {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--text);
}

/* MENU BURGER */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background: var(--text);
  margin: 4px 0;
  transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* NAVIGATION */
.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-menu ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.nav-menu a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* MOBILE MENU */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: var(--soft-gray);
    flex-direction: column;
    padding: 80px 30px;
    transition: right 0.4s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 20px;
  }

  .menu-toggle {
    display: flex;
  }
}

/* CONTENU PRINCIPAL */
.container {
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
}

h1 {
  font-size: 2em;
  color: var(--accent);
  margin-bottom: 30px;
}

section {
  margin-bottom: 60px;
}

h2 {
  font-size: 1.8em;
  color: var(--accent);
  margin-bottom: 15px;
}

ul {
  padding-left: 20px;
}

ul li {
  margin-bottom: 10px;
}

/* BOUTON CTA */
.cta {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  padding: 15px 20px;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s;
  text-decoration: none;
}

.cta:hover {
  background-color: var(--accent-hover);
}

/* FOOTER */
footer {
  background-color: var(--soft-gray);
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9em;
  color: #555;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}

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

/* MODALE FANCYBOX */
.fancybox__container {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

/* FORMULAIRE */
#contactForm {
  width: 90vw;
  max-width: 700px;
  margin: auto;
  padding: 40px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  font-family: var(--font);
  color: var(--text);
  position: relative;
}

#contactForm h2 {
  margin-top: 0;
  font-size: 1.6em;
  color: var(--accent);
  margin-bottom: 20px;
}

#contactForm form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#contactForm input,
#contactForm textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1em;
  transition: border-color 0.3s;
}

#contactForm input:focus,
#contactForm textarea:focus {
  border-color: var(--accent);
  outline: none;
}

#contactForm button {
  background-color: var(--accent);
  color: white;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

#contactForm button:hover {
  background-color: var(--accent-hover);
}

/* RESPONSIVE FORMULAIRE */
@media (max-width: 768px) {
  #contactForm {
    width: 95vw;
    padding: 30px 20px;
  }
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95em;
  margin-top: 10px;
}
.loader {
  margin: 15px auto;
  width: 30px;
  height: 30px;
  border: 4px solid var(--soft-gray);
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.checkbox-wrapper {
  margin: 15px 0;
}

.checkbox-wrapper label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95em;
  cursor: pointer;
  white-space: nowrap;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  margin: 0;
}
