/* ============================================================
   MFC Construction — Design Industriel & Moderne
   Identité : Anthracite Zinc · Ambre Chantier · Géométrique
   Police : Oswald (titres) + Inter (corps)
   Inspiré du béton, de l'acier et des engins de chantier
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ========================
   BASE
======================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* --- Typographie industrielle : Oswald sur tous les titres --- */
h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.02em;
}

/* Scrollbar acier */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f4f4f5; }
::-webkit-scrollbar-thumb { background: #18181b; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: #f59e0b; }

/* ========================
   OVERRIDE GLOBAL : FORMES CARRÉES
   Le béton n'est pas arrondi.
======================== */
.rounded-2xl,
.rounded-xl,
.rounded-lg   { border-radius: 4px !important; }
.rounded-full { border-radius: 3px !important; }
.rounded      { border-radius: 4px !important; }
.rounded-sm   { border-radius: 2px !important; }

/* ========================
   OVERRIDE GLOBAL : SUPPRESSION DES OMBRES DOUCES
   Remplacées par des bordures ou ombres dures
======================== */
.shadow-2xl,
.shadow-xl,
.shadow-lg  { box-shadow: none !important; }
.shadow-sm  {
  box-shadow: none !important;
  border: 1px solid #e4e4e7 !important;
}

/* ========================
   OVERRIDE COULEURS : MARINE → ANTHRACITE ZINC
======================== */
.bg-navy-800              { background-color: #18181b !important; }
.bg-navy-900              { background-color: #09090b !important; }
.bg-navy-700              { background-color: #27272a !important; }
.text-navy-800            { color: #18181b !important; }
.border-navy-800          { border-color: #18181b !important; }
.hover\:bg-navy-900:hover { background-color: #09090b !important; }

/* ========================
   OVERRIDE COULEURS : ORANGE → AMBRE CHANTIER
======================== */
.bg-orange-500            { background-color: #f59e0b !important; }
.text-orange-500          { color: #f59e0b !important; }
.text-orange-400          { color: #fbbf24 !important; }
.text-orange-300          { color: #fde68a !important; }
.border-orange-500        { border-color: #f59e0b !important; }
.bg-orange-400            { background-color: #fbbf24 !important; }
.bg-orange-100            { background-color: #fef3c7 !important; }

/* Transparent background variants */
.bg-orange-500\/15        { background-color: rgba(245,158,11,0.15) !important; }
.bg-orange-500\/20        { background-color: rgba(245,158,11,0.18) !important; }
.border-orange-500\/35    { border-color: rgba(245,158,11,0.35) !important; }
.border-orange-500\/30    { border-color: rgba(245,158,11,0.30) !important; }
.border-orange-500\/40    { border-color: rgba(245,158,11,0.40) !important; }

.hover\:bg-orange-500:hover     { background-color: #f59e0b !important; }
.group:hover .group-hover\:bg-orange-500 { background-color: #f59e0b !important; }
.group:hover .group-hover\:text-white    { color: #09090b !important; }

/* Section bg overrides */
.bg-slate-50  { background-color: #fafafa !important; }

/* ========================
   PAGE LOADER
======================== */
.page-loader {
  position: fixed;
  inset: 0;
  background: #09090b;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }

/* Spinner carré industriel */
.loader-ring {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255,255,255,0.08);
  border-top-color: #f59e0b;
  border-radius: 0;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========================
   NAVBAR
======================== */
.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
/* Fond sombre haut de gamme (lisible sur hero + logo inversé) */
.navbar.transparent {
  background-color: rgba(2, 6, 23, 0.88) !important; /* slate-950 / ~88% */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.navbar.scrolled {
  background-color: #020617 !important; /* slate-950 */
  box-shadow: 0 3px 0 #f59e0b;   /* ligne ambre signature */
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Underline nav links → ambre */
.nav-link { position: relative; transition: color 0.3s ease; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: #f59e0b;
  border-radius: 0;
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ========================
   BURGER MENU
======================== */
.burger-line {
  display: block;
  width: 24px; height: 2px;
  background: white;
  border-radius: 0;
  transition: transform 0.35s ease, opacity 0.35s ease, width 0.35s ease;
}
.burger-btn.open .burger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-btn.open .burger-line:nth-child(2) { opacity: 0; width: 0; }
.burger-btn.open .burger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.45s ease, opacity 0.45s ease; }
.mobile-menu.open { max-height: 500px; opacity: 1; }

/* ========================
   SCROLL ANIMATIONS
======================== */
.anim { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.anim.from-left  { transform: translateX(-36px); }
.anim.from-right { transform: translateX(36px); }
.anim.visible    { opacity: 1; transform: translate(0,0); }

.anim-d1 { transition-delay: 0.08s; }
.anim-d2 { transition-delay: 0.16s; }
.anim-d3 { transition-delay: 0.24s; }
.anim-d4 { transition-delay: 0.32s; }
.anim-d5 { transition-delay: 0.40s; }
.anim-d6 { transition-delay: 0.48s; }

/* ========================
   HERO — LAYOUT CENTRÉ / OVERLAY INDUSTRIEL
======================== */
.hero-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay : noir chaud quasi total, trait ambre en bas */
.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(9, 9, 11, 0.90) 0%,
    rgba(9, 9, 11, 0.72) 50%,
    rgba(9, 9, 11, 0.88) 100%
  );
}

/* CENTRAGE DU CONTENU HERO via CSS */
section.hero-bg .max-w-3xl {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
section.hero-bg .max-w-3xl .flex.flex-wrap.gap-4    { justify-content: center; }
section.hero-bg .max-w-3xl .flex.flex-wrap.gap-6,
section.hero-bg .max-w-3xl .flex.flex-wrap.gap-8    { justify-content: center; }

/* Titre héro : Oswald massif, uppercase */
.hero-title-main {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.1rem, 5.5vw, 3.8rem);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Séparateur décoratif sous le titre — trait ambre */
.hero-title-main::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  background: #f59e0b;
  margin: 0.9rem auto 0;
}

/* ========================
   PAGE HEADER (pages internes)
======================== */
.page-header-bg { background-size: cover; background-position: center; position: relative; }
.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(9,9,11,0.93) 0%,
    rgba(9,9,11,0.72) 55%,
    rgba(9,9,11,0.45) 100%
  );
}
/* Titre de page en majuscules Oswald */
.page-header-bg h1 {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

/* ========================
   TITRES DE SECTION — identité industrielle
======================== */
h2 {
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
h3 { letter-spacing: 0.01em; }

/* Trait d'accentuation de titre */
.title-accent-line {
  width: 36px;
  height: 3px;
  background: #f59e0b;   /* ambre pur, pas de dégradé */
  border-radius: 0;
  flex-shrink: 0;
}

/* Label accent de section (style "plaque d'atelier") */
.text-orange-500.font-semibold.text-sm.uppercase {
  font-family: 'Oswald', sans-serif !important;
  letter-spacing: 0.12em;
}

/* ========================
   BOUTONS — Style chantier
   Ambre + fond noir · Ombre dure au hover
======================== */
.btn-orange {
  background: #f59e0b;
  color: #09090b;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 2px !important;
  box-shadow: none !important;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-orange:hover {
  background: #d97706;
  color: #09090b;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.35) !important;
  filter: none;
}

.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.60);
  color: white;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 2px !important;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn-outline-white:hover {
  background-color: white;
  color: #09090b;
  border-color: white;
}

.btn-navy {
  background-color: #18181b;
  color: white;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 2px !important;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-navy:hover {
  background-color: #09090b;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(245,158,11,0.5) !important;
}

/* ========================
   CARDS DE SERVICE — acier plat
======================== */
.service-card {
  border: 1px solid #e4e4e7;
  border-left: 3px solid #e4e4e7;
  border-radius: 2px !important;
  box-shadow: none !important;
  transition: border-left-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}
.service-card:hover {
  border-left-color: #f59e0b;
  transform: translateX(5px);
  box-shadow: none !important;
  background-color: #fafafa !important;
}
.service-card .card-icon {
  border-radius: 2px !important;
  transition: background-color 0.25s ease;
}
.service-card:hover .card-icon {
  background-color: #f59e0b !important;
}
.service-card:hover .card-icon svg {
  color: #09090b !important;
}

/* ========================
   STATS BAND
======================== */
.stat-item {
  border-left: 4px solid #f59e0b;
  transition: padding-left 0.25s ease;
}
.stat-item:hover { padding-left: 1.5rem; }

/* ========================
   À PROPOS — Badge flottant
======================== */
.absolute.bg-orange-500 {
  background-color: #f59e0b !important;
  border-radius: 2px !important;
  box-shadow: none !important;
}
/* Green badge (certifié) */
.bg-white\/95 { border-radius: 2px !important; }

/* Check items */
.check-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.check-icon {
  width: 20px; height: 20px;
  background: #f59e0b !important;
  border-radius: 0 !important;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ========================
   GALERIE RÉALISATIONS
======================== */
.gallery-card {
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border-radius: 2px !important;
}
.gallery-card img {
  transition: transform 0.55s ease;
  width: 100%; height: 100%;
  object-fit: cover;
}
.gallery-card:hover img { transform: scale(1.06); }

.gallery-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9,9,11,0.96) 0%, rgba(9,9,11,0.3) 55%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.25rem;
}
.gallery-card:hover .gallery-card-overlay { opacity: 1; }

/* Badge catégorie dans la galerie */
.gallery-card-overlay .inline-block.bg-orange-500 {
  border-radius: 1px !important;
}

/* ========================
   DÉTAIL SERVICE
======================== */
.service-detail-img { overflow: hidden; border-radius: 2px !important; }
.service-detail-img img { transition: transform 0.6s ease; }
.service-detail-img:hover img { transform: scale(1.03); }

/* ========================
   FORMULAIRE CONTACT
======================== */
.form-control {
  width: 100%;
  border: 1px solid #d4d4d8;
  border-radius: 2px !important;
  padding: 0.875rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: #18181b;
  background: white;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: #18181b;
  box-shadow: 0 0 0 3px rgba(24,24,27,0.07) !important;
}
.form-control.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.08) !important;
}

/* Labels de formulaire — typographie industrielle */
.form-label {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #3f3f46;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.error-msg { font-size: 0.78rem; color: #ef4444; margin-top: 0.35rem; }

#rgpdWrap.rgpd-error {
  outline: 2px solid #ef4444;
  outline-offset: 4px;
  border-radius: 12px;
}

/* Carte formulaire — bordure ambre à gauche */
.bg-white.rounded-2xl.shadow-xl.border,
.bg-white.rounded-2xl.shadow-xl {
  border-radius: 2px !important;
  box-shadow: none !important;
  border: 1px solid #e4e4e7 !important;
  border-left: 4px solid #f59e0b !important;
}

/* ========================
   CARDS INFO CONTACT
======================== */
.contact-info-card {
  border: 1px solid #e4e4e7 !important;
  border-left: 3px solid #f59e0b !important;
  border-radius: 2px !important;
  background: white !important;
  box-shadow: none !important;
  transition: transform 0.22s ease;
}
.contact-info-card:hover { transform: translateX(4px); }

/* ========================
   FAQ ACCORDÉON
======================== */
details.group {
  border-radius: 2px !important;
  border-left: 3px solid transparent;
  transition: border-left-color 0.25s ease;
}
details.group[open] { border-left-color: #f59e0b; }
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* ========================
   NAVIGATION RAPIDE (services.html)
======================== */
.group .w-11 { border-radius: 2px !important; }

/* ========================
   FOOTER
======================== */
footer { background-color: #09090b !important; }

.footer-link {
  transition: color 0.22s ease, padding-left 0.22s ease;
  display: inline-block;
}
.footer-link:hover { color: #f59e0b !important; padding-left: 5px; }

/* Icônes sociales footer */
.w-9.h-9.bg-white\/10 { border-radius: 2px !important; }

/* ========================
   BOUTONS FILTRE GALERIE
======================== */
.filter-btn {
  border-radius: 2px !important;
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem !important;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  transition: background-color 0.22s, color 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.filter-btn.active {
  background-color: #18181b !important;
  color: white !important;
  border-color: #18181b !important;
  box-shadow: 3px 3px 0 rgba(245,158,11,0.55) !important;
}
.filter-btn:not(.active):hover { border-color: #18181b !important; }

/* ========================
   SCROLL TO TOP — Ambre + ombre dure
======================== */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 42px; height: 42px;
  border-radius: 2px !important;
  background: #f59e0b;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease;
  z-index: 1000;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.25) !important;
}
.scroll-top-btn svg { color: #09090b !important; }
.scroll-top-btn.visible { opacity: 1; transform: translateY(0); }
.scroll-top-btn:hover {
  background: #d97706;
  transform: translate(-2px, -2px) !important;
  box-shadow: 5px 5px 0 rgba(0,0,0,0.3) !important;
}

/* ========================
   PATTERN FOND — grille industrielle
======================== */
.pattern-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ========================
   ENCART "POURQUOI MFC" (contact.html)
======================== */
.bg-navy-800.rounded-2xl.p-6 { border-radius: 2px !important; }

/* ========================
   CHIFFRES STATS (réalisations.html)
======================== */
.bg-white.rounded-2xl.p-7 {
  border: 1px solid #e4e4e7 !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  border-top: 3px solid #f59e0b !important;
}

/* ========================
   BADGES HERO ET SECTIONS
======================== */
/* Badge "BTP · Bouches-du-Rhône" */
.inline-flex.items-center.gap-2.bg-orange-500\/15 {
  border-radius: 2px !important;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.1em;
}
/* Badge "Devis gratuit" dans CTA */
.inline-block.bg-orange-500\/20 { border-radius: 2px !important; }

/* ========================
   MAP PLACEHOLDER (contact.html)
======================== */
.relative.rounded-2xl.overflow-hidden { border-radius: 2px !important; }

/* Badge flottant certifié dans about */
.absolute.top-6.left-6 { border-radius: 2px !important; }

/* ========================
   ICÔNES DANS LES CARTES
======================== */
.w-14.h-14,
.w-12.h-12,
.w-11.h-11 { border-radius: 2px !important; }

/* ========================
   BREADCRUMB
======================== */
.text-orange-400.font-medium { color: #fbbf24 !important; }

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 768px) {
  .hero-title-main { font-size: 1.95rem; }
  h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
}

/* ========================
   ANIMATION BOUNCE (scroll cue)
======================== */
.animate-bounce { animation: indBounce 2.2s infinite; }
@keyframes indBounce {
  0%, 100% { transform: translateY(-30%); animation-timing-function: cubic-bezier(.8,0,1,1); }
  50%       { transform: none; animation-timing-function: cubic-bezier(0,0,.2,1); }
}

/* ========================
   ANIMATE-SPIN
======================== */
.animate-spin { animation: spin 1s linear infinite; }

/* ========================
   TRANSITIONS DOUCES SUR IMG
======================== */
img { transition: opacity 0.3s ease; }
img:not([src]) { opacity: 0; }
