/* Cabinet 2ST Consulting : socle commun (couleurs de la charte, boutons, en-tête, pied de page) */

:root {
  --navy: #082f5b;
  --navy-deep: #061f3e;
  --footer: #061f3e;
  --green: #008751;
  --gold: #f2c413;
  --red: #b40d24;
  --cream: #f7f3e5;
  --paper: #fbfaf4;
  --white: #ffffff;
  --ink: #162434;
  --muted: #586370;
  --line: rgba(8, 47, 91, 0.14);
  --sans: "DM Sans", Arial, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  /* Même marge latérale pour toutes les sections */
  --diff-bg: #e7eef6; /* bleu de la charte, très léger */
  --gutter-top: clamp(20px, 4vw, 72px);
  --gutter: var(--gutter-top);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
h1,
h2,
h3 {
  margin: 0;
  color: var(--navy-deep);
}
h1 em,
h2 em,
h3 em {
  font-family: var(--serif);
  font-weight: 500;
}
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
.svc-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon {
  width: 16px;
  height: 16px;
  flex: none;
}
.hidden,
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

/* Boutons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.button:hover {
  transform: translateY(-2px);
}
.button-gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.button-gold:hover {
  box-shadow: 0 10px 24px rgba(242, 196, 19, 0.35);
}
.button-line {
  border: 1.5px solid var(--navy);
  background: transparent;
  color: var(--navy);
}
.button-line:hover {
  background: var(--navy);
  color: var(--white);
}

/* Apparition au défilement (seulement si JavaScript est actif) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 88px;
  padding: 0 var(--gutter-top);
  background: var(--white);
  transition: box-shadow 0.25s;
}
.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(6, 31, 62, 0.08);
}
.brand {
  flex: none;
}
.brand img {
  width: 250px;
  height: auto;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-nav a:not(.nav-cta) {
  position: relative;
}
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 8px;
  height: 2px;
  background: var(--gold);
  transition: right 0.25s;
}
.site-nav a:not(.nav-cta):hover::after,
.site-nav a:not(.nav-cta):focus-visible::after {
  right: 0;
}
/* Lien de la page ou de la partie en cours */
.site-nav a[aria-current]:not(.nav-cta) {
  font-weight: 600;
}
.site-nav a[aria-current]:not(.nav-cta)::after {
  right: 0;
  height: 3px;
  border-radius: 3px;
}
.nav-cta {
  padding: 0 20px;
  border-radius: 99px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(242, 196, 19, 0.35);
}
.nav-extra {
  display: none;
}
.menu-button {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 0;
  background: transparent;
  color: var(--navy);
}
.menu-button span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: currentColor;
  transition: transform 0.25s;
}

/* Pied de page */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--footer);
  color: var(--cream);
}
.site-footer :focus-visible {
  outline-color: var(--gold);
}
.footer-wave {
  display: block;
  width: 100%;
  height: clamp(40px, 5vw, 72px);
  background: var(--diff-bg);
}
.wave-fill {
  fill: var(--footer);
}
.wave-line {
  fill: none;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}
.js .wave-line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 2.2s cubic-bezier(0.65, 0, 0.15, 1);
}
.js .site-footer.is-in .wave-line {
  stroke-dashoffset: 0;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1.1fr;
  gap: 40px;
  padding: 48px var(--gutter) 0;
}
.footer-logo {
  display: inline-block;
  padding: 10px;
  border-radius: 12px;
  background: var(--white);
}
.footer-logo img {
  width: 220px;
  height: auto;
}
.footer-quote {
  max-width: 340px;
  margin: 20px 0 10px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
}
.footer-quote em {
  font-family: var(--serif);
  color: var(--gold);
}
.footer-contact {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  overflow-wrap: anywhere;
  transition: color 0.25s;
}
.footer-contact-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s, color 0.3s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.footer-contact-icon svg {
  width: 20px;
  height: 20px;
}
.footer-contact a:hover {
  color: var(--gold);
}
.footer-contact a:hover .footer-contact-icon {
  background: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-2px) scale(1.06);
}
.footer-offices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-self: start;
}
.office {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  font-style: normal;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.office:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.07);
}
.office h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}
.office h2 small {
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
}
.office p {
  margin: 0 0 4px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.76);
}
.office a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}
.office a:hover {
  color: var(--gold);
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.footer-links div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-links h2 {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14.5px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s, transform 0.25s;
}
.footer-links a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  margin: 32px var(--gutter) 0;
  padding: 10px 0 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}
.footer-bottom small {
  font-size: inherit;
}
.footer-top {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c8102e, #f26a21);
  color: var(--white);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
.footer-top .icon {
  width: 20px;
  height: 20px;
  transform: rotate(-90deg);
}
.footer-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(200, 16, 46, 0.4);
}

/* Bouton WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 110px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 99px;
  background: #25d366;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.whatsapp-icon {
  display: inline-flex;
}

@media (max-width: 1100px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
  .footer-offices {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
/* Menu mobile : il prend le relais dès 1080 px (le menu a un sous-menu Services) */
@media (max-width: 1080px) {
  html {
    scroll-padding-top: 88px;
  }
  .site-header {
    height: 72px;
  }
  .brand img {
    width: 200px;
  }
  .menu-button {
    display: block;
  }
  .menu-button.open span:first-child {
    transform: translateY(4px) rotate(45deg);
  }
  .menu-button.open span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }
  /* Voile sur le reste de la page ; le toucher referme le menu */
  .site-header::after {
    content: "";
    position: fixed;
    z-index: 0;
    inset: 0;
    background: rgba(6, 31, 62, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
  }
  .site-header.menu-open::after {
    opacity: 1;
    pointer-events: auto;
  }
  .menu-button.open {
    color: var(--white);
  }
  /* Panneau latéral, depuis la droite */
  .site-nav {
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(84vw, 360px);
    padding: 72px 24px 24px;
    overflow-y: auto;
    background: linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 70%);
    box-shadow: -18px 0 44px rgba(6, 31, 62, 0.35);
    color: var(--white);
    font-size: 18px;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
  }
  .site-nav.open {
    visibility: visible;
    transform: none;
  }
  .site-nav::before {
    content: "Menu";
    position: absolute;
    top: 24px;
    left: 24px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
  }
  /* Lignes pleine largeur, avec un chevron */
  .site-nav a:not(.nav-cta) {
    min-height: 58px;
    padding-right: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }
  .site-nav a:not(.nav-cta)::after,
  .site-nav a:not(.nav-cta):hover::after,
  .site-nav a:not(.nav-cta):focus-visible::after,
  .site-nav a[aria-current]:not(.nav-cta)::after {
    top: 50%;
    right: 6px;
    bottom: auto;
    left: auto;
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    border-radius: 0;
    background: none;
    transform: translateY(-50%) rotate(45deg);
    transition: none;
  }
  .site-nav a[aria-current]:not(.nav-cta) {
    color: var(--gold);
  }
  .site-nav :focus-visible {
    outline-color: var(--gold);
  }
  .nav-cta {
    justify-content: center;
    min-height: 50px;
    margin-top: 22px;
    font-size: 16px;
  }
  /* Les éléments arrivent l'un après l'autre */
  .site-nav.open > * {
    animation: nav-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }
  .site-nav.open > :nth-child(2) {
    animation-delay: 0.06s;
  }
  .site-nav.open > :nth-child(3) {
    animation-delay: 0.12s;
  }
  .site-nav.open > :nth-child(4) {
    animation-delay: 0.18s;
  }
  .site-nav.open > :nth-child(5) {
    animation-delay: 0.24s;
  }
  /* Coordonnées, en bas du panneau */
  .nav-extra {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    margin-top: auto;
    padding-top: 24px;
    font-size: 14.5px;
    font-weight: 600;
  }
  .nav-extra a {
    display: block;
    min-height: 44px;
    white-space: nowrap;
  }
  .nav-extra small {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--gold);
  }
  .site-nav .nav-extra a {
    padding: 0;
    border: 0;
  }
  .site-nav .nav-extra a::after {
    display: none;
  }
}
@keyframes nav-in {
  from {
    opacity: 0;
    transform: translateX(26px);
  }
}
@media (max-width: 640px) {
  .footer-main,
  .footer-offices {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-offices {
    grid-column: auto;
    grid-row: auto;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .whatsapp-float {
    right: 16px;
    bottom: 110px;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 50%;
  }
  .whatsapp-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .js .wave-line {
    stroke-dashoffset: 0;
  }
}
