/* ============================================
   Components: Hero, Cards, Forms, Stats, etc.
   ============================================ */

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  padding: 6rem 0 4rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15,30,77,.92) 0%, rgba(30,58,138,.78) 50%, rgba(245,158,11,.55) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-content { animation: fadeUp .9s ease both; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(251,191,36,.18);
  color: var(--gold);
  padding: .5rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1.5px solid rgba(251,191,36,.45);
  animation: pulse 2.5s ease-in-out infinite;
}
.hero-badge svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 .accent {
  background: linear-gradient(135deg, var(--gold), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(255,255,255,.9); margin-bottom: 2.25rem; max-width: 600px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  max-width: 600px;
}
.stat {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.12);
  text-align: center;
}
.stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat-label { font-size: .8rem; color: rgba(255,255,255,.85); margin-top: .35rem; text-transform: uppercase; letter-spacing: 1px; }

/* Hero floating decorations (logo theme) */
.hero-deco {
  position: relative;
  height: 100%;
  min-height: 400px;
  animation: fadeIn 1.2s ease both;
}
.deco-orb {
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--secondary), transparent 70%);
  filter: blur(20px);
  opacity: .5;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: float 6s ease-in-out infinite;
}
.deco-icon {
  position: absolute;
  background: rgba(255,255,255,.95);
  width: 76px; height: 76px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  box-shadow: var(--shadow-xl);
  animation: float 4s ease-in-out infinite;
}
.deco-icon svg { width: 38px; height: 38px; }
.deco-icon.i1 { top: 10%; left: 20%; }
.deco-icon.i2 { top: 30%; right: 15%; animation-delay: 1s; }
.deco-icon.i3 { bottom: 25%; left: 10%; animation-delay: 2s; }
.deco-icon.i4 { bottom: 10%; right: 25%; animation-delay: 1.5s; background: var(--gradient-cta); color: var(--white); }
.deco-ring {
  position: absolute;
  inset: 10%;
  border: 3px dashed rgba(251,191,36,.5);
  border-radius: 50%;
  animation: spinSlow 30s linear infinite;
}

/* ===== FEATURES (3 colonnes intro) ===== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.feature {
  background: var(--white);
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-cta);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 72px; height: 72px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, rgba(30,58,138,.1), rgba(245,158,11,.1));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1.8rem;
  transition: var(--transition);
}
.feature-icon svg {
  width: 34px;
  height: 34px;
}
.feature:hover .feature-icon { background: var(--gradient-cta); color: var(--white); transform: rotateY(180deg); }
.feature h3 { margin-bottom: .65rem; }

/* ===== SERVICES GRID ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.75rem; }
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-100);
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-xl); }
.service-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card:hover .service-img img { transform: scale(1.08); }
.service-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15,23,42,.5) 100%);
}
.service-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--gradient-cta);
  color: var(--white);
  padding: .35rem .85rem;
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
}
.service-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.service-body h3 { margin-bottom: .65rem; }
.service-body p { flex: 1; font-size: .95rem; }
.service-link {
  margin-top: 1.25rem;
  color: var(--primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .9rem;
  transition: var(--transition);
}
.service-link::after { content: '→'; transition: var(--transition); }
.service-link:hover { color: var(--secondary-dark); }
.service-link:hover::after { transform: translateX(5px); }

/* ===== PRODUCT CARDS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--secondary); }
.product-img {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.product-img img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: none;
  transform: none;
}
.product-card:hover .product-img img { transform: none; }
.product-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.product-body h4 { font-size: 1.05rem; margin-bottom: .35rem; color: var(--dark); font-family: var(--font-heading); font-weight: 700; }
.product-body p { font-size: .85rem; color: var(--gray-500); }
.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .4rem;
  margin-bottom: .9rem;
}
.spec-item {
  display: inline-flex;
  align-items: center;
  background: #edf0f4;
  color: var(--dark);
  border-radius: 8px;
  padding: .38rem .62rem;
  font-size: .82rem;
  font-weight: 700;
}
.spec-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  margin-right: .42rem;
}
.product-features {
  list-style: none;
  margin: .25rem 0 1rem;
  padding: 0;
  display: grid;
  gap: .45rem;
}
.product-features li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--gray-600);
  font-size: .95rem;
  line-height: 1.45;
}
.product-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: .02rem;
  color: var(--secondary);
  font-weight: 800;
}
.product-quote-btn {
  margin-top: auto;
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  padding: .82rem 1rem;
  font-weight: 800;
  letter-spacing: .3px;
  font-size: .95rem;
  transition: var(--transition);
}
.product-quote-btn:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}
.product-badge {
  position: absolute;
  top: .85rem; right: .85rem;
  background: var(--white);
  color: var(--primary);
  padding: .3rem .7rem;
  border-radius: var(--radius-full);
  font-size: .7rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}
.products-subtitle {
  grid-column: 1 / -1;
  margin-top: .25rem;
  margin-bottom: .35rem;
  padding: .6rem 0 .35rem;
  border-bottom: 1px solid var(--gray-200);
  text-align: center;
}
.products-subtitle h3 {
  margin: 0 0 .25rem;
  color: var(--secondary);
  font-size: clamp(1.35rem, 2.1vw, 2rem);
}
.products-subtitle p {
  margin: 0;
  color: var(--gray-500);
  font-size: .98rem;
}

/* Accessories: compact cards, 6 items per row */
.accessory-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .8rem;
}
.accessory-grid .product-card {
  border-radius: var(--radius-md);
}
.accessory-grid .product-img {
  aspect-ratio: 1 / 1;
  background: var(--white);
}
.accessory-grid .product-img img {
  padding: .35rem;
}
.accessory-grid .product-body {
  padding: .55rem .55rem .7rem;
}
.accessory-grid .product-body h4 {
  font-size: .76rem;
  margin: 0 0 .5rem;
  text-align: center;
  line-height: 1.3;
}
.accessory-grid .product-quote-btn {
  margin-top: auto;
  padding: .5rem .45rem;
  font-size: .68rem;
  border-radius: 7px;
}
.accessory-grid .product-badge {
  top: .4rem;
  right: .4rem;
  font-size: .62rem;
  padding: .22rem .45rem;
}

/* Keep coffrage accessories centered as a block */
.accessory-grid--coffrage {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 980px;
  margin-inline: auto;
}

/* Oil section: single card sized like others */
#huile .products-grid {
  grid-template-columns: minmax(280px, 380px);
  justify-content: center;
}
#dattes .products-grid {
  grid-template-columns: minmax(280px, 380px);
  justify-content: center;
}
#huile .product-card {
  max-width: 380px;
  width: 100%;
  margin-inline: auto;
}
#dattes .product-card {
  max-width: 380px;
  width: 100%;
  margin-inline: auto;
}

/* Oil image slideshow transition */
.oil-rotating-img,
.dattes-rotating-img {
  transition: opacity .35s ease;
}
.oil-rotating-img.is-fading,
.dattes-rotating-img.is-fading {
  opacity: .35;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(251,191,36,.4), transparent 70%);
  border-radius: 50%;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(245,158,11,.3), transparent 70%);
  border-radius: 50%;
}
.cta-banner > * { position: relative; z-index: 2; }
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,.9); max-width: 600px; margin: 0 auto 2rem; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  max-width: 860px;
  margin: 0 auto 1.8rem;
}
.cta-contact-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 58px;
  padding: .9rem 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  transition: var(--transition);
}
.cta-contact-item:hover {
  background: rgba(255,255,255,.18);
  transform: translateY(-2px);
}
.cta-contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cta-contact-icon .icon-svg {
  width: 18px;
  height: 18px;
}
.cta-contact-text {
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}

/* ===== STATS BAND ===== */
.stats-band {
  background: var(--gradient-hero);
  padding: 3.5rem 0;
  color: var(--white);
}
.stats-band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stats-band .stat-num { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.stats-band .stat-label { color: rgba(255,255,255,.85); }

/* ===== FORMS ===== */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: .35rem; }
.form-field label { font-size: .85rem; font-weight: 600; color: var(--gray-700); }
.form-field input,
.form-field textarea,
.form-field select {
  padding: .9rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: var(--transition);
  font-size: .95rem;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(245,158,11,.15);
}
.form-field textarea { min-height: 140px; resize: vertical; }

/* ===== ABOUT TIMELINE / VALUES ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img { position: relative; }
.about-img img { width: 100%; border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); }
.about-img::before {
  content: '';
  position: absolute;
  top: -20px; left: -20px;
  width: 100%; height: 100%;
  background: var(--gradient-cta);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: .3;
}
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.value {
  display: flex; gap: 1rem;
  padding: 1.25rem;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--secondary);
}
.value-icon {
  width: 44px; height: 44px;
  background: var(--gradient-cta);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
}
.value-icon svg {
  width: 22px;
  height: 22px;
}
.value h4 { font-size: 1rem; margin-bottom: .25rem; }
.value p { font-size: .85rem; }

/* ===== CATEGORY SECTION (BTP) ===== */
.category {
  padding: 5rem 0;
  position: relative;
}
.category:nth-child(even) { background: var(--gray-50); }
.category-head { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2.5rem; }
.category-num {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.category-title h2 { margin-bottom: .25rem; }
.category-title p { color: var(--gray-500); font-size: 1.05rem; }

/* ===== QUICK NAV (Sticky) ===== */
.quick-nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: var(--nav-h);
  z-index: 99;
  box-shadow: var(--shadow-sm);
}
.quick-nav-inner {
  display: flex;
  gap: .35rem;
  padding: 1rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.quick-nav-inner::-webkit-scrollbar { display: none; }
.quick-nav a {
  padding: .55rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
  transition: var(--transition);
  border: 1.5px solid transparent;
}
.quick-nav a:hover { color: var(--primary); border-color: var(--gray-300); }
.quick-nav a.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Products page quick nav spacing */
.products-filter-nav .quick-nav-inner { justify-content: flex-start; }
/* ===== PARTNERS ===== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}
.partner {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 2rem 1rem;
  text-align: center;
  transition: var(--transition);
  font-weight: 700;
  color: var(--gray-700);
  font-size: 1.1rem;
}
.partner:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); color: var(--primary); border-color: var(--secondary); }

/* ===== CONTACT INFO ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.contact-info { display: grid; gap: 1.25rem; }
.contact-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow-md); border-color: var(--secondary); }
.contact-card-icon {
  width: 48px; height: 48px;
  background: var(--gradient-cta);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
}
.contact-card-icon svg {
  width: 24px;
  height: 24px;
}
.contact-card h4 { font-size: 1rem; margin-bottom: .25rem; }
.contact-card p, .contact-card a { font-size: .92rem; color: var(--gray-700); }
.contact-form-wrap {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}
.map-wrap { margin-top: 2rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ===== RESPONSIVE COMPONENTS ===== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .products-filter-nav .quick-nav-inner { justify-content: flex-start; }
  .products-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .accessory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
  .accessory-grid--coffrage { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 100%; }
  #huile .products-grid { grid-template-columns: minmax(240px, 340px); }
  #dattes .products-grid { grid-template-columns: minmax(240px, 340px); }
  .hero-deco { display: none; }
  .features { grid-template-columns: 1fr; }
  .stats-band-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 3rem 1.5rem; }
  .cta-contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .category-head { flex-direction: column; align-items: flex-start; gap: .5rem; text-align: left; }
  .category-num { font-size: 3rem; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .stats-band-grid { grid-template-columns: 1fr; }
  .accessory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .accessory-grid--coffrage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-form-wrap { padding: 1.5rem; }
  .cta-contact-item { min-height: 52px; padding: .75rem .85rem; }
  .cta-contact-text { font-size: .92rem; }
}
