@import "tailwindcss";

/* Empêcher Elfsight d'hériter des polices personnalisées */
/* Police Puente Bold - CRITICAL - avec font-display optimal */
@font-face {
  font-family: 'Puente Bold';
  src: url('./assets/font/Puente Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap; /* Affiche le texte immédiatement avec une police de secours */
}

/* Police Neuropol - OPTIONAL si non critique */
@font-face {
  font-family: 'Neuropol';
  src: url('./assets/font/NeuropolXRg-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap; /* Affiche le texte immédiatement avec une police de secours */
}
@theme {
    --color-background:var(--background-color);
    --color-custom-text: var(--text-color);
    --color-bw-text: var(--text-bw);
    --color-fond-blur: var(--fond-blur);
    --color-infras: var(--fond-infras);
    --color-fond-zinc: var(--fond-zinc);
    --color-text-colored: var(--colored-text);
    --color-zinc-fond: var(--zinc-fond);
    --color-fond-module: var(--fond-module);
    --color-zinc-contact: var(--fond-contact);
    --color-fond-icon: var(--fond-icon);
    --color-fond-hover: var(--fond-hover);
    --color-back-icon:var(--back-icon);
    --color-dolibarr-color:var(--dolibarr-color);
}

.Puente-Bold {
  font-family: 'Puente Bold', 'Bebas Neue', 'Arial Black', sans-serif;
}

:root {
    --primary-color: #1a73e8;
    --secondary-color: #fbbc05;
    --background-color: #fffeef;
    --fond-blur: #ebceff;
    --text-color: #1a1a1a;
    --text-bw: #e2e2e2;
    --border-color: #e0e0e0;
    --fond-infras: #59168b;
    --fond-zinc: #f0f0f0;
    --zinc-fond: #fffeef;
    --colored-text: #4a1170;
    --fond-module: #ffffff;
    --fond-contact: #fffeef;
    --fond-icon:#ece7ca;
    --fond-hover:#5a0f94;
    --back-icon :#fffeef;
    --dolibarr-color:#263c5c;
}

.dark {
    --background-color: #020618;
    --fond-blur: #6e11b0;
    --text-color: #fefefe;
    --text-bw: #23262a;
    --border-color: #e0e0e0;
    --fond-infras: #f3f3f3;
    --fond-zinc: #27272a;
    --zinc-fond: #18181b;
    --colored-text: #ff7a1a;
    --fond-module: #364153;
    --fond-contact: #171717;
    --fond-icon:#322742;
    --fond-hover:#c44700;
    --back-icon :#59168b;
    --dolibarr-color:#263c5c;
}

body {
  font-family:'Century Gothic', sans-serif;
  width: 100dvw;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

@keyframes scroll-infinite {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-infinite-backward {
  100% { transform: translateX(-50%); }
  0% { transform: translateX(0); }
}

.animate-scroll-infinite {
  animation: scroll-infinite 50s linear infinite;
  width: max-content;
}

.animate-scroll-infinite-back {
    animation: scroll-infinite-backward 50s linear infinite reverse;
    width: max-content;
}

.bg_map_color {
  background-color: #242f3e;
}

.font-neuropol {
  font-family: 'Neuropol', 'Arial Black', sans-serif; /* Ajout de fallback */
  font-weight: 700; /* ✅ Correspond à @font-face */
  font-style: italic; /* ✅ Correspond au fichier woff2 */
}

.fade-mask {
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
}

.card-3d-wrapper {
    perspective: 1000px;
}

.card-3d {
    transform-style: preserve-3d;
    position: relative;
    transition: transform 0.6s;
}

.rotate-y-180 {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.card-back {
    transform: rotateY(180deg);
}

@keyframes wiggle {
    0%, 100% {
        transform: rotateZ(0deg);
    }
    15% {
        transform: rotateZ(-5deg);
    }
    30% {
        transform: rotateZ(5deg);
    }
    45% {
        transform: rotateZ(-4deg);
    }
    60% {
        transform: rotateZ(4deg);
    }
    75% {
        transform: rotateZ(-2deg);
    }
    90% {
        transform: rotateZ(2deg);
    }
}

.animate-wiggle {
    animation: wiggle 1s ease-in-out;
}

.bg-warm-50 {
  background-color: #F6F6F6;
}

.font-size-adjust {
    font-size-adjust: 0.6;
}

/* Optimisation LCP - prérendre le h1 */
.text-infras {
    color: var(--fond-infras);
}
@media (max-width: 768px) {
  [data-aos] {
    pointer-events: auto !important;
    opacity: 1 !important;
    transform: none !important;
  }
}