:root {
  --navy: #0046b4;
  --gold: #c9a84c;
  --surface: #f5f7fb;
  --ink: #121826;
  --ink-muted: rgba(18, 24, 38, 0.72);
  --line: rgba(0, 70, 180, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(0, 70, 180, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 8%, rgba(201, 168, 76, 0.1), transparent 50%),
    var(--surface);
  color: var(--ink);
  font-family: "Source Sans 3", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

p,
li,
a,
button,
input,
textarea,
label {
  font-family: "Source Sans 3", sans-serif;
}

body.font-body main p,
body.font-body main li,
body.font-body footer p,
body.font-body footer li {
  text-align: start !important;
  text-justify: auto;
  hyphens: none;
  overflow-wrap: break-word;
  line-height: 1.65;
}

body.font-body main section#accueil p,
body.font-body .site-tagline,
body.font-body .hero-brand,
body.font-body .hero-title {
  text-align: start !important;
  line-height: 1.35;
}

section {
  scroll-margin-top: 96px;
}

.section-shell {
  position: relative;
  padding: 5.5rem 0;
}

.section-shell > * {
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.section-kicker {
  font-family: "Outfit", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

.accent-rule {
  width: 64px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--navy), rgba(0, 70, 180, 0.2));
}

/* Compatibilité pages internes (non refondues) */
.gold-rule {
  width: 110px;
  height: 2px;
  background: linear-gradient(to right, rgba(0, 70, 180, 1), rgba(0, 70, 180, 0.2));
}

/* —— Navbar claire —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0, 70, 180, 0.08);
  background: rgba(245, 247, 251, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header__nav {
  color: var(--ink);
}

.site-header__link {
  color: rgba(18, 24, 38, 0.72);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-header__link:hover {
  color: var(--navy);
}

.site-header__mobile {
  border-top: 1px solid rgba(0, 70, 180, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

/* —— Hero clair full-bleed —— */
#contenu-principal section#accueil.home-hero-bg {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 70% at 15% 20%, rgba(0, 70, 180, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 70%, rgba(201, 168, 76, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(245, 247, 251, 0.2) 100%);
  min-height: calc(100vh - 88px);
  display: flex;
  align-items: center;
}

.hero-brand {
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}

.hero-title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.85rem, 4.2vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.hero-title .text-accent {
  color: var(--navy);
}

.hero-fade {
  animation: heroRise 0.9s ease-out both;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Boutons —— */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 9999px;
  background: var(--navy);
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  padding: 0.9rem 1.55rem;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 28px rgba(0, 70, 180, 0.22);
}

.btn-primary:hover {
  background: #003a96;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 70, 180, 0.28);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1.5px solid rgba(18, 24, 38, 0.18);
  background: transparent;
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  padding: 0.9rem 1.55rem;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(0, 70, 180, 0.04);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  transition: opacity 0.2s ease;
}

.btn-ghost:hover {
  opacity: 0.75;
}

/* —— Expertises (filets, pas de cards lourdes) —— */
.expertise-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.expertise-item {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease;
}

@media (min-width: 768px) {
  .expertise-item {
    grid-template-columns: 2rem 1fr;
    gap: 1.25rem;
    align-items: start;
  }
}

.expertise-item:hover {
  background: rgba(0, 70, 180, 0.02);
}

.expertise-item h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.expertise-item p {
  margin: 0.35rem 0 0;
  color: var(--ink-muted);
}

/* —— Méthode —— */
.method-steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.method-step {
  display: grid;
  gap: 0.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .method-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: none;
  }

  .method-step {
    padding: 0 1.25rem 0 0;
    border-bottom: none;
    border-right: 1px solid var(--line);
  }

  .method-step:last-child {
    border-right: none;
    padding-right: 0;
  }
}

.method-step__num {
  font-family: "Outfit", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--navy);
}

.method-step h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

.method-step p {
  margin: 0;
  color: var(--ink-muted);
}

/* —— FAQ —— */
.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-btn span {
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.faq-chevron {
  color: var(--navy);
  transition: transform 0.25s ease;
}

.faq-panel {
  padding: 0 0 1.25rem;
}

.faq-panel p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 42rem;
}

/* —— Contact clair —— */
#contenu-principal section#contact.home-contact-bg {
  background:
    radial-gradient(ellipse 70% 80% at 90% 20%, rgba(0, 70, 180, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(0, 70, 180, 0.05) 100%);
  color: var(--ink);
}

.form-input {
  width: 100%;
  border: 1px solid rgba(18, 24, 38, 0.14);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder {
  color: rgba(18, 24, 38, 0.45);
}

.form-input:focus-visible {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0, 70, 180, 0.15);
}

.contact-aside {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

@media (min-width: 1024px) {
  .contact-aside {
    border-top: none;
    border-left: 1px solid var(--line);
    padding-top: 0;
    padding-left: 2rem;
  }
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.site-footer a:hover {
  color: var(--navy);
}

/* —— Cookies (inchangé fonctionnellement) —— */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 1rem 1rem 1.25rem;
  background: linear-gradient(180deg, rgba(0, 70, 180, 0.94) 0%, rgba(0, 52, 130, 0.98) 100%);
  color: #f8f6f1;
  box-shadow: 0 -12px 40px rgba(0, 70, 180, 0.35);
  border-top: 1px solid rgba(201, 168, 76, 0.35);
}

html.cookie-banner--settled .cookie-banner {
  display: none !important;
}

.cookie-banner__inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.cookie-banner__title {
  font-family: "Outfit", sans-serif;
  font-size: 1.25rem;
  color: #c9a84c;
  margin: 0 0 0.35rem;
}

.cookie-banner__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(248, 246, 241, 0.92);
}

.cookie-banner__link {
  color: #c9a84c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__link:hover {
  color: #fff;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  flex-shrink: 0;
}

.cookie-banner__btn {
  cursor: pointer;
  border-radius: 9999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.cookie-banner__btn--primary {
  background: #c9a84c;
  color: #1a1a2e;
  border-color: #c9a84c;
}

.cookie-banner__btn--primary:hover {
  filter: brightness(1.05);
}

.cookie-banner__btn--outline {
  background: transparent;
  color: #f8f6f1;
  border-color: rgba(248, 246, 241, 0.45);
}

.cookie-banner__btn--outline:hover {
  border-color: #c9a84c;
  color: #c9a84c;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-fade,
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}
