/* =============================================
   D.I.B.S. — Dépannage Informatique Banlieue Sud
   style.css — Design principal
   ============================================= */

/* Variables couleurs DIBS */
:root {
  --dibs-navy:  #1a2e4a;
  --dibs-blue:  #2d6db5;
  --dibs-orange: #8b1a06;
  --dibs-light: #f5f5f5;
  --dibs-white: #ffffff;
}

/* ---- Base ---- */
html {
  overflow-x: hidden; /* Fix flottement horizontal iOS Safari */
}

body {
  font-family: 'Roboto', sans-serif;
  color: #333;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

a { transition: color .2s; }

/* ---- Navbar ---- */
.navbar {
  background-color: var(--dibs-navy) !important;
  padding-top: .75rem;
  padding-bottom: .75rem;
}

.dibs-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: #fff !important;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1;
}

.nav-link {
  color: rgba(255,255,255,.85) !important;
  font-weight: 500;
  font-size: .9rem;
  padding-left: .75rem !important;
  padding-right: .75rem !important;
  transition: color .2s;
}

.nav-link:hover,
.nav-link.active {
  color: #e84820 !important;
}

.navbar-phone {
  color: rgba(255,255,255,.9);
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
}

.navbar-phone i { color: var(--dibs-orange); }

.navbar-toggler {
  border-color: rgba(255,255,255,.3);
  cursor: pointer; /* Fix iOS Safari — déclenche bien l'événement touch */
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---- Bouton CTA ---- */
.btn-cta, .btn-orange {
  background-color: var(--dibs-orange);
  color: #fff !important;
  border: none;
  font-weight: 600;
  transition: background-color .2s, transform .1s;
}

.btn-cta:hover, .btn-orange:hover {
  background-color: #c44208;
  color: #fff !important;
  transform: translateY(-1px);
}

.btn-cta:focus, .btn-orange:focus {
  box-shadow: 0 0 0 .25rem rgba(232,82,10,.35);
}

.btn-outline-white {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
  font-weight: 600;
}

.btn-outline-white:hover {
  background: #fff;
  color: var(--dibs-navy);
}

/* ---- Section utilitaires ---- */
.section-title {
  color: var(--dibs-navy);
  margin-bottom: .5rem;
}

.section-subtitle {
  color: var(--dibs-blue);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.divider-orange {
  width: 60px;
  height: 4px;
  background: var(--dibs-orange);
  margin: .75rem auto 1.5rem;
  border-radius: 2px;
}

.section-alt {
  background-color: var(--dibs-light);
}

.section-blue {
  background-color: #eef4fb;
}

.bg-navy { background-color: var(--dibs-navy); }
.text-orange { color: var(--dibs-orange) !important; }
.text-navy { color: var(--dibs-navy) !important; }

/* ---- Héro page d'accueil ---- */
.hero-section {
  background-color: #1a2e4a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 75vh;
  display: flex;
  align-items: center;
}

.hero-section h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.25;
  color: #fff;
}

.hero-section .lead {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,.85);
}

.hero-phone {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #e84820;
  letter-spacing: 1px;
}

/* ---- Bandeaux pages internes ---- */
.page-banner {
  background-size: cover;
  background-position: center;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26,46,74,.15);
}

.page-banner h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.page-banner .breadcrumb-banner {
  position: relative;
  z-index: 1;
}

.breadcrumb-item a { color: rgba(255,255,255,.75); }
.breadcrumb-item.active { color: var(--dibs-orange); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ---- Cards services ---- */
.service-card {
  border: 1px solid #e9ecef;
  border-top: 4px solid var(--dibs-orange);
  border-radius: .5rem;
  transition: transform .2s, box-shadow .2s;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 .75rem 2rem rgba(26,46,74,.15) !important;
}

/* Cards cliquables page services */
.card.border-0.shadow-sm {
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.card.border-0.shadow-sm:hover {
  transform: translateY(-4px);
  box-shadow: 0 .75rem 2rem rgba(26,46,74,.18) !important;
}

.service-card .card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--dibs-navy), var(--dibs-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.service-card .card-icon i {
  color: #fff;
  font-size: 1.6rem;
}

/* ---- Boutique / Produits ---- */
.product-card {
  border: 1px solid #e9ecef;
  border-radius: .5rem;
  transition: box-shadow .2s;
  height: 100%;
}

.product-card:hover {
  box-shadow: 0 .5rem 1.5rem rgba(26,46,74,.12) !important;
}

.product-card .price-tag {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dibs-orange);
}

/* ---- Section intervention ---- */
.zone-badge {
  display: inline-block;
  background: var(--dibs-navy);
  color: #fff;
  padding: .4rem 1rem;
  border-radius: 2rem;
  margin: .25rem;
  font-size: .875rem;
  font-weight: 500;
}

/* ---- Bandeau partenaire ---- */
.partner-banner {
  background: linear-gradient(135deg, var(--dibs-navy), var(--dibs-blue));
  color: #fff;
  padding: 1.5rem;
  border-radius: .5rem;
  border-left: 5px solid var(--dibs-orange);
}

/* ---- Section tarifs ---- */
.pricing-card {
  border: 2px solid #d0d7e2;
  border-radius: .75rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  height: 100%;
  background: #fff;
  box-shadow: 0 .25rem 1rem rgba(26,46,74,.08);
}

.pricing-card:hover {
  border-color: var(--dibs-orange);
  box-shadow: 0 .75rem 2rem rgba(26,46,74,.15);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--dibs-navy);
  border-width: 3px;
  position: relative;
  box-shadow: 0 .5rem 2rem rgba(26,46,74,.14);
}

.pricing-card .price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--dibs-navy);
  line-height: 1.1;
}

.pricing-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .3px;
  border-bottom: 2px solid var(--dibs-orange);
  padding-bottom: .5rem;
  margin-bottom: .75rem !important;
}

/* ---- Formulaire contact ---- */
.form-control:focus {
  border-color: var(--dibs-blue);
  box-shadow: 0 0 0 .25rem rgba(45,109,181,.2);
}

.contact-info-card {
  background: var(--dibs-navy);
  color: #fff;
  border-radius: .75rem;
  padding: 2rem;
}

.contact-info-card i {
  color: var(--dibs-orange);
  font-size: 1.4rem;
  width: 2rem;
}

/* ---- Accordion services ---- */
.accordion-button:not(.collapsed) {
  background-color: var(--dibs-navy);
  color: #fff;
}

.accordion-button:focus {
  box-shadow: 0 0 0 .25rem rgba(26,46,74,.2);
}

/* ---- Réalisations ---- */
.realisation-card {
  border: none;
  border-radius: .75rem;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}

.realisation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2rem rgba(0,0,0,.15) !important;
}

/* ---- Footer ---- */
footer {
  background-color: var(--dibs-navy);
  color: rgba(255,255,255,.85);
}

footer h5 {
  color: #fff;
  font-size: 1rem;
  border-bottom: 2px solid var(--dibs-orange);
  padding-bottom: .5rem;
  margin-bottom: 1.25rem;
}

footer a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color .2s;
  display: block;
  margin-bottom: .35rem;
}

footer a:hover {
  color: var(--dibs-orange);
}

footer .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  margin-right: .4rem;
  transition: background .2s;
}

footer .social-link:hover {
  background: var(--dibs-orange);
  color: #fff;
}

.footer-bottom {
  background: rgba(0,0,0,.25);
  border-top: 1px solid rgba(255,255,255,.1);
}

.footer-bottom a {
  color: rgba(255,255,255,.65);
  display: inline;
  margin: 0 .5rem;
}

.footer-bottom a:hover {
  color: var(--dibs-orange);
}

/* ---- Icône téléphone mobile ---- */
.tel-link {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

.tel-link:hover { color: var(--dibs-orange); }

/* ---- Fil d'Ariane / breadcrumb ---- */
.breadcrumb { background: transparent; margin: 0; padding: 0; }

/* ---- Logo placeholder SVG ---- */
.logo-svg-wrap { display: flex; align-items: center; gap: .5rem; }

/* ============================================
   RESPONSIVE — iPhone / mobile
   ============================================ */
@media (max-width: 575.98px) {
  .hero-section {
    min-height: 60vh;
    text-align: center;
  }

  .hero-section .btn {
    width: 100%;
    margin-bottom: .5rem;
  }

  .page-banner {
    height: 180px;
  }

  .page-banner h1 {
    font-size: 1.4rem;
  }

  .service-card, .product-card, .pricing-card {
    margin-bottom: 1rem;
  }

  .navbar-phone {
    display: none !important;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section { min-height: 65vh; }
}

/* Touch targets minimum */
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* nav-link : flex (pas inline-flex) pour que le collapse Bootstrap mobile fonctionne */
.nav-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

footer a { min-height: 36px; }

/* Menu mobile : fond navy visible quand ouvert */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--dibs-navy);
    padding: .75rem 0;
    margin-top: .5rem;
    border-top: 1px solid rgba(255,255,255,.1);
  }
}

/* ===== REVEAL ANIMATIONS — Intersection Observer natif (pas AOS — bugs iOS) ===== */
[data-reveal] {
  opacity: 0;
  transition: opacity .65s ease, transform .65s ease;
}
[data-reveal="fade-up"]    { transform: translateY(28px); }
[data-reveal="fade-left"]  { transform: translateX(-28px); }
[data-reveal="fade-right"] { transform: translateX(28px); }
[data-reveal="fade"]       { transform: none; }
[data-reveal].is-visible   { opacity: 1; transform: none; }
