/* ==========================================================================
   Cirage Aiguisage NG — couche de modernisation (2026)
   Chargée APRÈS styles.css : elle surcharge le thème Freelancer sans le modifier.
   Pour revenir en arrière : retirer le <link> vers modern.css et snow.js dans
   index.html et en/index.html (ou restaurer _BACKUP_avant-modernisation_2026-11-07).
   ========================================================================== */

:root {
  --ink: #0f2742;          /* texte, bleu-nuit */
  --ink-soft: #46607c;
  --ice: #eaf4fc;          /* fond glacé */
  --ice-2: #f6fafe;
  --sky: #5ba8e0;
  --blue: #2a7fc1;
  --blue-deep: #1f64a0;
  --orange: #f07a2c;
  --orange-deep: #d9631a;
  --green: #5ec46f;
  --yellow: #f2c230;
  --red: #e85a4f;
  --radius: 1.25rem;
  --shadow-sm: 0 2px 8px rgba(15, 39, 66, .08);
  --shadow-md: 0 10px 30px rgba(15, 39, 66, .12);

  --bs-primary-rgb: 42, 127, 193;
  --bs-secondary-rgb: 15, 39, 66;
  --bs-body-font-family: "Plus Jakarta Sans", "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-color: #1c3350;
  --bs-body-bg: var(--ice-2);
}

html { scroll-padding-top: 5.5rem; scroll-behavior: smooth; }
body {
  font-family: var(--bs-body-font-family);
  background: var(--ice-2);
  color: var(--bs-body-color);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .lead, #mainNav { font-family: var(--bs-body-font-family); }
h2, h3 { letter-spacing: -.01em; }
.page-section .page-section-heading { font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--ink) !important; }
.bg-primary .page-section-heading { color: #fff !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Navigation : pilule vitrée flottante ---------- */
#mainNav.bg-secondary {
  background-color: rgba(255, 255, 255, .78) !important;
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  letter-spacing: .02em;
}
#mainNav .navbar-brand { color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
#mainNav .navbar-nav li.nav-item a.nav-link { color: var(--ink); border-radius: 999px; }
#mainNav .navbar-nav li.nav-item a.nav-link:hover { color: var(--blue); background: rgba(42, 127, 193, .10); }
#mainNav .navbar-nav li.nav-item a.nav-link:active,
#mainNav .navbar-nav li.nav-item a.nav-link:focus { color: var(--blue-deep); }
#mainNav .navbar-nav li.nav-item a.nav-link.active { color: var(--blue); }

@media (min-width: 992px) {
  #mainNav {
    top: .75rem; left: 1rem; right: 1rem;
    border-radius: 999px;
    padding-top: .6rem; padding-bottom: .6rem;
  }
  #mainNav .navbar-brand { font-size: 1.3em; }
  #mainNav.navbar-shrink { padding-top: .35rem; padding-bottom: .35rem; }
  #mainNav.navbar-shrink .navbar-brand { font-size: 1.15em; }
  #mainNav .navbar-nav > li.nav-item > a.nav-link.active,
  #mainNav .navbar-nav > li.nav-item > a.nav-link.active:active,
  #mainNav .navbar-nav > li.nav-item > a.nav-link.active:focus,
  #mainNav .navbar-nav > li.nav-item > a.nav-link.active:hover {
    color: #fff; background: var(--blue);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 8.5rem 0 4rem;
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(240, 122, 44, .14), transparent 60%),
    linear-gradient(180deg, #b7dbf5 0%, #d9ecfa 38%, var(--ice-2) 100%);
}
.hero #snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .95rem; border-radius: 999px;
  background: rgba(255, 255, 255, .7); border: 1px solid rgba(42, 127, 193, .25);
  color: var(--ink); font-size: .85rem; font-weight: 700;
}
.hero-pill::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--orange); }
.hero-title {
  margin: 1.25rem auto .5rem; max-width: 18ch;
  font-size: clamp(2.2rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em;
  color: var(--ink);
}
.hero-title span { display: block; margin-top: .6rem; font-size: .42em; font-weight: 700; letter-spacing: 0; color: var(--blue-deep); }
.hero-lead { max-width: 46rem; margin: 1rem auto 1.75rem; font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--ink-soft); }
.hero-lead em { font-style: italic; font-weight: 700; color: var(--blue); }
.hero-lead strong { color: var(--orange-deep); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.btn-hero {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; text-decoration: none; line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-hero-primary { background: var(--orange); color: #fff; }
.btn-hero-primary:hover { background: var(--orange-deep); color: #fff; }
.btn-hero-ghost { background: rgba(255, 255, 255, .85); color: var(--ink); border-color: rgba(15, 39, 66, .15); }
.btn-hero-ghost:hover { color: var(--blue-deep); border-color: var(--blue); }
.hero-photo {
  margin: 3rem auto 0; max-width: 1080px;
  border-radius: calc(var(--radius) * 1.4); overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 39, 66, .22); border: 6px solid rgba(255, 255, 255, .85);
}
.hero-photo img { display: block; width: 100%; height: auto; }

/* ---------- Sections : retrait des marges négatives de l'ancien hero ---------- */
.page-section { padding: 5rem 0; }
#services, #gallery { margin-top: 0 !important; }

/* Services : image rondes + ombre, tableau doux */
.service .service-item { border-radius: var(--radius); box-shadow: var(--shadow-md); transition: transform .2s ease; }
.service .service-item:hover { transform: translateY(-4px); }
.service .table { border-radius: var(--radius); overflow: hidden; }
.service [style*="beige"] { background: #fff !important; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.5rem; }
.service .col-md-8 hr { opacity: .15; }

/* À propos : dégradé bleu plutôt qu'aplat */
.bg-primary { background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 55%, var(--sky) 100%) !important; }
#about .carousel { border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 32px rgba(0, 0, 0, .25); }

/* Galerie : fond glacé au lieu de l'orange plein */
#gallery, #gallery .photo-gallery, #gallery .photos { background: var(--ice) !important; }
#gallery .item img { border-radius: .9rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
#gallery .item:hover img { transform: scale(1.03); box-shadow: var(--shadow-md); }

/* Pied de page */
.footer { background-color: var(--ink); }
.copyright { background-color: #0a1c33; }

/* ---------- Mobile ---------- */
@media (max-width: 991.98px) {
  #mainNav.bg-secondary { padding: .5rem 0; }
  .hero { padding-top: 6.5rem; }
}
@media (max-width: 575.98px) {
  .hero-title { max-width: 14ch; }
  .btn-hero { width: 100%; justify-content: center; }
}

/* ---------- Finitions ---------- */
.service h6 { font-size: 1.05rem; font-weight: 400; line-height: 1.7; max-width: 60rem; }
.service .table-no-service > td { background: var(--ice) !important; color: var(--ink); }
.service .table-success > td { background: #eef7f1; }

/* ---------- Icône Facebook (SVG net à toute résolution) ---------- */
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 6px 18px rgba(0, 0, 0, .3);
  transition: color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.social-link .social-icon { width: 3.5rem; height: 3.5rem; display: block; }
.social-link:hover, .social-link:focus-visible {
  transform: translateY(-2px) scale(1.05); filter: brightness(1.08);
  box-shadow: 0 0 0 2px #fff, 0 0 0 7px rgba(24, 172, 254, .35), 0 10px 24px rgba(0, 0, 0, .3);
}
.social-link:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* ---------- Conseils + FAQ (mise en page propre) ---------- */
.tips-grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .tips-grid { grid-template-columns: 1fr 1fr; } }
.tip-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.5rem 1.6rem; border-top: 5px solid var(--sky); }
.tip-card:nth-child(2) { border-top-color: var(--orange); }
.tip-card h3 { font-size: 1.25rem; font-weight: 800; color: var(--ink); margin: 0 0 .6rem; }
.tip-card p { margin: 0; line-height: 1.7; color: var(--ink-soft); }
