@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800;900&family=Barlow+Condensed:wght@700;800;900&family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Nouvelle charte graphique officielle - RIS Technologies */
  --fushia:        #C71585;       /* Fuchsia / Magenta principal (très visible) */
  --fushia-hover:  #BA107B;       /* Fuchsia sombre pour les interactions */
  --marine:        #1D2B64;       /* Bleu nuit / Bleu roi foncé principal */
  --marine-deep:   #0F183B;       /* Bleu nuit très profond pour les fonds sombres */
  --bleu:          #0052CC;       /* Bleu de marque vif (équipements et flotte) */
  --bleu-clair:    #0066FF;       /* Accentuation bleu électrique */
  
  /* Structure, fonds et textes */
  --fond:          #F4F6FC;       /* Fond de page clair, repose l'œil */
  --blanc:         #FFFFFF;       
  --texte:         #1D2B64;       /* Titres importants en bleu nuit */
  --gris:          #4A4A4A;       /* Textes de paragraphe (gris anthracite très lisible) */
  --border-color:  #E0E0E0;       /* Bordures et séparateurs */
  
  /* Typographies */
  --font-titre: 'Barlow Condensed', sans-serif;
  --font-body:  'Barlow', sans-serif;
  --font-para:  'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-para); color: var(--gris); background: var(--fond); overflow-x: hidden; }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--marine-deep);
  color: #aec6e8; font-size: 12px; padding: 7px 0;
}
.topbar .inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar .left { display: flex; align-items: center; gap: 24px; }
.topbar .left span { display: flex; align-items: center; gap: 6px; }
.topbar .left span i { color: var(--fushia); font-size: 11px; }
.topbar .left a { color: var(--fushia); text-decoration: none; font-weight: 600; }
.topbar .right { display: flex; align-items: center; gap: 8px; }
.topbar .right span { font-weight: 700; margin-right: 6px; color: var(--blanc); letter-spacing: 1px; }
.topbar .right a { color: #7aadd4; font-size: 13px; transition: color .2s; text-decoration: none; }
.topbar .right a:hover { color: var(--fushia); } /* Correction : plus de survol jaune */

/* ===== NAVBAR ===== */
nav {
  background: var(--blanc);
  box-shadow: 0 2px 20px rgba(29, 43, 100, 0.08);
  position: sticky; top: 0; z-index: 200;
  transition: box-shadow .3s;
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--font-titre); font-size: 22px; font-weight: 900;
  color: var(--marine); text-decoration: none;
  display: flex; align-items: center; gap: 10px; letter-spacing: 0.5px;
}
.logo-icon {
  width: 46px; height: 46px; background: var(--marine); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blanc); font-size: 20px; position: relative; overflow: hidden; flex-shrink: 0;
}
.logo-icon::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--fushia);
}
.logo-text .l1 { display: block; font-size: 13px; font-weight: 900; color: var(--marine); letter-spacing: 1.5px; line-height: 1; }
.logo-text .l2 { display: block; font-size: 19px; font-weight: 900; color: var(--bleu-clair); letter-spacing: 2px; line-height: 1.1; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  font-family: var(--font-body); font-size: 14px; font-weight: 700;
  color: var(--marine); text-decoration: none;
  padding-bottom: 4px; transition: color .2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px;
  background: var(--fushia); transform: scaleX(0); transition: transform .3s;
}
/* Onglets actifs et survol : Fuchsia ultra-visible */
.nav-links a.active,
.nav-links a:hover { color: var(--fushia); }
.nav-links a.active::after,
.nav-links a:hover::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-phone { display: flex; align-items: center; gap: 10px; }
.nav-phone .icon {
  width: 40px; height: 40px; background: var(--marine); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--blanc); font-size: 15px;
}
.nav-phone .info small { display: block; font-size: 10px; color: var(--gris); font-weight: 600; text-transform: uppercase; }
.nav-phone .info strong { font-size: 13px; font-family: var(--font-body); color: var(--marine); font-weight: 700; }

/* Bouton principal "Demander un Devis" : Fond Fuchsia, texte Blanc (Contraste maximal) */
.btn-devis {
  background: var(--fushia); color: var(--blanc); padding: 11px 22px; border-radius: 6px;
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.5px;
  border: 2px solid var(--fushia); transition: all .25s; white-space: nowrap;
}
.btn-devis:hover { background: var(--fushia-hover); border-color: var(--fushia-hover); color: var(--blanc); }

/* Hamburger Menu */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--marine); border-radius: 2px; }

/* ===== HERO & SLIDER (Mise à jour des images de fond du PDF) ===== */
.hero-inner {
  background: linear-gradient(130deg, var(--marine-deep) 0%, var(--marine) 55%, var(--bleu) 100%);
  padding: 80px 0 90px; position: relative; overflow: hidden;
  text-align: center;
}
.hero-inner .inner { max-width: 800px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* Remplacement des images génériques par le style industriel du PDF (Armoires électriques / Flotte technique) */
.hero-inner-bg {
  position: absolute; inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.15; /* Léger fondu pour laisser les titres blancs très lisibles */
  transition: background-image 0.5s ease-in-out;
}

/* Classes pour votre slider (à appliquer dynamiquement sur votre div .hero-inner-bg) */
.slide-1 {
  background-image: url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?w=1600&auto=format&fit=crop&q=80'); /* Électricité industrielle & câblage */
}
.slide-2 {
  background-image: url('https://images.unsplash.com/photo-1581092334651-ddf26d9aae9d?w=1600&auto=format&fit=crop&q=80'); /* Armoires de distribution / TGBT */
}

.hero-inner .breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.6); font-size: 13px; margin-bottom: 18px;
}
.hero-inner .breadcrumb a { color: var(--fushia); text-decoration: none; font-weight: 600; }
.hero-inner .breadcrumb i { font-size: 10px; }
.hero-inner h1 {
  font-family: var(--font-titre); font-size: 60px; font-weight: 900; color: var(--blanc);
  text-transform: uppercase; letter-spacing: 1px; line-height: 1.05; margin-bottom: 16px;
}
.hero-inner h1 span { color: var(--fushia); } 
.hero-inner p { color: rgba(255,255,255,0.7); font-size: 16px; line-height: 1.7; max-width: 600px; margin: 0 auto; }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; }

/* Boutons de contrôle du Slider (Flèches gauche/droite) */
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 45px; height: 45px; background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%;
  color: var(--blanc); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; z-index: 5;
}
.slider-arrow:hover {
  background: var(--fushia);
  border-color: var(--fushia);
}
.slider-arrow.left { left: 20px; }
.slider-arrow.right { right: 20px; }

/* ===== SECTION COMMUNE ===== */
.section-tag {
  display: inline-block; background: var(--fushia); color: var(--blanc);
  font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 14px; border-radius: 3px; margin-bottom: 14px;
}
.section-head { text-align: center; margin-bottom: 54px; }
.section-head h2 {
  font-family: var(--font-titre); font-size: 40px; font-weight: 900; color: var(--marine);
  margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px;
}
.section-head p { font-size: 14px; color: var(--gris); max-width: 520px; margin: 0 auto; line-height: 1.75; }

/* ===== BOUTONS GLOBAUX ===== */
.btn-primaire {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--fushia); color: var(--blanc); padding: 12px 28px; border-radius: 6px;
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.5px;
  transition: all .25s;
}
.btn-primaire:hover { background: var(--fushia-hover); color: var(--blanc); transform: translateY(-2px); }

.btn-secondaire {
  display: inline-flex; align-items: center; gap: 10px;
  border: 2px solid var(--fushia); color: var(--fushia); padding: 11px 26px; border-radius: 6px;
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.5px;
  transition: all .25s;
}
.btn-secondaire:hover { background: var(--fushia); color: var(--blanc); }

/* ===== STATS BAR ===== */
.stats-bar {
  background: linear-gradient(130deg, var(--marine-deep) 0%, var(--marine) 50%, var(--bleu) 100%);
  padding: 70px 0; position: relative; overflow: hidden;
}
.stats-bar::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.stats-bar .inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; z-index: 1;
}
.stat-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 28px 20px;
  display: flex; align-items: center; gap: 18px;
  transition: transform .3s, background .3s;
}
.stat-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.1); }
.stat-icon {
  width: 54px; height: 54px; background: rgba(199, 21, 133, 0.15); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: var(--fushia); font-size: 22px;
  border: 1px solid rgba(199, 21, 133, 0.3); flex-shrink: 0;
}
.stat-info h3 { font-family: var(--font-titre); font-size: 34px; font-weight: 900; color: var(--blanc); line-height: 1; margin-bottom: 4px; }
.stat-info p { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.4; }

/* ===== FOOTER ===== */
footer { background: var(--marine); padding: 80px 0 0; border-top: 4px solid var(--fushia); }
.footer-grid {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px;
}
.footer-brand .logo-f { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-brand .logo-icon-f {
  width: 50px; height: 50px; background: var(--marine-deep); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: var(--blanc); font-size: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand .lf1 { font-family: var(--font-titre); font-size: 15px; font-weight: 900; color: var(--blanc); letter-spacing: 1px; display: block; }
.footer-brand .lf2 { font-family: var(--font-titre); font-size: 20px; font-weight: 900; color: var(--fushia); letter-spacing: 2px; display: block; }
.footer-brand p { font-size: 13px; color: rgba(255, 255, 255, 0.7); line-height: 1.8; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 38px; height: 38px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--blanc); font-size: 14px; transition: all .2s; text-decoration: none;
}
.footer-socials a:hover { background: var(--fushia); border-color: var(--fushia); color: var(--blanc); }

.footer-col h4 {
  font-family: var(--font-body); font-size: 14px; font-weight: 800; color: var(--blanc);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px;
  padding-bottom: 12px; border-bottom: 2px solid var(--fushia); display: inline-block;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 13px; color: rgba(255, 255, 255, 0.7); text-decoration: none;
  transition: color .2s; display: flex; align-items: center; gap: 8px;
}
.footer-col ul li a::before { content: '›'; color: var(--fushia); font-size: 16px; font-weight: bold; }
.footer-col ul li a:hover { color: var(--fushia); }

.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.footer-contact-item i { color: var(--fushia); font-size: 14px; margin-top: 2px; }
.footer-contact-item span { font-size: 13px; color: rgba(255, 255, 255, 0.7); line-height: 1.6; }

.footer-bottom {
  max-width: 1240px; margin: 60px auto 0; padding: 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.footer-bottom a { color: var(--fushia); text-decoration: none; font-weight: 700; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 12px; color: rgba(255, 255, 255, 0.4); text-decoration: none; transition: color .2s; }
.footer-bottom-links a:hover { color: var(--blanc); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-inner h1 { font-size: 38px; }
  .stats-bar .inner { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .topbar .left { display: none; }
  .hero-inner h1 { font-size: 30px; }
  .stats-bar .inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-phone { display: none; }
}

/* ===== Surcharges Blocs Dupliqués Footer ===== */
.footer-brand p { font-size:13px; color:rgba(255,255,255,0.7); line-height:1.75; margin:16px 0 24px; }
.logo-f { display:flex; align-items:center; gap:12px; margin-bottom:4px; }
.logo-icon-f { width:46px; height:46px; background:var(--marine-deep); border-radius:8px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:20px; }
.lf1 { display:block; font-size:13px; font-weight:900; color:var(--blanc); letter-spacing:1.5px; font-family:var(--font-titre); }
.lf2 { display:block; font-size:19px; font-weight:900; color:var(--fushia); letter-spacing:2px; font-family:var(--font-titre); }
.footer-socials { display:flex; gap:10px; }
.footer-socials a { width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,0.05); color:var(--blanc); display:flex; align-items:center; justify-content:center; font-size:14px; text-decoration:none; transition:all .2s; }
.footer-socials a:hover { background:var(--fushia); color:var(--blanc); }
.footer-col h4 { font-family:var(--font-body); font-size:14px; font-weight:800; color:var(--blanc); letter-spacing:1px; text-transform:uppercase; margin-bottom:18px; }
.footer-col ul { list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer-col ul li a { color:rgba(255,255,255,0.7); text-decoration:none; font-size:13px; transition:color .2s; display:flex; align-items:center; gap:6px; }
.footer-col ul li a::before { content:'›'; color:var(--fushia); font-weight:900; }
.footer-col ul li a:hover { color:var(--blanc); }
.footer-contact-item { display:flex; align-items:flex-start; gap:12px; margin-bottom:14px; font-size:13px; color:rgba(255,255,255,0.7); }
.footer-contact-item i { color:var(--fushia); margin-top:2px; width:14px; flex-shrink:0; }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.1); margin-top:60px; padding:24px; text-align:center; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; max-width:1240px; margin-left:auto; margin-right:auto; }
.footer-bottom p { font-size:12px; color:rgba(255,255,255,0.5); }
.footer-bottom a { color:var(--fushia); text-decoration:none; font-weight:700; }
.footer-bottom-links { display:flex; gap:20px; }
.footer-bottom-links a { font-size:12px; color:rgba(255,255,255,0.4); text-decoration:none; transition:color .2s; }
.footer-bottom-links a:hover { color:var(--blanc); }

/* ===== LOGO IMAGE ===== */
.logo-img { height: 52px; width: auto; object-fit: contain; }
.logo-img-footer { height: 48px; width: auto; object-fit: contain; }

/* ===== FLASH MESSAGES ===== */
.flash { padding:12px 20px; border-radius:8px; margin-bottom:20px; font-size:14px; font-weight:600; }
.flash-success { background:#d4edda; color:#155724; border:1px solid #c3e6cb; }
.flash-error { background:#f8d7da; color:#721c24; border:1px solid #f5c6cb; }

