/* SD Consult : palette tirée des visuels (Terre en réseau : bleu nuit + soleil orange ; tableau : turquoise) */
:root {
  --navy: #081a3a;
  --navy-2: #0d2b5c;
  --teal: #1c8fa0;
  --orange: #ff8a2b;
  --orange-dark: #e9741a;
  --text: #1b2a41;
  --muted: #566883;
  --light: #f3f7fb;
  --link: #0a5db8;

  --bs-primary: var(--link);
  --bs-link-color: var(--link);
  --bs-link-hover-color: #08488f;
  --bs-body-color: var(--text);
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-border-radius: .75rem;
}

html { scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { line-height: 1.65; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }

/* Barre de navigation */
.site-nav { background: rgba(8, 26, 58, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.site-nav .navbar-brand { font-weight: 700; color: #fff; }
.site-nav .navbar-brand span { text-transform: uppercase; letter-spacing: .12em; font-size: 1.05rem; }
.site-nav .nav-link { color: rgba(255, 255, 255, .82); }
.site-nav .nav-link:hover, .site-nav .nav-link:focus { color: #fff; }
.site-nav .navbar-toggler { border-color: rgba(255, 255, 255, .4); }
.site-nav .navbar-toggler-icon { filter: invert(1); }

/* Boutons */
.btn-accent { --bs-btn-color: var(--navy); --bs-btn-bg: var(--orange); --bs-btn-border-color: var(--orange);
  --bs-btn-hover-color: var(--navy); --bs-btn-hover-bg: var(--orange-dark); --bs-btn-hover-border-color: var(--orange-dark);
  --bs-btn-active-color: var(--navy); --bs-btn-active-bg: var(--orange-dark); --bs-btn-active-border-color: var(--orange-dark);
  --bs-btn-disabled-color: var(--navy); --bs-btn-disabled-bg: var(--orange); --bs-btn-disabled-border-color: var(--orange);
  font-weight: 600; }
.btn-primary { --bs-btn-bg: var(--link); --bs-btn-border-color: var(--link);
  --bs-btn-hover-bg: #08488f; --bs-btn-hover-border-color: #08488f;
  --bs-btn-active-bg: #073d78; --bs-btn-active-border-color: #073d78;
  --bs-btn-disabled-bg: var(--link); --bs-btn-disabled-border-color: var(--link); }

/* Bandeau d'accueil */
.hero { position: relative; display: flex; align-items: center; min-height: 100svh; padding: 7rem 0 4rem; color: #fff; background: var(--navy); overflow: hidden; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% center; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5, 14, 36, .88) 0%, rgba(5, 14, 36, .6) 48%, rgba(5, 14, 36, .12) 100%); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 750; max-width: 26ch; }
.hero .lead { max-width: 38rem; color: rgba(255, 255, 255, .88); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--orange); }
.section-light .eyebrow, .section-white .eyebrow { color: var(--teal); }

/* Sections */
.section { padding: 5rem 0; }
.section-light { background: var(--light); }
.section-dark { background: var(--navy); color: #fff; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; margin-bottom: 1rem; }
.section-intro { max-width: 46rem; color: var(--muted); }
.section-dark .section-intro, .section-media .section-intro { color: rgba(255, 255, 255, .85); }

/* Cartes de service */
.card-service { height: 100%; padding: 2rem; border: 0; border-radius: 1rem; background: #fff; box-shadow: 0 .25rem 1.5rem rgba(8, 26, 58, .08); }
.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; margin-bottom: 1.1rem;
  border-radius: 50%; background: rgba(28, 143, 160, .12); color: var(--teal); font-size: 1.5rem; }
.card-service h3 { font-size: 1.25rem; font-weight: 700; }

/* Listes à puces avec icône */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; padding: .55rem 0; }
.check-list .icon { flex: none; margin-top: .3rem; color: var(--orange); font-size: 1.15rem; }

/* Section avec image de fond */
.section-media { position: relative; overflow: hidden; color: #fff; background: var(--navy); }
.section-media .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.section-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 36, 54, .9) 0%, rgba(4, 36, 54, .72) 42%, rgba(4, 36, 54, .22) 100%); }
.section-media > .container { position: relative; z-index: 1; }
.panel-glass { padding: 1.25rem 1.75rem; border-radius: 1rem; background: rgba(4, 36, 54, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

/* Encadré chèques-entreprises */
.callout { padding: 2rem; border-left: .35rem solid var(--orange); border-radius: .75rem; background: #fff; box-shadow: 0 .25rem 1.5rem rgba(8, 26, 58, .08); }

/* Pages de services : bandeau de titre et texte courant */
.page-header { padding: 8rem 0 3.5rem; color: #fff; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); }
.page-header h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 750; max-width: 24ch; }
.page-header .lead { max-width: 46rem; color: rgba(255, 255, 255, .88); margin-bottom: 0; }
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 700; margin: 2.5rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin-top: 1.5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.card-service h3 a { color: var(--text); text-decoration: none; }
.card-service:hover h3 a { color: var(--link); }

/* Références */
.ref { height: 100%; display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.25rem; border-left: .25rem solid var(--teal); border-radius: .5rem; background: #fff; box-shadow: 0 .15rem 1rem rgba(8, 26, 58, .07); }
.ref span { color: var(--muted); font-size: .95rem; }
.section-light .ref { background: #fff; }

/* Portrait */
.portrait { max-width: 100%; height: auto; border-radius: 1rem; box-shadow: 0 .5rem 2rem rgba(8, 26, 58, .18); }

/* Carte Google Maps en deux temps */
.map-box { position: relative; aspect-ratio: 4 / 3; border-radius: 1rem; overflow: hidden; background: #e4ecf5; }
.map-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; font-size: .95rem; }
.map-box iframe, .map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1rem; }
.contact-list .icon { flex: none; margin-top: .3rem; color: var(--teal); font-size: 1.2rem; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: rgba(28, 143, 160, .12); color: var(--teal); font-size: 1.2rem; text-decoration: none; }
.social a:hover { background: var(--teal); color: #fff; }
.form-control:focus { border-color: var(--teal); box-shadow: 0 0 0 .25rem rgba(28, 143, 160, .25); }

/* Pages simples (mentions légales, confidentialité, merci, 404) */
.page-simple { padding: 8rem 0 4rem; }
.page-simple h2 { font-size: 1.4rem; margin-top: 2.2rem; }

/* Pied de page */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .8); }
.site-footer a { color: #fff; }
.site-footer .social a { background: rgba(255, 255, 255, .12); color: #fff; }
.site-footer .social a:hover { background: var(--orange); color: var(--navy); }
.site-footer small { color: rgba(255, 255, 255, .62); }

/* Bandeau cookies aux couleurs du site */
#cc-main { --cc-btn-primary-bg: var(--navy); --cc-btn-primary-border-color: var(--navy); --cc-btn-primary-hover-bg: var(--navy-2);
  --cc-btn-primary-hover-border-color: var(--navy-2); --cc-btn-secondary-hover-bg: #dde6f1; --cc-toggle-on-bg: var(--teal);
  --cc-font-family: var(--bs-body-font-family); }
