/* Animation du logo SVG Clos Canarelli */

.clos-canarelli-logo {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  z-index: 10;
  pointer-events: none;
}

.clos-canarelli-logo .svg-animated {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.clos-canarelli-logo svg {
  width: 100%;
  height: auto;
  max-width: 80%;
  max-height: 38vh;
  margin: 0 auto;
  display: block;
  fill: none;
}

/* Styles pour les chemins SVG */
.svg-path {
  fill: none;
  fill-rule: nonzero;
  stroke: #FCF3E3;
  stroke-width: 0;
  opacity: 0;
}

/* Les chemins avec stroke-width défini gardent leur stroke */
.svg-path[stroke-width] {
  fill: none !important;
  stroke: #FCF3E3;
}

/* Animation des chemins - tracé progressif */
.svg-path.animating {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  stroke-width: 1;
  fill: none;
  opacity: 1;
  animation: draw 2s ease-in-out forwards;
}

/* Animation finale - remplissage */
.svg-path.filled {
  animation: fill 0.5s ease-in-out forwards;
  animation-delay: 2s;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fill {
  from {
    fill: none;
    stroke-width: 1;
  }
  to {
    fill: #FCF3E3;
    stroke-width: 0;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .clos-canarelli-logo {
    max-width: 600px;
  }
}

@media (max-width: 767px) {
  .clos-canarelli-logo {
    max-width: 90%;
  }

  .clos-canarelli-logo svg {
    max-height: 30vh;
  }
}

@media (max-width: 575px) {
  .clos-canarelli-logo svg {
    max-height: 25vh;
  }
}
