
/* ====== Navigation principale ====== */
.main-nav {
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  z-index: 1000;
}

.main-nav ul {
  list-style: none;
  display: flex;
  row-gap: 0rem;
  column-gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-nav .contact { 
  color: var(--accent-gold); 
}

.main-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.main-nav summary {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}

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

/* ====== Chevron ====== */
.chevron {
  border: solid var(--text-primary);
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.dropdown.active .chevron {
  transform: rotate(-135deg);
  border-color: var(--accent-nav);
}

/* ====== Sous-menus ====== */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  padding-top: 0;
  background: var(--bg-dropdown);
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-dropdown);
  flex-direction: column;
  min-width: 220px;
  z-index: 100;
  padding: 0.5rem 0;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--text-secondary);
  transition: background 0.3s, color 0.3s;
}

.dropdown-menu a:hover {
  background: rgba(131, 69, 181, 0.1);
  color: var(--accent-nav);
}

.dropdown:hover .dropdown-menu {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    display: inline-block;
    text-align: center;
  }

  .main-nav a {
    justify-content: center;
    width: 100%;
    display: inline-block;
    text-align: center;
  }

  .main-nav .text-gray-400 {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
  } 

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
  }

  .dropdown.active .dropdown-menu {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }
}

/* ====== Image shadow ====== */
.shadow-lg {
  box-shadow: var(--shadow-card);
}

/* ====== Base ====== */
html, body { 
  background: var(--bg-body);
  color: var(--text-secondary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

.chip { 
  background: var(--bg-chip); 
  border: 1px solid var(--border-main); 
}

.grad-text { 
  background: linear-gradient(135deg, var(--accent-red), var(--accent-gold)); 
  -webkit-background-clip: text; 
  background-clip: text; 
  color: transparent; 
}

.lien-page {
  color: var(--accent-gold);
}

/* ====== Image section widths ====== */
.image-section-250 { width: 250px; }
.image-section-240 { width: 240px; }
.image-section-230 { width: 230px; }
.image-section-220 { width: 220px; }
.image-section-210 { width: 210px; }
.image-section-200 { width: 200px; }
.image-section-190 { width: 190px; }
.image-section-180 { width: 180px; }
.image-section-170 { width: 170px; }
.image-section-160 { width: 160px; }
.image-section-150 { width: 150px; }
.image-section-140 { width: 140px; }
.image-section-130 { width: 130px; }
.image-section-120 { width: 120px; }
.image-section-110 { width: 110px; }
.image-section-100 { width: 100px; }
