/* ═══════════════════════════════════════════
   SEE INGÉNIERIE — CSS calqué sur TDA Ingénierie
   Bootstrap 4 + Agency theme
   ═══════════════════════════════════════════ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&family=Droid+Serif:ital@0;1&display=swap');

/* Bootstrap 4 CDN */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css');

/* ── Variables ── */
:root {
  --primary:   #e36d00;
  --primary-h: #e6b301;
  --dark:      #212529;
  --black:     #000;
  --nav-link:  rgb(241, 207, 11);
}

html { scroll-behavior: smooth; }
* { scroll-behavior: smooth; }
body {
  font-family: "Roboto Slab", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

/* ── NAVBAR ── */
#mainNav {
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: var(--dark);
}
#mainNav .navbar-toggler {
  padding: 0.75rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  color: #fff;
  text-transform: uppercase;
  background-color: var(--primary);
  border: 0;
}
#mainNav .navbar-brand {
  color: var(--primary);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: 0.0625em;
  text-transform: uppercase;
}
#mainNav .navbar-brand img {
  height: 70px;
}
#mainNav .navbar-nav .nav-item .nav-link {
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  color: var(--nav-link);
  letter-spacing: 0.0625em;
}
#mainNav .navbar-nav .nav-item .nav-link.active,
#mainNav .navbar-nav .nav-item .nav-link:hover {
  color: var(--primary);
}

@media (min-width: 992px) {
  #mainNav {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border: none;
    background-color: var(--black);
    transition: padding-top 0.3s ease-in-out, padding-bottom 0.3s ease-in-out;
  }
  #mainNav .navbar-brand { font-size: 1.5em; transition: font-size 0.3s ease-in-out; }
  #mainNav .navbar-brand img { height: 4.5rem; transition: height 0.3s ease-in-out; }
  #mainNav.navbar-shrink { padding-top: 1rem; padding-bottom: 1rem; background-color: var(--dark); }
  #mainNav.navbar-shrink .navbar-brand { font-size: 1.25em; }
  #mainNav.navbar-shrink .navbar-brand img { height: 4rem; }
  #mainNav .navbar-nav .nav-item { margin-right: 1rem; }
  #mainNav .navbar-nav .nav-item:last-child { margin-right: 0; }
}

/* ── HERO ── */
header.masthead {
  padding-top: 10.5rem;
  padding-bottom: 6rem;
  text-align: center;
  color: #fff;
  background-image: url("../assets/images/hero.jpg");
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: center center;
  background-size: cover;
  position: relative;
}
header.masthead::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.25);
}
header.masthead .container { position: relative; z-index: 2; }
header.masthead .masthead-subheading {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5rem;
  margin-bottom: 25px;
  font-family: "Droid Serif", serif;
  color: #000;
  text-shadow: none;
}
header.masthead .masthead-heading {
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 3.25rem;
  margin-bottom: 2rem;
  font-family: "Montserrat", sans-serif;
  color: #000;
  text-shadow: none;
}
@media (min-width: 768px) {
  header.masthead { padding-top: 17rem; padding-bottom: 12.5rem; }
  header.masthead .masthead-subheading { font-size: 2.25rem; line-height: 2.25rem; margin-bottom: 2rem; }
  header.masthead .masthead-heading { font-size: 4.5rem; font-weight: 700; line-height: 4.5rem; margin-bottom: 4rem; }
}

/* ── BOUTONS ── */
.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-h) !important;
  border-color: var(--primary-h) !important;
}
.btn-xl { padding: 1rem 2.5rem; font-size: 0.85rem; letter-spacing: 0.1em; }

/* ── SECTIONS COMMUNES ── */
section { padding: 5rem 0; }
.section-bg { background-color: #f4f4f4; }
.section-title { text-align: center; padding-bottom: 30px; }
.section-title h2 {
  font-size: 32px; font-weight: 700; margin-bottom: 20px;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
  color: #2d2d2d;
  position: relative; padding-bottom: 20px;
}
.section-title h2::after {
  content: "";
  position: absolute; display: block;
  width: 50px; height: 3px;
  background: var(--primary);
  bottom: 0; left: 50%; transform: translateX(-50%);
}
.section-title p { color: #777; margin-bottom: 0; }
.section-heading {
  font-size: 2rem; font-weight: 700;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-subheading {
  font-size: 1rem; font-weight: 400;
  font-family: "Droid Serif", serif;
  font-style: italic;
  margin-bottom: 4rem;
}

/* ── À PROPOS ── */
.about .container p {
  text-align: center; font-size: 15px; line-height: 1.9;
  color: #555; max-width: 820px; margin: 0 auto 18px;
}

/* ── SERVICES ── */
.services .service-item {
  box-shadow: 0px 5px 90px 0px rgba(0,0,0,0.1);
  padding: 0 0 24px;
  transition: all ease-in-out 0.4s;
  background-color: #fff;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
}
.services .service-item:hover {
  box-shadow: 0px 10px 60px 0px rgba(0,0,0,0.2);
  transform: translateY(-5px);
}
.services .service-item .image {
  height: 230px; overflow: hidden;
}
.services .service-item .image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.services .service-item:hover .image img { transform: scale(1.06); }
.services .service-item h4 {
  font-weight: 700; font-size: 1rem; margin-bottom: 8px;
  font-family: "Montserrat", sans-serif;
  padding: 18px 20px 8px;
}
.services .service-item h4 a { color: #2d2d2d; text-decoration: none; }
.services .service-item h4 a:hover { color: var(--primary); }
.services .service-item p { font-size: 0.875rem; line-height: 1.7; color: #777; padding: 0 20px; }

/* ── LOGICIELS ── */
.logo-container { display: flex; justify-content: center; padding: 10px 0; }
.logo-slider {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 40px;
}
.logo-slider img {
  height: 50px; width: auto; object-fit: contain;
  filter: grayscale(0.2); transition: filter 0.2s, transform 0.2s;
}
.logo-slider img:hover { filter: none; transform: scale(1.05); }

/* ── ENGAGEMENTS (timeline style TDA) ── */
#engagements { background: #fff; }
.timeline-image {
  z-index: 100;
  width: 164px; height: 164px;
  margin-left: 0; margin-bottom: 20px;
  text-align: center;
  color: white;
  border: 7px solid #e9ecef;
  border-radius: 100%;
  overflow: hidden;
  background-color: var(--primary);
  transition: border-color 0.2s;
}
.timeline-image:hover { border-color: var(--primary); }
.timeline-image img { width: 100%; height: 100%; object-fit: cover; }
.subheading {
  font-size: 14px; font-weight: 700;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.0625em; text-transform: uppercase;
}

/* ── COMPTEURS ── */
.counts { background-color: #e9e9e9; padding: 60px 0; }
.count-box { padding: 30px; display: flex; flex-direction: column; align-items: center; }
.count-box i { font-size: 52px; color: var(--primary); margin-bottom: 18px; }
.count-box span {
  font-size: 48px; line-height: 1;
  font-weight: 700; color: #2f4d5a;
  font-family: "Montserrat", sans-serif;
  display: inline;
}
.count-box p {
  margin: 12px 0 0; font-family: "Montserrat", sans-serif;
  font-size: 14px; color: #49788c; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
}

/* ── CONTACT INFO ── */
.contact { background: #f5f5f5; }
.info-box {
  color: #444;
  background: #fff;
  text-align: center;
  box-shadow: 0 0 30px rgba(214, 215, 216, 0.6);
  padding: 20px 0 30px;
}
.info-box i { font-size: 32px; color: #e36d00; padding: 8px; border-radius: 50%; border: 2px dotted #f5c89e; }
.info-box h3 { font-size: 18px; color: #777; font-weight: 700; margin: 10px 0; font-family: "Montserrat", sans-serif; }
.info-box p { font-size: 14px; line-height: 24px; color: #888; margin: 0; }

/* ── FORMULAIRE ── */
.form-control {
  border-radius: 0;
  border-color: #ccc;
  font-family: "Roboto Slab", serif;
  background: #f8f8f8;
  padding: 14px 18px;
  font-size: 14px;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(227,109,0,0.15);
}
.form-group-textarea .form-control { height: 100%; min-height: 210px; }

/* ── FOOTER ── */
.footer {
  background-color: #212529;
  color: rgba(255,255,255,0.4);
  text-align: center;
  font-size: 0.9rem;
  font-family: "Montserrat", sans-serif;
}
.footer a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer a:hover { color: var(--primary); }
.btn-social {
  display: inline-flex !important; align-items: center; justify-content: center;
  height: 2.5rem; width: 2.5rem;
  border-radius: 100% !important;
  font-size: 0.875rem;
  background: rgba(255,255,255,0.1) !important;
  border: none !important;
  color: rgba(255,255,255,0.5) !important;
  transition: background 0.2s !important;
}
.btn-social:hover { background: var(--primary) !important; color: #fff !important; }

/* ── PAGES INTERNES ── */
.page-hero {
  margin-top: 80px;
  background: linear-gradient(135deg, #111e2e 0%, #1F3A5F 100%);
  padding: 70px 0;
}
.page-hero h1 { font-family: "Montserrat", sans-serif; font-size: 2.5rem; font-weight: 900; color: #fff; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 15px; max-width: 560px; line-height: 1.75; }

.service-detail { padding: 80px 0; background: #fff; }
.service-detail-img { border-radius: 4px; overflow: hidden; }
.service-detail-img img { width: 100%; height: auto; }

.service-features { list-style: none; padding: 0; }
.service-features li { padding: 8px 0; border-bottom: 1px solid #eee; font-size: 14.5px; color: #555; }
.service-features li i { color: var(--primary); margin-right: 10px; }

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
  #navbarResponsive { background: #212529; padding: 12px 16px; }
  .timeline-image { width: 120px; height: 120px; }
}
@media (max-width: 767px) {
  section { padding: 3rem 0; }
  .count-box { padding: 20px; }
}

/* ── Bouton "Nous contacter" mobile (remplace hamburger) ── */
.navbar-contact-btn {
  display: none;
  background-color: var(--primary);
  color: #fff !important;
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.1rem;
  border-radius: 3px;
  text-decoration: none !important;
  transition: background 0.2s;
}
.navbar-contact-btn:hover {
  background-color: var(--primary-h);
  color: #fff !important;
  text-decoration: none !important;
}
@media (max-width: 991px) {
  .navbar-contact-btn { display: inline-flex; align-items: center; }
}

/* ── Map ── */
.map-section { padding: 0; line-height: 0; }
.map-section iframe { filter: grayscale(20%) contrast(1.05); }

/* ── Map style TDA ── */
.map-section { background: #fff; }
.map-section .section-subheading { margin-bottom: 2rem; }
.map-wrapper {
  width: 100%;
  height: 420px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}
.map-wrapper iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ── À Propos avec photo ── */
.about-img {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about .col-lg-7 p {
  text-align: left;
  max-width: 100%;
}

/* ── Optimisations performances ── */
img { max-width: 100%; height: auto; }
.services-section img,
.timeline-image img { will-change: auto; }
