/* ================================================
   BRICOPLAN - Feuille de style principale
   Couleurs principales : Bleu industriel #1B4F9B, Blanc, Gris clair
   Bootstrap 5 + CSS custom
   ================================================ */

/* ---- Variables CSS globales ---- */
:root {
  --primary:       #1B4F9B;   /* Bleu BRICOPLAN */
  --primary-dark:  #133a74;
  --primary-light: #2e6ac4;
  --accent:        #f4a820;   /* Orange accent */
  --white:         #ffffff;
  --light-bg:      #f4f6f9;
  --dark:          #1a1a2e;
  --text-muted:    #6c757d;
  --border:        #e0e6f0;
  --shadow:        0 4px 24px rgba(27,79,155,0.10);
  --radius:        12px;
  --transition:    all 0.35s cubic-bezier(0.4,0,0.2,1);
  --font-heading:  'Barlow Condensed', sans-serif;
  --font-body:     'Inter', sans-serif;
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.5px;
}

a { text-decoration: none; color: inherit; }

/* ================================================
   NAVBAR
   ================================================ */
#mainNav {
  padding: 14px 0;
  transition: var(--transition);
  z-index: 1050;
}

/* Navbar réduite au scroll */
#mainNav.scrolled {
  padding: 8px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.12) !important;
}

.brand-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: 1px;
}

.brand-logo span {
  color: var(--primary);
}

.nav-link {
  font-weight: 500;
  color: var(--dark) !important;
  padding: 6px 12px !important;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}

/* Soulignement animé au hover */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.nav-link:hover {
  color: var(--primary) !important;
  background: rgba(27,79,155,0.06);
}

.btn-rdv {
  background: var(--primary);
  border: none;
  color: var(--white) !important;
  border-radius: 8px;
  font-weight: 600;
  padding: 8px 20px !important;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(27,79,155,0.3);
}

.btn-rdv:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,79,155,0.4);
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Fond mock (couleur industrielle) — remplacé par votre image */
.hero-bg-mock {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d2645 0%, #1B4F9B 50%, #1e3a6e 100%);
}

/* Quand vous insérez l'image de fond */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay sombre sur le fond */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 55, 0.65);
  z-index: 1;
}

.hero-bg-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.badge-hero {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  /* Animation d'entrée */
  animation: slideInDown 0.8s ease forwards;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  /* Animation d'entrée décalée */
  animation: slideInUp 0.9s ease 0.2s both;
}

.text-accent { color: var(--accent); }

.hero-subtitle {
  font-size: 1rem;
  opacity: 0.85;
  animation: slideInUp 0.9s ease 0.4s both;
}

.hero-content .d-flex {
  animation: slideInUp 0.9s ease 0.6s both;
}

/* Indicateur de scroll animé */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-dot {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  position: relative;
}

.scroll-dot::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scrollBounce 1.5s infinite;
}

/* ================================================
   DOMAINES D'EXPERTISE
   ================================================ */
.domains-section {
  border-bottom: 1px solid var(--border);
}

.domain-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: default;
  background: var(--white);
}

.domain-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.domain-icon {
  font-size: 2rem;
  display: block;
}

.domain-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
}

/* ================================================
   BANDE PARTENAIRES
   ================================================ */
.partners-band {
  background: var(--primary);
}

.partner-logo-text {
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  transition: var(--transition);
}

.partner-logo-text:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.letter-spacing-2 { letter-spacing: 2px; }

/* ================================================
   SECTION HEADERS RÉUTILISABLES
   ================================================ */
.section-tag {
  display: inline-block;
  background: rgba(27,79,155,0.1);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ================================================
   PRODUITS
   ================================================ */
.product-img-placeholder {
  height: 200px;
  background: var(--light-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
}

.product-img-placeholder i {
  font-size: 3rem;
  opacity: 0.4;
}

.product-card {
  border-radius: var(--radius) !important;
  overflow: hidden;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(27,79,155,0.15) !important;
}

.product-category {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-desc {
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ================================================
   SERVICES (page accueil)
   ================================================ */
.service-card-home {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  transition: var(--transition);
}

.service-card-home:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-card-blue {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff;
}

.service-icon {
  font-size: 2.2rem;
  color: var(--primary);
}

.service-card-blue .service-icon {
  color: #fff;
}

.btn-link-primary {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  transition: var(--transition);
}

.btn-link-primary:hover { color: var(--primary-dark); gap: 8px; }

.btn-link-white {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  transition: var(--transition);
}

.btn-link-white:hover { color: #fff; gap: 8px; }

/* ================================================
   STATISTIQUES
   ================================================ */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

/* Motif décoratif en arrière-plan des stats */
.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
}

.stat-number::after {
  content: '+';
  font-size: 0.6em;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 6px;
  font-weight: 500;
}

/* ================================================
   CTA SECTION
   ================================================ */
.cta-section {
  position: relative;
}

/* ================================================
   FOOTER
   ================================================ */
.main-footer {
  background: #0f1e3680;
  color: rgba(255,255,255,0.7);
}

.footer-brand {
  color: #fff !important;
}

.footer-heading {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li, .footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  padding: 3px 0;
  display: block;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 6px;
}

/* ================================================
   PAGE PRODUITS - SIDEBAR CATEGORIES
   ================================================ */
.categories-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
}

.cat-item:hover, .cat-item.active {
  background: var(--primary);
  color: #fff;
}

.cat-item i { font-size: 1rem; }

/* ================================================
   FORMULAIRE RENDEZ-VOUS
   ================================================ */
.rdv-form-section {
  background: var(--light-bg);
  min-height: 100vh;
  padding-top: 100px;
}

.rdv-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(27,79,155,0.12);
  padding: 40px;
}

.rdv-card .form-control,
.rdv-card .form-select {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.rdv-card .form-control:focus,
.rdv-card .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,79,155,0.12);
}

.rdv-card label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dark);
  margin-bottom: 6px;
}

/* ================================================
   PAGE PARTENAIRES - CARDS
   ================================================ */
.partner-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  transition: var(--transition);
  background: var(--white);
}

.partner-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.partner-img-placeholder {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
  /* INSÉRER ICI vos logos partenaires */
}

/* Clients de confiance */
.client-logo {
  padding: 16px 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

.client-logo:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ================================================
   PAGE À PROPOS - VALEURS
   ================================================ */
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
  margin-bottom: 16px;
}

.value-item:hover {
  border-color: var(--primary);
  background: rgba(27,79,155,0.03);
}

.value-icon {
  width: 48px;
  height: 48px;
  background: rgba(27,79,155,0.1);
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ================================================
   ANIMATIONS CSS
   ================================================ */

/* Fondu de bas en haut */
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Fondu de haut en bas */
@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Fondu simple */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Rebond du scroll indicator */
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: 0.5; }
}

/* Pulsation légère */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(27,79,155,0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(27,79,155,0); }
}

/* Animation au scroll via JS (classe ajoutée dynamiquement) */
.animate-visible {
  animation: slideInUp 0.7s ease forwards;
}

/* État initial caché pour les éléments animés au scroll */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Décalages pour les animations séquentielles */
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }

/* ================================================
   BOUTONS GÉNÉRAUX
   ================================================ */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,79,155,0.35);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

/* ================================================
   ALERTS (notifications formulaire)
   ================================================ */
.alert-success-custom {
  background: #d4edda;
  border-left: 4px solid #28a745;
  color: #155724;
  border-radius: 8px;
  padding: 14px 20px;
}

.alert-error-custom {
  background: #f8d7da;
  border-left: 4px solid #dc3545;
  color: #721c24;
  border-radius: 8px;
  padding: 14px 20px;
}

/* ================================================
   PAGE INTERNE HÉADER
   ================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 120px 0 60px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 350px;
  height: 350px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
}

.page-hero p {
  opacity: 0.8;
  font-size: 1rem;
}

/* Fil d'Ariane */
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }
.breadcrumb-item { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.breadcrumb-item.active { color: #fff; }

/* ================================================
   RESPONSIVE – MEDIA QUERIES
   ================================================ */

/* Tablettes (≤ 991px) */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--white);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    margin-top: 10px;
  }

  .hero-title { font-size: 1.8rem; }

  .stats-section .stat-number { font-size: 2.5rem; }
}

/* Mobiles (≤ 767px) */
@media (max-width: 767.98px) {
  .brand-logo { font-size: 1.4rem; }

  .hero-section { min-height: 90vh; }
  .hero-title { font-size: 1.5rem; }

  .section-title { font-size: 1.5rem; }

  .rdv-card { padding: 24px 16px; }

  .domain-card { padding: 16px !important; }
  .domain-icon { font-size: 1.6rem; }
  .domain-label { font-size: 0.78rem; }

  .service-card-home { margin-bottom: 0; }

  .partner-logo-text { font-size: 0.75rem; padding: 4px 10px; }

  /* Footer centré sur mobile */
  .main-footer .col-6 { width: 50%; }

  .stats-section .stat-number { font-size: 2rem; }
  .stats-section .stat-label { font-size: 0.75rem; }
}

/* Très petits écrans (≤ 480px) */
@media (max-width: 480px) {
  .hero-content .d-flex { flex-direction: column; }
  .hero-content .btn { width: 100%; justify-content: center; }

  .product-img-placeholder { height: 150px; }

  .rdv-card { padding: 16px; }
}

/* ================================================
   FOOTER – AMÉLIORATIONS (textes blancs, contacts cliquables)
   ================================================ */

.main-footer {
  background: linear-gradient(160deg, #0a1628 0%, #0f2045 60%, #0d1b3e 100%) !important;
  color: #fff !important;
}

.footer-text-white {
  color: rgba(255,255,255,0.75) !important;
}

/* Tous les textes du footer en blanc */
.main-footer p,
.main-footer small,
.main-footer span:not(.footer-version-badge) {
  color: rgba(255,255,255,0.75) !important;
}

.footer-heading {
  color: #fff !important;
}

.footer-links li,
.footer-links a {
  color: rgba(255,255,255,0.7) !important;
}

.footer-links a:hover {
  color: var(--accent) !important;
}

/* Contacts cliquables dans le footer */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.8) !important;
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.4;
  transition: color 0.3s ease, gap 0.3s ease;
  cursor: pointer;
}

.footer-contact-item i {
  color: var(--accent) !important;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.footer-contact-item:hover {
  color: var(--accent) !important;
  gap: 14px;
}

.footer-contact-item span {
  color: inherit !important;
}

.footer-contact-static {
  cursor: default;
}

.footer-contact-static:hover {
  color: rgba(255,255,255,0.8) !important;
  gap: 10px;
}

/* HR footer */
.footer-hr {
  border-color: rgba(255,255,255,0.12) !important;
}

/* Copyright */
.footer-copyright {
  color: rgba(255,255,255,0.6) !important;
  font-size: 0.82rem;
}

/* Badge version */
.footer-version-badge {
  display: inline-block;
  background: rgba(244,168,32,0.2);
  color: var(--accent);
  border: 1px solid rgba(244,168,32,0.3);
  border-radius: 50px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Boutons réseaux sociaux (footer) */
.footer-social {
  margin-top: 14px;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #fff !important;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
}

.footer-social-btn:hover { transform: translateY(-3px); opacity: 1 !important; }
.footer-social-whatsapp:hover  { background: #25D366; border-color: #25D366; }
.footer-social-facebook:hover  { background: #1877F2; border-color: #1877F2; }
.footer-social-tiktok:hover    { background: #010101; border-color: #69C9D0; }
.footer-social-instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); border-color: transparent; }
.footer-social-linkedin:hover  { background: #0A66C2; border-color: #0A66C2; }
.footer-social-telegram:hover  { background: #229ED9; border-color: #229ED9; }

/* ================================================
   2 GRANDS SERVICES (section piliers)
   ================================================ */

.grands-services-section {
  background: var(--light-bg);
}

.grand-service-card {
  border-radius: 20px;
  padding: 36px;
  border: 1.5px solid var(--border);
  background: #fff;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.grand-service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(27,79,155,0.18);
}

/* Pôle industriel */
.grand-service-industrie {
  background: #fff;
  border-color: rgba(27,79,155,0.15);
}

.grand-service-industrie::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* Pôle informatique */
.grand-service-info {
  background: linear-gradient(135deg, #0a1628 0%, #1B4F9B 60%, #1e5cb3 100%);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 10px 40px rgba(27,79,155,0.4);
}

.grand-service-info::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #ffd060, var(--accent));
  background-size: 200% auto;
  animation: gradientMove 3s linear infinite;
}

.grand-service-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.grand-service-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(27,79,155,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  flex-shrink: 0;
}

.grand-service-icon-info {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.grand-service-tag {
  display: inline-block;
  background: rgba(27,79,155,0.1);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 6px;
}

.grand-service-tag-info {
  background: rgba(244,168,32,0.25);
  color: var(--accent);
}

.grand-service-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0;
  line-height: 1.25;
}

.grand-service-intro {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Placeholder image grand service */
.grand-service-img-placeholder {
  height: 160px;
  border-radius: 12px;
  background: var(--light-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  padding: 16px;
  border: 1px dashed var(--border);
}

.grand-service-img-placeholder i {
  font-size: 2.5rem;
  opacity: 0.35;
}

.grand-service-img-info {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.5);
}

/* Image réelle grand service */
.grand-service-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.grand-service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.grand-service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.87rem;
  color: var(--dark);
}

.grand-service-list li i {
  color: var(--primary);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.grand-service-list-info li {
  color: rgba(255,255,255,0.88);
}

.grand-service-list-info li i {
  color: var(--accent);
}

.grand-service-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff !important;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.87rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.35s ease;
  border: none;
}

.grand-service-btn:hover {
  background: var(--primary-dark);
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(27,79,155,0.35);
}

.grand-service-btn-info {
  background: var(--accent);
  color: #0a1628 !important;
}

.grand-service-btn-info:hover {
  background: #d4891a;
  box-shadow: 0 6px 20px rgba(244,168,32,0.4);
}

/* ================================================
   SECTION INFORMATIQUE DÉTAILLÉE
   ================================================ */

.section-informatique {
  background: linear-gradient(135deg, #060f1f 0%, #0a1628 40%, #0d2045 70%, #0f2a5e 100%);
  position: relative;
  overflow: hidden;
}

.section-informatique::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.section-tag-tech {
  background: rgba(244,168,32,0.15) !important;
  color: var(--accent) !important;
  border-left-color: var(--accent) !important;
}

/* Cards services informatiques */
.info-service-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(6px);
}

.info-service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #ffd060);
  transition: width 0.4s ease;
}

.info-service-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.info-service-card:hover::before { width: 100%; }

/* Card highlight (populaire) */
.info-service-card-highlight {
  background: rgba(244,168,32,0.1);
  border-color: rgba(244,168,32,0.3);
  box-shadow: 0 8px 32px rgba(244,168,32,0.15);
}

.info-service-card-highlight:hover {
  background: rgba(244,168,32,0.15);
  border-color: rgba(244,168,32,0.5);
}

.info-service-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: #0a1628;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.info-service-icon-wrap {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 16px;
  transition: transform 0.35s ease;
}

.info-icon-highlight {
  background: rgba(244,168,32,0.2);
  color: var(--accent);
}

.info-service-card:hover .info-service-icon-wrap {
  transform: scale(1.1) rotate(-5deg);
}

.info-service-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.info-service-desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.info-service-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-service-features li {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  padding-left: 14px;
  position: relative;
}

.info-service-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

/* Image dans une info-service-card */
.info-service-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Bouton CTA info section */
.btn-accent-info {
  background: linear-gradient(135deg, var(--accent), #ffd060);
  color: #0a1628 !important;
  border: none;
  font-weight: 700;
  border-radius: 50px;
  padding: 14px 40px;
  box-shadow: 0 8px 30px rgba(244,168,32,0.4);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.btn-accent-info:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(244,168,32,0.5);
  color: #0a1628 !important;
}

/* ================================================
   PARTENAIRES – Cards cliquables avec logo
   ================================================ */

.partner-card-link {
  cursor: pointer;
  display: block;
  color: inherit;
}

.partner-img-placeholder {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo image quand disponible */
.partner-logo-img {
  max-height: 70px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter 0.3s ease;
}

.partner-card:hover .partner-logo-img {
  filter: grayscale(0%);
}

/* Fallback texte stylisé par partenaire */
.partner-logo-fallback {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.partner-schneider {
  color: #3dcd58;
  background: rgba(61,205,88,0.08);
  border: 1.5px solid rgba(61,205,88,0.25);
}

.partner-aaf {
  color: #0067b1;
  background: rgba(0,103,177,0.08);
  border: 1.5px solid rgba(0,103,177,0.25);
}

.partner-gali {
  color: #d4251f;
  background: rgba(212,37,31,0.08);
  border: 1.5px solid rgba(212,37,31,0.25);
}

.partner-kpdc {
  color: #1B4F9B;
  background: rgba(27,79,155,0.08);
  border: 1.5px solid rgba(27,79,155,0.25);
}

.partner-card:hover .partner-logo-fallback {
  transform: scale(1.05);
}

/* Bouton "Visiter le site" sur la card partenaire */
.partner-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 10px;
  transition: gap 0.3s ease, color 0.3s ease;
}

.partner-card:hover .partner-visit-btn {
  gap: 8px;
  color: var(--accent);
}

/* ================================================
   RDV CONTACT BOX – hover effect
   ================================================ */
.rdv-contact-box {
  transition: all 0.3s ease;
}

.rdv-contact-box:hover {
  border-color: var(--primary) !important;
  box-shadow: 0 6px 20px rgba(27,79,155,0.12);
  transform: translateY(-4px);
}

/* ================================================
   ÉTOILE ADMIN dans le footer de rendez-vous
   ================================================ */
.footer-admin-star {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.12);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  line-height: 1;
}

.footer-admin-star:hover {
  color: var(--accent);
  transform: translateY(-50%) scale(1.3) rotate(20deg);
  text-shadow: 0 0 8px rgba(244,168,32,0.6);
}

/* Sur mobile, éviter que l'étoile déborde */
@media (max-width: 767.98px) {
  .footer-admin-star {
    position: static;
    transform: none;
    display: inline-block;
    margin-left: 8px;
  }
  .footer-admin-star:hover {
    transform: scale(1.3);
  }
}

/* ================================================
   ÉTOILE ADMIN DISCRÈTE (footer rendez-vous.html)
   ================================================ */
.footer-admin-star {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.15);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  padding: 4px 8px;
  line-height: 1;
  cursor: pointer;
}

.footer-admin-star:hover {
  color: var(--accent);
  transform: scale(1.4) rotate(30deg);
}

/* ================================================
   BOÎTES CONTACT RDV (cliquables)
   ================================================ */
.rdv-contact-box {
  transition: all 0.3s ease;
}

.rdv-contact-box:hover {
  border-color: var(--primary) !important;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(27,79,155,0.12);
}

/* ================================================
   CATALOGUE PRODUITS – Support images flexibles
   Ajout/retrait de produits sans casser le design
   ================================================ */

/* Grille produits auto-adaptative */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Image produit réelle (quand vous décommentez la balise <img>) */
.product-img-real {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
}

/* Quand une image est chargée, le placeholder disparaît */
.product-img-placeholder:has(img) {
  background: none;
  border: none;
  padding: 0;
  height: auto;
}

.product-img-placeholder:has(img) i,
.product-img-placeholder:has(img) span {
  display: none;
}

/* ================================================
   SECTION INFORMATIQUE – RESPONSIVE
   ================================================ */
@media (max-width: 991.98px) {
  .grand-service-card { padding: 24px; }
  .grand-service-img-placeholder { height: 120px; }
  .info-service-card { padding: 20px; }
  .section-informatique { padding: 40px 0; }
}

@media (max-width: 767.98px) {
  .grand-service-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .info-service-card { padding: 18px; }
  .footer-contact-item { font-size: 0.8rem; }
  .footer-admin-star { position: static; display: inline-block; margin-top: 8px; }
}
