/* =========================================================================
   Effebi Infissi e Serramenti — Tende da sole a Milano — site.css
   Archétype : « artisan store solaire / menuiserie — clair, chaleureux, confiance ».
   Signature : BANDES DE STORE (rayures) + LAMBREQUIN FESTONNÉ (bord ondulé en bas
   du hero, comme la toile d'une banne) + accent ambre-soleil.
   ANTI-FOOTPRINT : aucune classe custom — uniquement classes/ids Bootstrap existants,
   éléments et pseudo-éléments.
   ========================================================================= */

:root {
  --ef-night: #1f3a4d;          /* bleu-nuit ardoise (dominante) */
  --ef-night-rgb: 31, 58, 77;
  --ef-night-2: #162c3a;
  --ef-amber: #e8a33d;          /* ambre-soleil (accent) */
  --ef-amber-rgb: 232, 163, 61;
  --ef-amber-deep: #c9842a;
  --ef-cream: #f7f1e6;         /* crème (fond) */
  --ef-cream-2: #efe6d4;
  --ef-paper: #fffdf9;
  --ef-ink: #22303a;
  --ef-muted: #6a7480;
  --ef-line: #e2dac9;

  --bs-primary: #1f3a4d;
  --bs-primary-rgb: 31, 58, 77;

  --bs-body-bg: var(--ef-cream);
  --bs-body-color: #3c4651;
  --bs-body-font-family: 'Mukta', system-ui, -apple-system, sans-serif;
  --bs-body-font-size: 1.04rem;
  --bs-body-line-height: 1.7;

  --bs-heading-color: var(--ef-night);
  --bs-link-color: var(--ef-night);
  --bs-link-hover-color: var(--ef-amber-deep);
  --bs-border-color: var(--ef-line);

  --ef-shadow: 0 24px 50px -30px rgba(22, 44, 58, 0.5), 0 6px 16px -10px rgba(22, 44, 58, 0.22);
  /* rayures de store (ambre / crème) */
  --ef-stripes: repeating-linear-gradient(90deg, var(--ef-amber) 0 38px, var(--ef-cream) 38px 76px);
}

body { background-color: var(--ef-cream); -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 800; line-height: 1.16; letter-spacing: -0.01em; color: var(--ef-night);
}
p { text-wrap: pretty; }
::selection { background: var(--ef-amber); color: var(--ef-night); }
a { transition: color 0.16s ease, background 0.16s ease, transform 0.16s ease; }

#section-kicker {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--ef-amber-deep); display: inline-block; position: relative; padding-bottom: 0.7rem;
}
#section-kicker::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 54px; height: 3px; background: var(--ef-amber); }

/* =========================================================================
   TOP BAR + NAVBAR
   ========================================================================= */
#topbar { background: var(--ef-night-2); color: #cfdae2; font-size: 0.82rem; }
#topbar a { color: #cfdae2; text-decoration: none; }
#topbar-tel { font-weight: 600; }
#topbar-cta {
  background: var(--ef-amber); color: var(--ef-night) !important; font-weight: 700;
  padding: 0.25rem 0.85rem; border-radius: 999px;
}
#topbar-cta:hover { background: #fff; }
#topbar .bi { color: var(--ef-amber); }
#topbar-cta .bi { color: var(--ef-night); }

.navbar.sticky-top {
  background-color: rgba(255, 253, 249, 0.96) !important;
  backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--ef-line);
  box-shadow: 0 8px 24px -20px rgba(22, 44, 58, 0.5);
}
#brand-mark {
  width: 2.7rem; height: 2.7rem; border-radius: 0.7rem;
  background: linear-gradient(150deg, var(--ef-night), var(--ef-night-2));
  color: var(--ef-amber); font-size: 1.3rem;
  display: inline-flex; align-items: center; justify-content: center;
}
#brand-name { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--ef-night); }
#brand-sub { color: var(--ef-amber-deep); letter-spacing: 0.1em; font-size: 0.68rem; text-transform: uppercase; font-weight: 700; }
.navbar .nav-link {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 0.96rem;
  color: var(--ef-night) !important; position: relative; padding-inline: 0.85rem;
}
.navbar .nav-link::after {
  content: ''; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.3rem; height: 2px;
  background: var(--ef-amber); transform: scaleX(0); transform-origin: left;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
.navbar .nav-link:hover::after, .navbar .nav-link:focus::after { transform: scaleX(1); }
.navbar .nav-link:hover { color: var(--ef-amber-deep) !important; }

/* =========================================================================
   BOUTONS
   ========================================================================= */
.btn { --bs-btn-font-family: 'Plus Jakarta Sans', sans-serif; --bs-btn-font-weight: 700; border-radius: 8px; letter-spacing: 0.01em; }
.btn-lg { padding: 0.75rem 1.7rem; }
.btn-primary {
  --bs-btn-bg: var(--ef-night); --bs-btn-border-color: var(--ef-night);
  --bs-btn-hover-bg: var(--ef-amber); --bs-btn-hover-border-color: var(--ef-amber); --bs-btn-hover-color: var(--ef-night);
  box-shadow: 0 12px 24px -14px rgba(22, 44, 58, 0.8);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-light { --bs-btn-bg: #fff; --bs-btn-color: var(--ef-night); --bs-btn-border-color: #fff; --bs-btn-hover-bg: var(--ef-amber); --bs-btn-hover-color: var(--ef-night); --bs-btn-hover-border-color: var(--ef-amber); }
.btn-outline-light:hover { color: var(--ef-night) !important; }

/* =========================================================================
   HERO + LAMBREQUIN FESTONNÉ (signature)
   ========================================================================= */
#hero { position: relative; overflow: hidden; min-height: 78vh; display: flex; align-items: center; padding: 5rem 0 6rem; background: var(--ef-night); }
#hero-img { object-fit: cover; opacity: 0.34; z-index: 0; }
#hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(110deg, rgba(22, 44, 58, 0.86), rgba(22, 44, 58, 0.55)); }
#hero-inner { position: relative; z-index: 2; max-width: 54rem; }
#hero-title { color: #fff; font-size: clamp(1.7rem, 3.3vw, 2.9rem); font-weight: 800; line-height: 1.14; }
#hero-intro { color: #e7d9c2; font-size: 1.2rem; margin: 1.4rem 0 2rem; max-width: 44rem; }
/* lambrequin : bande rayée à bord festonné en bas du hero */
#hero-valance {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30px; z-index: 3;
  background: var(--ef-stripes);
  -webkit-mask: radial-gradient(15px at 50% 100%, transparent 98%, #000) 50% 0 / 40px 100% repeat-x;
  mask: radial-gradient(15px at 50% 100%, transparent 98%, #000) 50% 0 / 40px 100% repeat-x;
}

/* =========================================================================
   CATEGORIE (4 tuiles)
   ========================================================================= */
#banda-titolo { font-size: clamp(1.2rem, 2.3vw, 1.7rem); font-weight: 800; color: var(--ef-night); max-width: 60rem; margin-inline: auto; }
#cat-tile { background: var(--ef-paper); border: 1px solid var(--ef-line); border-radius: 14px; padding: 2rem 1rem; box-shadow: var(--ef-shadow); transition: transform 0.18s ease, border-color 0.18s ease; }
#cat-tile:hover { transform: translateY(-5px); border-color: var(--ef-amber); }
#cat-icon { display: inline-flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; border-radius: 50%; background: rgba(31, 58, 77, 0.08); color: var(--ef-night); font-size: 1.7rem; margin-bottom: 1rem; }
#cat-tile:hover #cat-icon { background: var(--ef-amber); color: var(--ef-night); }
#cat-title { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 0; color: var(--ef-night); }

/* =========================================================================
   HIGHLIGHTS
   ========================================================================= */
#hl-card { background: var(--ef-night); color: #e7d9c2; border-radius: 16px; box-shadow: var(--ef-shadow); position: relative; overflow: hidden; }
#hl-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--ef-stripes); background-size: 12px 100%; }
#hl-icon { color: var(--ef-amber); font-size: 2.4rem; flex-shrink: 0; }
#hl-title { color: #fff; font-size: 1.4rem; margin-bottom: 0.6rem; }
#hl-text { color: #cdd8e0; }
#hl-cta { color: var(--ef-amber); font-weight: 700; text-decoration: none; font-family: 'Plus Jakarta Sans', sans-serif; }
#hl-cta:hover { color: #fff; }

/* =========================================================================
   COSA FACCIAMO
   ========================================================================= */
#cf-intro { max-width: 52rem; color: var(--ef-muted); font-size: 1.1rem; }
#srv-card { background: var(--ef-paper); border: 1px solid var(--ef-line); border-radius: 14px; box-shadow: var(--ef-shadow); transition: transform 0.18s ease, box-shadow 0.18s ease; }
#srv-card:hover { transform: translateY(-4px); box-shadow: 0 30px 56px -30px rgba(22, 44, 58, 0.55); }
#srv-icon { display: inline-flex; align-items: center; justify-content: center; width: 3.2rem; height: 3.2rem; border-radius: 12px; background: rgba(232, 163, 61, 0.16); color: var(--ef-amber-deep); font-size: 1.45rem; margin-bottom: 1rem; }
#srv-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--ef-night); }
#srv-text { color: var(--ef-muted); }

/* =========================================================================
   PREVENTIVO (bande rayée)
   ========================================================================= */
#preventivo { position: relative; background: linear-gradient(120deg, var(--ef-amber), var(--ef-amber-deep)); padding: 4rem 0 3.5rem; }
#prev-stripe { position: absolute; left: 0; right: 0; top: 0; height: 12px; background: var(--ef-stripes); background-size: 24px 100%; opacity: 0.5; }
#prev-title { color: var(--ef-night); font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 800; }
#prev-tel a { color: var(--ef-night); font-weight: 700; text-decoration: none; }
#prev-tel a:hover { color: #fff; }

/* =========================================================================
   PROGETTI
   ========================================================================= */
#prog-figure { border-radius: 16px; overflow: hidden; border: 1px solid var(--ef-line); box-shadow: var(--ef-shadow); }
#prog-title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1rem; }
#prog-text { color: var(--ef-muted); font-size: 1.12rem; margin-bottom: 1.6rem; }

/* =========================================================================
   PAGES INTERNES — bandeau + corps d'article
   ========================================================================= */
#page-hero { position: relative; background: var(--ef-night); padding: 4.5rem 0 3.4rem; overflow: hidden; }
#page-hero #hero-eyebrow {
  display: inline-block; color: var(--ef-amber); font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 0.7rem;
}
#page-title { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.8rem); font-weight: 800; line-height: 1.14; max-width: 56rem; }

#page-body { background: var(--ef-cream); }
#pg-body p { font-size: 1.13rem; line-height: 1.8; color: #3c4651; margin-bottom: 1.3rem; }
#pg-lead { font-size: 1.28rem !important; color: var(--ef-night) !important; font-weight: 500; }
#pg-h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 2.4rem 0 1rem; position: relative; padding-left: 1rem; }
#pg-h2::before { content: ''; position: absolute; left: 0; top: 0.18em; bottom: 0.18em; width: 5px; background: var(--ef-amber); border-radius: 4px; }
#pg-h3 { font-size: 1.35rem; margin: 1.9rem 0 0.8rem; color: var(--ef-night); }
#pg-h4 { font-size: 1.2rem; margin: 1.6rem 0 0.7rem; color: var(--ef-night); }
#pg-list { list-style: none; padding-left: 0; margin: 0 0 1.4rem; }
#pg-list li { position: relative; padding-left: 2rem; margin-bottom: 0.9rem; font-size: 1.1rem; line-height: 1.7; color: #3c4651; }
#pg-list li::before { content: '\F26A'; font-family: 'bootstrap-icons'; position: absolute; left: 0; top: 0.05em; color: var(--ef-amber-deep); }

#pg-form { background: var(--ef-paper); border: 1px solid var(--ef-line); border-radius: 16px; box-shadow: var(--ef-shadow); border-top: 5px solid; border-image: var(--ef-stripes) 1; }
#pg-form-title { font-size: 1.4rem; margin-bottom: 1.4rem; color: var(--ef-night); }
#pg-form .form-control { background: #fff; border: 1px solid var(--ef-line); border-radius: 8px; padding: 0.7rem 1rem; }
#pg-form .form-control:focus { border-color: var(--ef-amber); box-shadow: 0 0 0 0.2rem rgba(232, 163, 61, 0.2); }
#pg-form .form-label { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; color: var(--ef-night); }
#pg-form .form-check-input:checked { background-color: var(--ef-night); border-color: var(--ef-night); }

/* =========================================================================
   SEO (bas de page)
   ========================================================================= */
#seo { background: var(--ef-cream-2); border-top: 1px solid var(--ef-line); }
#seo h2 { color: var(--ef-night); }
#seo p { color: var(--ef-muted); }

/* =========================================================================
   FOOTER
   ========================================================================= */
footer#colophon { background: var(--ef-night-2); color: #c4d0d9; padding: 3.5rem 0 2rem; border-top: 5px solid; border-image: var(--ef-stripes) 1; }
#footer-name { color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; }
#footer-name .bi, footer#colophon .bi { color: var(--ef-amber); }
#footer-label { color: var(--ef-amber); letter-spacing: 0.08em; }
footer#colophon a { color: #c4d0d9 !important; }
footer#colophon a:hover { color: #fff !important; }
#footer-piva { color: #8a97a1; }
#footer-rule { border-top-color: rgba(255, 255, 255, 0.12); opacity: 1; }
#copyright { color: #94a1aa; }

/* =========================================================================
   ACCESSIBILITÉ & RESPONSIVE
   ========================================================================= */
a:focus-visible, .btn:focus-visible, .nav-link:focus-visible { outline: 2px solid var(--ef-amber); outline-offset: 2px; }
@media (max-width: 991.98px) { #hero { min-height: 64vh; } #topbar-info { font-size: 0.76rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
