/* ============================================================
   TEEKILA — CSS custom (companion Tailwind CDN)
   Contient uniquement ce que Tailwind ne peut pas faire :
   animations custom, transitions mobile menu, accordéon FAQ
   ============================================================ */

/* ---- Typographie base ---- */
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  letter-spacing: -0.01em;
}
h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.02em;
}

/* ---- Mobile menu — transition hauteur ---- */
#navMobile {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
}
#navMobile.is-open {
  max-height: 520px;
  opacity: 1;
}

/* ---- Hamburger icon rotation ---- */
#navToggle svg {
  transition: transform 0.3s ease;
}
#navToggle.is-open svg {
  transform: rotate(90deg);
}

/* ---- Nav link underline animé ---- */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -3px;
  left: 0;
  background: linear-gradient(to right, #3b82f6, #8b5cf6);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ---- Card hover (translateY + ombre) ---- */
.animate-hover {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  backface-visibility: hidden;
}
.animate-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}
.animate-hover:hover .icon-container {
  animation: subtle-pulse 1.5s ease infinite;
  background: linear-gradient(to right, #3b82f6, #8b5cf6);
}
@keyframes subtle-pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ---- Bg gradient hover (cartes méthodologie) ---- */
.bg-gradient-hover {
  background-size: 200% 200%;
  background-position: 0% 0%;
  transition: background-position 0.6s ease, transform 0.4s ease;
}
.bg-gradient-hover:hover {
  background-position: 100% 100%;
  transform: translateY(-5px) scale(1.02);
}

/* ---- Texte gradient animé (hero) ---- */
@property --gc1 {
  syntax: "<color>";
  inherits: false;
  initial-value: hsl(98 100% 62%);
}
@property --gc2 {
  syntax: "<color>";
  inherits: false;
  initial-value: hsl(204 100% 59%);
}
@keyframes gradient-change {
  to {
    --gc1: hsl(210 100% 59%);
    --gc2: hsl(310 100% 59%);
  }
}
.colored {
  animation: gradient-change 2s linear infinite alternate;
  background: linear-gradient(to right in oklch, var(--gc1), var(--gc2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ---- Accordéon FAQ ---- */
.accordion-btn__icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.accordion-btn.is-open .accordion-btn__icon {
  transform: rotate(180deg);
}
.accordion-body {
  display: none;
}
.accordion-body.is-open {
  display: block;
}

/* ---- Timeline ---- */
.timeline-line {
  position: absolute;
  left: 1.1rem;
  top: 0.6rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
}

/* ---- Bandeau souverainete (collectivites) ---- */
.sovereignty-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(74, 222, 128, 0.2);
  background: linear-gradient(120deg, rgba(20, 83, 45, 0.2) 0%, rgba(30, 64, 175, 0.18) 100%);
  backdrop-filter: blur(10px);
}
.sovereignty-panel::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  top: -110px;
  right: -80px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, rgba(59, 130, 246, 0) 70%);
  pointer-events: none;
}
.sovereignty-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.8rem;
}
.sovereignty-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.95rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.sovereignty-item:hover {
  transform: translateY(-2px);
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
}
.sovereignty-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #bbf7d0;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.25), rgba(37, 99, 235, 0.2));
  border: 1px solid rgba(134, 239, 172, 0.2);
  margin-bottom: 0.7rem;
}
.sovereignty-item__title {
  color: #bbf7d0;
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.sovereignty-item__text {
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.45;
}
@media (min-width: 640px) {
  .sovereignty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .sovereignty-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---- Audit IA gratuit — indicateurs d'étapes ---- */
.audit-steps {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.audit-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

.audit-step__dot {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.audit-step__label {
  font-size: 0.875rem;
  line-height: 1.25;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.audit-step--pending {
  opacity: 0.55;
}
.audit-step--pending .audit-step__dot {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #9ca3af;
  background: transparent;
}
.audit-step--pending .audit-step__label {
  color: #9ca3af;
  font-weight: 400;
}

.audit-step--active {
  opacity: 1;
}
.audit-step--active .audit-step__dot {
  background: linear-gradient(to right, #3b82f6, #9333ea);
  color: #fff;
  border: none;
}
.audit-step--active .audit-step__label {
  color: #fff;
  font-weight: 500;
}

.audit-step--done {
  opacity: 1;
}
.audit-step--done .audit-step__dot {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #86efac;
}
.audit-step--done .audit-step__label {
  color: #9ca3af;
  font-weight: 400;
}

.audit-step__line {
  flex: 1;
  min-width: 1.5rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.3s ease;
}
.audit-step__line--done {
  background: linear-gradient(to right, rgba(34, 197, 94, 0.55), rgba(59, 130, 246, 0.55));
}

/* ---- Audit IA gratuit — message final ---- */
.audit-done {
  text-align: center;
  padding: 1.5rem 0.5rem 0.5rem;
  animation: audit-done-in 0.45s ease;
}
@keyframes audit-done-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.audit-done__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.audit-done__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
.audit-done__text {
  color: #d1d5db;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}
.audit-done__text strong {
  color: #86efac;
  font-weight: 600;
}
.audit-done__sub {
  color: #9ca3af;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.audit-done__cta {
  display: inline-block;
  background: linear-gradient(to right, #3b82f6, #9333ea);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 400;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  transition: opacity 0.2s ease;
}
.audit-done__cta:hover {
  opacity: 0.9;
}

@media (max-width: 400px) {
  .audit-step__label {
    font-size: 0.75rem;
  }
}
