/* ===================================================
   MET CRÉATION — Feuille de style principale
   =================================================== */

/* ---- Variables couleurs ---- */
:root {
  --dark:    #1c1c2e;
  --darker:  #12121e;
  --accent:  #cc2222;
  --accent2: #a01818;
  --light:   #f5f5f5;
  --grey:    #6c757d;
  --white:   #ffffff;
  --card-bg: #ffffff;
  --section-alt: #f8f8f8;
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Oswald', sans-serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ---- Utilitaires ---- */
.text-accent { color: var(--accent) !important; }
.btn-accent {
  background-color: var(--accent);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: .5px;
  border: none;
  border-radius: 4px;
  transition: background .2s, transform .15s;
}
.btn-accent:hover {
  background-color: var(--accent2);
  color: #fff;
  transform: translateY(-2px);
}

/* ---- Logo ---- */
.navbar-logo {
  height: 56px;
  width: 56px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
}
.navbar-logo:hover { transform: scale(1.05); }
.footer-logo {
  height: 48px;
  width: 48px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
  display: inline-block;
}

/* ---- Navbar ---- */
#navbar {
  background: transparent;
  transition: background .3s, box-shadow .3s;
  padding: 16px 0;
}
#navbar.scrolled {
  background: var(--darker) !important;
  box-shadow: 0 2px 15px rgba(0,0,0,.4);
  padding: 10px 0;
}
.nav-link {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: .5px;
  color: rgba(255,255,255,.9) !important;
  transition: color .2s;
  padding: 6px 14px !important;
}
.nav-link:hover { color: var(--accent) !important; }
.btn-devis {
  background: var(--accent);
  color: #fff !important;
  border-radius: 4px;
  font-weight: 600;
}
.btn-devis:hover {
  background: var(--accent2);
  color: #fff !important;
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  background: url('../images/hero.jpg') center center / cover no-repeat;
  background-color: var(--darker);
  position: relative;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12,12,28,.85) 0%, rgba(30,30,50,.6) 100%);
}
.hero .container { z-index: 1; }
.hero-surtitle {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-cta .btn { border-radius: 4px; font-family: 'Oswald', sans-serif; font-size: 1.05rem; }

/* ---- Bandeau atouts ---- */
.atouts {
  background: var(--dark);
  color: #fff;
}
.atouts p { font-size: .95rem; }

/* ---- Sections communes ---- */
.section-label {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: .85rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}
.section-subtitle {
  color: var(--grey);
  max-width: 560px;
  margin: 0 auto;
}

/* ---- Services ---- */
.section-services { background: #fff; }
.service-card {
  background: var(--section-alt);
  border-radius: 8px;
  padding: 32px 28px;
  height: 100%;
  border-top: 4px solid transparent;
  transition: border-color .25s, box-shadow .25s, transform .2s;
}
.service-card:hover {
  border-top-color: var(--accent);
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
  transform: translateY(-4px);
}
.service-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 16px;
}
.service-card h3 {
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 10px;
}
.service-card p { font-size: .93rem; color: #555; margin-bottom: 0; }
.service-card--cta {
  background: var(--dark);
  border-top-color: var(--accent);
  color: #fff;
}
.service-card--cta h3 { color: #fff; }
.service-card--cta p { color: rgba(255,255,255,.75); }

/* ---- Réalisations ---- */
.section-realisations { background: var(--section-alt); }
.galerie-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 3/2;
  background: #ccc;
  cursor: pointer;
}
.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
  display: block;
}
.galerie-item:hover img { transform: scale(1.06); }
.galerie-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity .3s;
}
.galerie-item:hover .galerie-overlay { opacity: 1; }
.galerie-overlay span {
  font-family: 'Oswald', sans-serif;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
/* Placeholder si pas d'image */
.galerie-item.placeholder-img::before {
  content: 'Photo à venir';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ddd;
  color: #888;
  font-size: .9rem;
  font-style: italic;
}
.galerie-item.placeholder-img img { display: none; }

/* ---- À propos ---- */
.section-apropos { background: #fff; }
.apropos-img-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}
.apropos-img-wrapper img { border-radius: 8px; }
.apropos-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 20px 16px;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: .8rem;
  line-height: 1.2;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.apropos-badge i { font-size: 1.3rem; margin-bottom: 4px; }
.apropos-list { list-style: none; padding: 0; }
.apropos-list li { padding: 5px 0; font-size: .95rem; }

/* ---- Contact ---- */
.section-contact { background: var(--section-alt); }
.form-control, .form-select {
  border: 1.5px solid #ddd;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: .95rem;
  transition: border-color .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,160,32,.15);
}
.form-label { font-weight: 600; font-size: .9rem; color: #444; }
.contact-info-card {
  background: var(--dark);
  color: #fff;
  border-radius: 8px;
  padding: 32px 28px;
  height: auto;
}
.contact-info-card h4 { font-family: 'Oswald', sans-serif; font-size: 1.3rem; }
.contact-info-list { list-style: none; padding: 0; margin: 0; }
.contact-info-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: .93rem;
  line-height: 1.5;
}
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list i { margin-top: 3px; font-size: 1rem; min-width: 18px; }
.contact-info-list a { color: var(--accent); }
.contact-info-list a:hover { color: #fff; }
.map-wrapper iframe { display: block; }

/* ---- Footer ---- */
.footer {
  background: var(--darker);
  color: rgba(255,255,255,.7);
}
.footer-link {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  transition: color .2s;
}
.footer-link:hover { color: var(--accent); }

/* ---- Bouton retour en haut ---- */
.btn-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--accent);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .2s;
  z-index: 999;
}
.btn-top.visible { opacity: 1; pointer-events: auto; }
.btn-top:hover { transform: translateY(-3px); color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 767px) {
  .hero-title { font-size: 2rem; }
  .apropos-badge { width: 80px; height: 80px; right: -10px; bottom: -10px; font-size: .7rem; }
  .hero-cta .btn { display: block; width: 80%; margin: 6px auto; }
}
