/*
Theme Name: Tech AI SaaS (Tailwind v4)
Theme URI: https://example.com/tech-ai-saas
Author: Fred Nax
Author URI: https://www.naxialis.com
Description: Thème WordPress moderne secteur Tech/IA/SaaS avec Tailwind CSS v4 (build local), Dark Mode, Glassmorphism et Minimalisme.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: tech-ai-saas
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap');

body {
  font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4 {
  font-family: 'Sora', sans-serif;
  line-height: normal !important;
}

#site-header {
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    backdrop-filter 0.25s ease,
    padding 0.25s ease;
}

/* Mode clair - scroll */
#site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Mode sombre - état normal */
.dark #site-header {
  border-bottom-color: transparent;
}

/* Mode sombre - scroll */
.dark #site-header.is-scrolled {
  background: rgba(2, 6, 23, 0.82); /* slate-950 transparent */
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.75); /* slate-700 */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

 .hero-noise {
      background:
        radial-gradient(circle at top right, rgba(78,175,216,0.12), transparent 28%),
        radial-gradient(circle at bottom left, rgba(78,175,216,0.08), transparent 30%),
        linear-gradient(to right, rgba(148,163,184,0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148,163,184,0.08) 1px, transparent 1px);
      background-size: auto, auto, 42px 42px, 42px 42px;
    }

    .typing-word {
      color: #1BCBCC;
      position: relative;
      display: inline-block;
      min-width: 220px;
      white-space: nowrap;
    }

    .typing-word::after {
      content: "";
      display: inline-block;
      width: 3px;
      height: 0.9em;
      margin-left: 8px;
      background: #1BCBCC;
      vertical-align: -0.08em;
      animation: blink 0.9s infinite;
    }

    @keyframes blink {
      0%, 49% { opacity: 1; }
      50%, 100% { opacity: 0; }
    }

    .anim {
  animation-duration: var(--a-dur, 700ms);
  animation-delay: var(--a-delay, 0ms);
  animation-timing-function: var(--a-ease, ease);
  animation-iteration-count: var(--a-iter, 1);
  animation-fill-mode: var(--a-fill, both);
}

.anim-fade {
  animation-name: fade;
}

.anim-fade-down {
  animation-name: fade-down;
}

.anim-fade-up {
  animation-name: fade-up;
}

.anim-fade-left {
  animation-name: fade-left;
}

.anim-fade-right {
  animation-name: fade-right;
}

.anim-wiggle {
  animation-name: wiggle;
}

.anim-wiggle-more {
  animation-name: wiggle-more;
}

.anim-shake {
  animation-name: shake;
}

.anim-jump {
  animation-name: jump;
}

.anim-jump-in {
  animation-name: jump-in;
}

.anim-jump-out {
  animation-name: jump-out;
}

.anim-rotate-x {
  animation-name: rotate-x;
  transform-origin: center;
  transform-style: preserve-3d;
}

.anim-rotate-y {
  animation-name: rotate-y;
  transform-origin: center;
  transform-style: preserve-3d;
}

.anim-flip-up {
  animation-name: flip-up;
  transform-origin: center top;
  transform-style: preserve-3d;
}

.anim-flip-down {
  animation-name: flip-down;
  transform-origin: center bottom;
  transform-style: preserve-3d;
}

.anim-pulse-soft {
  animation-name: pulse-soft;
}

.anim-ping-soft {
  animation-name: ping-soft;
}

#contact ol li { color: #fff !important;}
.cf7-input,
.cf7-textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.5;
  color: #0f172a;
  transition: all 0.25s ease;
  outline: none;
}

.cf7-input:focus,
.cf7-textarea:focus {
  border-color: #1BCBCC;
  box-shadow: 0 0 0 4px rgba(27, 203, 204, 0.12);
}

.cf7-textarea {
  min-height: 180px;
  resize: vertical;
}

.cf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  background: #1BCBCC;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 28px;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cf7-submit:hover {
  opacity: 0.92;
}

.cf7-submit:active {
  transform: translateY(1px);
}

.wpcf7 form .wpcf7-not-valid-tip {
  margin-top: 8px;
  font-size: 13px;
}

.wpcf7 form .wpcf7-response-output {
  margin: 24px 0 0;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 14px;
}

.wpcf7-spinner {
  margin-top: 12px;
}

.service-hero-card {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease;
  will-change: transform, opacity;
}

.service-hero-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-hero-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.dark .service-hero-card:hover {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.service-hero-card--1 {
  transition-delay: 0s;
}

.service-hero-card--2 {
  transition-delay: 0.08s;
}

.service-hero-card--3 {
  transition-delay: 0.16s;
}

.service-hero-card--4 {
  transition-delay: 0.24s;
}

.widget-title {
  font-size: 16px;
}
.widget { font-size: 15px;}

/* Liens des widgets footer */
.site-footer .widget a,
.site-footer .wp-block-navigation-item__content {
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer .widget a:hover,
.site-footer .wp-block-navigation-item__content:hover {
  color: #67e8f9;
}

/* Espacement des listes */
.site-footer .widget ul,
.site-footer .wp-block-navigation__container {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}


/* Titres des widgets footer */
.site-footer .widget-title,
.site-footer h2,
.site-footer h3,
.site-footer .wp-block-heading {
  position: relative;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.site-footer .widget-title::after,
.site-footer h2::after,
.site-footer h3::after,
.site-footer .wp-block-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.5rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, rgba(34, 211, 238, 0));
}


@media (prefers-reduced-motion: reduce) {
  .service-hero-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .service-hero-card:hover {
    transform: none;
  }
}

/* Bloc code Gutenberg */
.prose-content .wp-block-code {
  position: relative;
  margin: 2rem 0;
  padding: 1.5rem;
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.5rem;
  background: #020817;
  color: #e5e7eb;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.prose-content .wp-block-code code {
  display: block;
   background: transparent !important;
  min-width: max-content;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.8;
  color: inherit;
  white-space: pre;
}

/* Petit label en haut */
.prose-content .wp-block-code::before {
  content: "CODE";
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #67e8f9;
}

/* Scrollbar */
.prose-content .wp-block-code::-webkit-scrollbar {
  height: 8px;
}

.prose-content .wp-block-code::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.35);
}