/*
Theme Name: BC Web Agence
Theme URI: https://example.com/bcwebagence
Author: BC Web Agence
Author URI: https://example.com
Description: Theme enfant WordPress base sur Twenty Twenty-Five pour demarrer un site sur une base propre et maintenable.
Template: twentytwentyfive
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bcwebagence
*/

@font-face {
  font-family: "DM Sans";
  src: url("../twentytwentythree/assets/fonts/dm-sans/DMSans-Regular.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../twentytwentythree/assets/fonts/dm-sans/DMSans-Bold.woff2")
    format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bcwa-shadow-soft: 0 24px 60px rgba(5, 16, 31, 0.14);
  --bcwa-shadow-glow:
    0 0 0 1px rgba(0, 229, 255, 0.2), 0 24px 80px rgba(21, 101, 192, 0.22);
  --bcwa-radius-large: 28px;
}

body {
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(
      circle at top right,
      rgba(0, 229, 255, 0.12),
      transparent 28%
    ),
    linear-gradient(180deg, #f8fbff 0%, #f4f9ff 100%);
}

.wp-site-blocks {
  min-height: 100vh;
}

.wp-block-button__link {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: var(--bcwa-shadow-glow);
}

.is-style-bcwa-surface {
  border-radius: var(--bcwa-radius-large);
  box-shadow: var(--bcwa-shadow-soft);
}

.bcwa-section-label {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.28);
  color: var(--wp--preset--color--structure);
}

.bcwa-section-label-light {
  background: rgba(21, 101, 192, 0.04);
  border-color: #91bcef;
  color: #0e3d6b;
}

.bcwa-hero-minimal {
  background: transparent;
  box-shadow: none;
}

.bcwa-hero-minimal h1 {
  margin: 20px 0 !important;
  letter-spacing: 0 !important;
  font-size: clamp(3.3rem, 8vw, 5.2rem) !important;
  color: var(--wp--preset--color--primary);
  text-wrap: balance;
}

.bcwa-hero-minimal p:not(.bcwa-section-label) {
  margin: 30px 0 !important;
  color: rgba(5, 16, 31, 0.82);
}

.bcwa-button-primary .wp-block-button__link {
  border-radius: 999px;
}

.bcwa-hero-shell {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at top left,
      rgba(0, 229, 255, 0.12),
      transparent 22%
    ),
    linear-gradient(
      160deg,
      rgba(5, 16, 31, 0.98) 0%,
      rgba(10, 30, 56, 0.98) 45%,
      rgba(14, 61, 107, 0.96) 100%
    );
  color: #fff;
}

.bcwa-hero-shell::after {
  content: "";
  position: absolute;
  inset: auto -120px -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.28), transparent 68%);
  pointer-events: none;
}

.bcwa-metric-card {
  backdrop-filter: blur(8px);
  background: rgba(244, 249, 255, 0.08);
  border: 1px solid rgba(168, 191, 216, 0.24);
  box-shadow: var(--bcwa-shadow-glow);
}

.bcwa-metric-value {
  font-family: "proxima-nova", "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.bcwa-metric-label {
  color: rgba(244, 249, 255, 0.82);
}

.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline .wp-element-button {
  border-color: rgba(244, 249, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-element-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.wp-block-site-title a,
.wp-block-navigation a {
  text-decoration: none;
}

.wp-block-navigation a:hover,
.wp-block-site-title a:hover {
  opacity: 0.82;
}

.wp-block-post-featured-image img,
.wp-block-image img {
  border-radius: 24px;
}

.bcwa-logo-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0.75rem 0;
}

.bcwa-logo-slider::before,
.bcwa-logo-slider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(24px, 6vw, 80px);
  z-index: 1;
  pointer-events: none;
}

.bcwa-logo-slider::before {
  left: 0;
  background: linear-gradient(90deg, #f4f9ff 0%, rgba(244, 249, 255, 0) 100%);
}

.bcwa-logo-slider::after {
  right: 0;
  background: linear-gradient(270deg, #f4f9ff 0%, rgba(244, 249, 255, 0) 100%);
}

.bcwa-logo-slider__track {
  display: flex;
  width: max-content;
  animation: bcwa-logo-marquee 26s linear infinite;
  will-change: transform;
}

.bcwa-logo-slider__group {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  /* padding-right: clamp(2.5rem, 6vw, 5.5rem); */
}

.bcwa-logo-slider__item {
  flex: 0 0 auto;
}

.bcwa-logo-slider__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
}

.bcwa-logo-slider__image {
  display: block;
  width: auto;
  max-width: 180px;
  height: clamp(28px, 4vw, 48px);
  object-fit: contain;
  border-radius: 0;
  filter: grayscale(100%);
  opacity: 0.82;
  transition:
    filter 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.bcwa-logo-slider__link:hover .bcwa-logo-slider__image,
.bcwa-logo-slider__link:focus-visible .bcwa-logo-slider__image {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-1px);
}

@keyframes bcwa-logo-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 781px) {
  .bcwa-hero-shell::after {
    width: 220px;
    height: 220px;
    right: -80px;
    bottom: -80px;
  }

  .bcwa-logo-slider__track {
    animation-duration: 20s;
  }

  .bcwa-logo-slider__image {
    max-width: 132px;
    height: 32px;
  }
}
