/* =========================================================
   IM BUSINESS SOLUTIONS — Feuille de style principale
   ========================================================= */

:root {

  /* Palette IM Business Solutions */
  --navy: #00152F;
  --navy-dark: #000D1F;

  --gold-dark: #A87533;
  --gold: #BC8940;
  --gold-light: #D3A14F;

  --white: #F8F8F6;
  --text-dark: #071426;

  /* Dégradé doré métallique IMBS */
  --gold-gradient: linear-gradient(
    135deg,
    #A87533 0%,
    #BC8940 35%,
    #D3A14F 70%,
    #B17E38 100%
  );

  /* Neutres utilitaires */
  --hero-overlay: rgba(0, 21, 47, 0.84);
  --rule-light: rgba(7, 20, 38, 0.14);

  /* Mise en page */
  --container-max: 1280px;
  --container-pad: clamp(24px, 5vw, 64px);

  /* Transitions */
  --ease: 0.25s ease;

}

/* ---------------- Reset ---------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

strong {
  font-weight: 600;
  color: var(--gold-light);
}

/* ---------------- Utilitaires ---------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.bar {
  display: block;
  width: 88px;
  height: 4px;
  background: var(--gold);
  margin: 30px 0;
}

.bar--center {
  margin-inline: auto;
}

/* ---------------- Boutons ---------------- */
.btn {
  --btn-pad-y: 17px;
  --btn-pad-x: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: transform var(--ease), background-color var(--ease),
    color var(--ease), box-shadow var(--ease), filter var(--ease);
}

.btn--gold {
  background: var(--gold);
  color: var(--navy);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -12px rgba(217, 161, 59, 0.7);
}

.btn--ghost {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(217, 161, 59, 0.12);
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: clamp(18px, 3vw, 30px);
  transition: background-color var(--ease), padding var(--ease),
    box-shadow var(--ease);
}

.site-header.is-scrolled {
  position: fixed;
  padding-block: 14px;
  background: rgba(3, 20, 38, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
}

.logo img {
  height: clamp(60px, 7vw, 82px);
  width: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.5vw, 52px);
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 42px);
}

.primary-nav__list a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color var(--ease);
}

.primary-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--ease);
}

.primary-nav__list a:hover,
.primary-nav__list a:focus-visible {
  color: var(--gold-light);
}

.primary-nav__list a.is-active {
  color: var(--gold);
}

.primary-nav__list a.is-active::after,
.primary-nav__list a:hover::after,
.primary-nav__list a:focus-visible::after {
  width: 100%;
}

.nav-cta {
  --btn-pad-y: 14px;
  --btn-pad-x: 26px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 120;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  display: flex;
  align-items: center;

  min-height: clamp(560px, 72vh, 720px);
padding-top: clamp(130px, 15vh, 165px);
padding-bottom: clamp(70px, 9vh, 90px);

  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}


/* ----- Image de fond ----- */

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;

  background-color: var(--navy);
  background-image: url("../assets/images/hero-bg.jpg");
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
}


/* Dégradé bleu nuit permettant de garder le texte lisible */

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    90deg,
    rgba(0, 13, 31, 0.98) 0%,
    rgba(0, 21, 47, 0.95) 32%,
    rgba(0, 21, 47, 0.72) 52%,
    rgba(0, 21, 47, 0.25) 75%,
    rgba(0, 21, 47, 0.08) 100%
  );
}


/* Ancien grand monogramme supprimé visuellement */

.hero__monogram {
  display: none;
}


/* ----- Contenu ----- */

.hero__inner {
  position: relative;
  z-index: 1;
}


.hero__content {
  max-width: 900px;
}



/* ----- Titre ----- */

.hero__title {
  margin: 0;
  max-width: 900px;

  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero__title-line {
  display: block;
  font-size: clamp(2.8rem, 4.7vw, 4.7rem);
  font-weight: 700;
  white-space: nowrap;
}

.hero__title-line:first-child {
  font-size: clamp(2.8rem, 4.7vw, 4.7rem);
  font-weight: 700;
}

.hero__title-line--accent {
  margin-top: 4px;
  font-size: clamp(2.8rem, 4.7vw, 4.7rem);
  font-weight: 700;
  color: var(--gold);
}

.hero__title::after {
  content: "";
  display: block;
  width: 58px;
  height: 2px;
  margin-top: 26px;
  background: var(--gold-gradient);
}

/* ----- Texte ----- */

.hero__text {
  max-width: 560px;

  margin-top: 26px;

  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.65;

  color: rgba(248, 248, 246, 0.88);
}


/* ----- Boutons ----- */

.hero__actions {
  display: flex;
  flex-wrap: wrap;

  gap: 16px;
  margin-top: 36px;
}

/* =========================================================
   DIAGONALE DE SÉPARATION
   ========================================================= */
.section-slant {
  position: relative;
  height: 64px;
  margin-top: -64px;
  z-index: 5;
}

.section-slant::before,
.section-slant::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* fin liseré doré */
.section-slant::before {
  background: var(--gold);
  clip-path: polygon(0 14px, 100% 40px, 100% 100%, 0 100%);
}

/* forme blanche par-dessus (décalée de 3px -> liseré visible) */
.section-slant::after {
  background: var(--white);
  clip-path: polygon(0 17px, 100% 43px, 100% 100%, 0 100%);
}

/* =========================================================
   SECTION AVANTAGES
   ========================================================= */
.advantages {
  background: var(--white);
  padding-block: 40px 130px;
  text-align: center;
}

.advantages__title {
  max-width: 64rem;
  margin-inline: auto;
  font-size: clamp(1.1rem, 1.9vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-dark);
}

.advantages .bar {
  margin-top: 24px;
  margin-bottom: 80px;
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.advantage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px clamp(18px, 2.4vw, 38px);
  text-align: left;
}

.advantage + .advantage {
  position: relative;
}

.advantage + .advantage::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 72px;
  background: var(--rule-light);
}

.advantage svg {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  color: var(--gold);
}

.advantage p {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-dark);
}

/* =========================================================
   ROND ICÔNE (réutilisable : approche, CTA, footer)
   ========================================================= */
.icon-circle {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--gold);
  color: var(--gold);
}

.icon-circle svg {
  width: 38px;
  height: 38px;
}

.icon-circle--lg {
  width: 74px;
  height: 74px;
}

.icon-circle--lg svg {
  width: 32px;
  height: 32px;
}

.icon-circle--sm {
  width: 44px;
  height: 44px;
  border-width: 1.5px;
}

.icon-circle--sm svg {
  width: 19px;
  height: 19px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--navy);
  color: rgba(247, 247, 245, 0.72);
  padding-block: 44px 34px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(22px, 4vw, 46px);
}

.footer-logo img {
  height: 56px;
  width: auto;
}

.footer-sep {
  width: 1px;
  height: 46px;
  background: rgba(247, 247, 245, 0.16);
}

.footer-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 42px);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-contact a {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: color var(--ease);
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--gold-light);
}

.site-footer__legal {
  margin-top: 24px;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(247, 247, 245, 0.45);
}

/* =========================================================
   PAGE — HERO SECONDAIRE (compact, avec label)
   ========================================================= */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 54vh, 580px);
  padding-top: clamp(150px, 20vh, 210px);
  padding-bottom: clamp(80px, 12vh, 120px);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.page-hero__bg {
  background-image: url("../assets/images/about-hero.jpg"),
    url("../assets/images/hero-bg.jpg"),
    radial-gradient(circle at 74% 40%, rgba(217, 161, 59, 0.16), transparent 46%),
    linear-gradient(120deg, var(--navy-dark), var(--navy) 60%, #0d2238);
}

.page-hero__bg--services {
  background-image: url("../assets/images/services-bg.jpg"),
    url("../assets/images/about-hero.jpg"),
    radial-gradient(circle at 74% 40%, rgba(217, 161, 59, 0.16), transparent 46%),
    linear-gradient(120deg, var(--navy-dark), var(--navy) 60%, #0d2238);
}

.page-hero__bg--methode {
  background-image: url("../assets/images/methode-bg.jpg"),
    url("../assets/images/about-hero.jpg"),
    radial-gradient(circle at 74% 40%, rgba(217, 161, 59, 0.16), transparent 46%),
    linear-gradient(120deg, var(--navy-dark), var(--navy) 60%, #0d2238);
}

.page-hero__bg--realisations {
  background-image: url("../assets/images/realisations-bg.jpg"),
    url("../assets/images/about-hero.jpg"),
    radial-gradient(circle at 74% 40%, rgba(217, 161, 59, 0.16), transparent 46%),
    linear-gradient(120deg, var(--navy-dark), var(--navy) 60%, #0d2238);
}

.page-hero__bg--contact {
  background-image: url("../assets/images/contact-bg.jpg"),
    url("../assets/images/about-hero.jpg"),
    radial-gradient(circle at 74% 40%, rgba(217, 161, 59, 0.16), transparent 46%),
    linear-gradient(120deg, var(--navy-dark), var(--navy) 60%, #0d2238);
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero__content {
  max-width: 760px;
}

.page-hero__eyebrow {
  margin-bottom: 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-hero__title {
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.12;
  letter-spacing: 0.005em;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--white);
}

.page-hero__title > span {
  display: block;
  overflow-wrap: break-word;
}

.page-hero__title .accent {
  color: var(--gold);
}

.page-hero__text {
  max-width: 480px;
  margin-top: 4px;
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  color: rgba(247, 247, 245, 0.86);
  line-height: 1.75;
}

/* Séparation courbe */
.curve-sep {
  position: relative;
  height: 68px;
  margin-top: -68px;
  z-index: 5;
  line-height: 0;
}

.curve-sep svg {
  display: block;
  width: 100%;
  height: 100%;
}

.curve-sep__fill {
  fill: var(--white);
}

.curve-sep__line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
}

/* Sur-titre doré + filet (sections internes) */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 14px;
  background: var(--gold);
}

/* =========================================================
   BLOC MISSION / APPROCHE
   ========================================================= */
.about-block {
  background: var(--white);
  padding-block: clamp(60px, 9vw, 108px);
}

.about-block__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.about-block__heading {
  margin-top: 26px;
  font-size: clamp(1.5rem, 2.7vw, 2.15rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

.about-block__lead {
  margin-top: 20px;
  max-width: 42ch;
  font-size: 1rem;
  color: rgba(7, 20, 38, 0.72);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
}

.approach-grid li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 6px clamp(14px, 2vw, 28px);
  text-align: center;
}

.approach-grid li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--rule-light);
}

.approach-grid h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.approach-grid p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(7, 20, 38, 0.66);
}

/* =========================================================
   NOS VALEURS
   ========================================================= */
.values {
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(56px, 8vw, 96px);
}

.values__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.values__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.values__list li {
  position: relative;
  padding: 6px clamp(16px, 2vw, 30px);
}

.values__list li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: rgba(247, 247, 245, 0.14);
}

.values__list svg {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--gold);
}

.values__list h3 {
  margin-bottom: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.values__list p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(247, 247, 245, 0.68);
}

/* =========================================================
   BANDE CTA
   ========================================================= */
.cta-band {
  position: relative;
  background: var(--white);
  padding-block: clamp(48px, 7vw, 82px);
  overflow: hidden;
}

.cta-band__skyline {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(52%, 700px);
  color: var(--gold);
  opacity: 0.14;
  pointer-events: none;
}

.cta-band__skyline svg {
  display: block;
  width: 100%;
  height: auto;
}

.cta-band__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.cta-band__text {
  flex: 1;
}

.cta-band__text h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.cta-band__text p {
  margin-top: 8px;
  max-width: 46ch;
  color: rgba(7, 20, 38, 0.7);
}

.cta-band .btn--ghost {
  color: var(--gold);
  border-color: var(--gold);
}

.cta-band .btn--ghost:hover,
.cta-band .btn--ghost:focus-visible {
  background: var(--gold);
  color: var(--navy);
}

/* =========================================================
   SECTION CLAIRE CENTRÉE (services : expertise / méthode : étapes)
   ========================================================= */
.expertise,
.method {
  background: var(--white);
  padding-block: clamp(24px, 5vw, 58px) clamp(50px, 8vw, 96px);
  text-align: center;
}

.expertise__title,
.method__title {
  font-size: clamp(1.3rem, 2.4vw, 1.95rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.expertise .bar,
.method .bar {
  margin: 22px auto 62px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1000px;
  margin-inline: auto;
}

.expertise-grid li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 4px clamp(16px, 2.2vw, 34px);
  text-align: center;
}

.expertise-grid li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--rule-light);
}

.expertise-grid h3 {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.expertise-grid p {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(7, 20, 38, 0.66);
}

/* Lien « En savoir plus » */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 0;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold);
  background: none;
  border: 0;
  cursor: pointer;
  transition: gap var(--ease), color var(--ease);
}

.link-more svg {
  width: 16px;
  height: 16px;
}

.link-more:hover,
.link-more:focus-visible {
  gap: 12px;
  color: var(--gold-light);
}

/* =========================================================
   PAGE MÉTHODE — ÉTAPES
   ========================================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 4px clamp(14px, 2vw, 30px);
  text-align: center;
}

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

/* trait pointillé + chevron entre les étapes (desktop) */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 42px;
  left: 50%;
  width: 100%;
  border-top: 2px dashed rgba(217, 161, 59, 0.55);
  z-index: 0;
}

.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 37px;
  left: calc(150% - 46px);
  width: 9px;
  height: 9px;
  border-top: 2px solid rgba(217, 161, 59, 0.75);
  border-right: 2px solid rgba(217, 161, 59, 0.75);
  transform: rotate(45deg);
  z-index: 0;
}

.step__icon {
  position: relative;
  display: inline-flex;
}

.step__num {
  position: absolute;
  top: -6px;
  left: -8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 800;
}

.step h3 {
  margin-top: 6px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.step p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(7, 20, 38, 0.66);
}

/* =========================================================
   CARTE CTA SOMBRE (services / méthode)
   ========================================================= */
.cta-card {
  background: var(--white);
  padding-block: 0 clamp(44px, 7vw, 76px);
}

.cta-card__inner {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 36px);
  padding: clamp(28px, 4vw, 46px) clamp(24px, 5vw, 58px);
  border-radius: 16px;
  background: var(--navy);
  color: var(--white);
}

.cta-card__text {
  flex: 1;
}

.cta-card__text h2 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cta-card__text p {
  margin-top: 8px;
  max-width: 46ch;
  font-size: 0.95rem;
  color: rgba(247, 247, 245, 0.72);
}

.cta-card__sep {
  align-self: stretch;
  width: 1px;
  margin-inline: clamp(4px, 1vw, 14px);
  background: rgba(217, 161, 59, 0.35);
}

/* Variante claire (page Réalisations) */
.cta-card--light .cta-card__inner {
  background: #ececea;
  color: var(--text-dark);
}

.cta-card--light .cta-card__text h2 {
  color: var(--text-dark);
}

.cta-card--light .cta-card__text p {
  color: rgba(7, 20, 38, 0.66);
}

.cta-card--light .btn--ghost {
  color: var(--gold);
  border-color: var(--gold);
}

.cta-card--light .btn--ghost:hover,
.cta-card--light .btn--ghost:focus-visible {
  background: var(--gold);
  color: var(--navy);
}

/* Rond icône plein (sans anneau) */
.icon-circle--solid {
  border-color: var(--navy);
}

/* =========================================================
   FORMULAIRES (page Contact + modale devis)
   ========================================================= */
.form-label {
  margin-bottom: 12px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(7, 20, 38, 0.55);
}

.form-label:not(:first-child) {
  margin-top: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  position: relative;
  margin-bottom: 14px;
}

.form-field__icon {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 18px;
  height: 18px;
  color: rgba(7, 20, 38, 0.38);
  pointer-events: none;
}

.form-control {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid rgba(7, 20, 38, 0.18);
  border-radius: 8px;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.form-field--icon .form-control {
  padding-left: 42px;
}

.form-control::placeholder {
  color: rgba(7, 20, 38, 0.42);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 161, 59, 0.16);
}

textarea.form-control {
  min-height: 116px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23071426' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 18px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(7, 20, 38, 0.7);
}

.form-check input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--gold);
}

.form-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 0.78rem;
  color: rgba(7, 20, 38, 0.5);
}

.form-note svg {
  width: 14px;
  height: 14px;
}

.form-success {
  padding: 22px 24px;
  border: 1px solid rgba(217, 161, 59, 0.4);
  border-radius: 10px;
  background: rgba(217, 161, 59, 0.08);
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.6;
}

.form-error {
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(199, 62, 55, 0.35);
  border-radius: 8px;
  background: rgba(199, 62, 55, 0.08);
  color: #a02f28;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Piège à robots (anti-spam) : champ invisible qui doit rester vide */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn--block {
  width: 100%;
}

/* =========================================================
   PAGE CONTACT
   ========================================================= */
.contact {
  background: var(--white);
  padding-block: clamp(56px, 9vw, 104px);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.contact-grid__info {
  padding-right: clamp(28px, 5vw, 64px);
}

.contact-grid__form {
  padding-left: clamp(28px, 5vw, 64px);
  border-left: 1px solid rgba(7, 20, 38, 0.12);
}

.contact-info {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info__label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.contact-info__value {
  display: block;
  margin-top: 3px;
  font-size: 0.94rem;
  color: rgba(7, 20, 38, 0.7);
}

a.contact-info__value:hover {
  color: var(--gold);
}

.contact-form {
  margin-top: 32px;
}

/* =========================================================
   PAGE RÉALISATIONS
   ========================================================= */
.works {
  background: var(--white);
  padding-block: clamp(36px, 6vw, 64px) clamp(50px, 8vw, 96px);
}

.filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px clamp(14px, 2.4vw, 30px);
  padding-bottom: 24px;
  margin-bottom: 44px;
  border-bottom: 1px solid rgba(7, 20, 38, 0.12);
}

.filter-tab {
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(7, 20, 38, 0.55);
  background: none;
  border: 0;
  padding: 10px 2px;
  cursor: pointer;
  border-radius: 6px;
  transition: color var(--ease), background-color var(--ease);
}

.filter-tab:hover {
  color: var(--text-dark);
}

.filter-tab.is-active {
  color: var(--white);
  background: var(--navy);
  padding: 10px 20px;
}

.filters__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding-left: clamp(14px, 2vw, 24px);
  border-left: 1px solid rgba(7, 20, 38, 0.15);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(7, 20, 38, 0.7);
  background: none;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  cursor: pointer;
}

.filters__toggle svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.projects-empty {
  padding: 60px 20px;
  text-align: center;
  color: rgba(7, 20, 38, 0.55);
  font-size: 1rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 14px 34px -26px rgba(3, 20, 38, 0.4);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease);
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(3, 20, 38, 0.5);
}

.project-card:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.project-card[hidden] {
  display: none;
}

.project-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: #e6e6e3;
  color: rgba(7, 20, 38, 0.22);
  overflow: hidden;
}

.project-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__placeholder svg {
  width: 44px;
  height: 44px;
}

.project-card__tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 20px 22px 24px;
}

.project-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text-dark);
}

.project-card__desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(7, 20, 38, 0.66);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================================
   MODALE — DÉTAIL D'UNE RÉALISATION
   ========================================================= */
.modal--media .modal__dialog {
  display: block;
  width: min(680px, 100%);
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal--media .modal__close {
  background: rgba(255, 255, 255, 0.85);
}

.modal--media .modal__close:hover {
  background: var(--white);
}

.realisation-modal__media {
  position: relative;
  min-height: 220px;
  max-height: min(60vh, 520px);
  display: grid;
  place-items: center;
  background: #e6e6e3;
  color: rgba(7, 20, 38, 0.22);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.realisation-modal__media img {
  display: block;
  width: 100%;
  max-height: min(60vh, 520px);
  object-fit: contain;
}

.realisation-modal__media svg {
  width: 52px;
  height: 52px;
}

.realisation-modal__tag {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.realisation-modal__body {
  padding: clamp(26px, 4vw, 40px);
}

.realisation-modal__title {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
}

.realisation-modal__desc {
  margin-top: 14px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(7, 20, 38, 0.7);
  white-space: pre-line;
}

/* =========================================================
   MODALE — DEMANDER UN DEVIS
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ease), visibility var(--ease);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 10, 20, 0.62);
  backdrop-filter: blur(3px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1060px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.55);
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  transform: translateY(12px);
  transition: transform var(--ease);
}

.modal.is-open .modal__dialog {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(7, 20, 38, 0.06);
  color: var(--text-dark);
  cursor: pointer;
  transition: background-color var(--ease);
}

.modal__close:hover {
  background: rgba(7, 20, 38, 0.14);
}

.modal__close svg {
  width: 18px;
  height: 18px;
}

.modal__aside {
  padding: clamp(28px, 3.5vw, 44px);
  background: #f3f3f1;
  border-radius: 16px 0 0 16px;
}

.modal__aside .icon-circle {
  width: 60px;
  height: 60px;
}

.modal__aside .icon-circle svg {
  width: 26px;
  height: 26px;
}

.modal__title {
  margin-top: 18px;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 800;
  line-height: 1.12;
  text-transform: uppercase;
  color: var(--text-dark);
}

.modal__title span {
  display: block;
}

.modal__title .accent {
  color: var(--gold);
}

.modal__aside .bar {
  margin: 16px 0 4px;
}

.modal__aside > p {
  margin-top: 18px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(7, 20, 38, 0.66);
}

.modal__features {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal__feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.modal__feature .icon-circle {
  width: 40px;
  height: 40px;
  border-width: 1.5px;
}

.modal__feature .icon-circle svg {
  width: 17px;
  height: 17px;
}

.modal__feature h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.modal__feature p {
  margin-top: 3px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(7, 20, 38, 0.62);
}

.modal__main {
  padding: clamp(28px, 3.5vw, 44px);
}

/* ---- Modale large : détail d'un domaine d'expertise ---- */
.icon-circle--xl {
  width: 88px;
  height: 88px;
}

.icon-circle--xl svg {
  width: 38px;
  height: 38px;
}

.modal--wide .modal__dialog {
  display: block;
  width: min(1180px, 100%);
  padding: clamp(28px, 4vw, 52px);
}

.xmodal__head {
  display: flex;
  align-items: flex-start;
  gap: clamp(18px, 3vw, 32px);
  padding-right: 40px;
}

.xmodal__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.xmodal__eyebrow::after {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--gold);
}

.xmodal__title {
  margin-top: 10px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--text-dark);
}

.xmodal__intro {
  margin-top: 14px;
  max-width: 64ch;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(7, 20, 38, 0.68);
}

.xmodal__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 34px;
}

.xcard {
  padding: 22px 22px 24px;
  border: 1px solid rgba(7, 20, 38, 0.12);
  border-radius: 12px;
}

.xcard__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(217, 161, 59, 0.12);
  color: var(--gold);
}

.xcard__icon svg {
  width: 21px;
  height: 21px;
}

.xcard h3 {
  margin: 14px 0 12px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.xcard__list li {
  position: relative;
  margin-bottom: 7px;
  padding-left: 16px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(7, 20, 38, 0.7);
}

.xcard__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.xmodal__foot {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  padding: 20px clamp(18px, 2.5vw, 28px);
  border-radius: 12px;
  background: rgba(217, 161, 59, 0.09);
}

.xmodal__foot-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(217, 161, 59, 0.16);
  color: var(--gold);
}

.xmodal__foot-icon svg {
  width: 22px;
  height: 22px;
}

.xmodal__foot p {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(7, 20, 38, 0.72);
}

.xmodal__foot strong {
  display: block;
  color: var(--text-dark);
  font-weight: 700;
}

.xmodal__foot .btn {
  flex-shrink: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .primary-nav__list a {
    font-size: 0.74rem;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 340px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 34px;
    padding: 48px;
    background: var(--navy-dark);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .primary-nav.is-open {
    transform: translateX(0);
    box-shadow: -20px 0 50px -20px rgba(0, 0, 0, 0.7);
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }

  .primary-nav__list a {
    font-size: 0.95rem;
  }

  .nav-cta {
    width: 100%;
  }

  .hero__monogram {
    display: none;
  }

  .advantages__title {
    white-space: normal;
  }
}

@media (max-width: 900px) {
  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 48px;
    max-width: 640px;
    margin-inline: auto;
  }

  .advantage {
    justify-content: flex-start;
  }

  .advantage + .advantage::before {
    display: none;
  }

  /* --- Page À propos --- */
  .about-block__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-block__heading br {
    display: none;
  }

  .values__grid {
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
  }

  .values__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 42px 20px;
  }

  .values__list li + li::before {
    display: none;
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  /* --- Page Services --- */
  .expertise-grid {
    grid-template-columns: 1fr;
    row-gap: 48px;
    max-width: 380px;
    margin-inline: auto;
  }

  .expertise-grid li::before {
    display: none;
  }

  /* --- Page Méthode --- */
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 52px;
    max-width: 620px;
    margin-inline: auto;
  }

  .step::after,
  .step::before {
    display: none;
  }

  .cta-card__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .cta-card__sep {
    display: none;
  }

  /* --- Page Réalisations --- */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .filters__toggle {
    margin-left: 0;
    border-left: 0;
    padding-left: 0;
  }

  /* --- Page Contact --- */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-grid__info {
    padding-right: 0;
  }

  .contact-grid__form {
    padding-left: 0;
    border-left: 0;
  }

  /* --- Modale devis --- */
  .modal__dialog {
    grid-template-columns: 1fr;
  }

  .modal__aside {
    border-radius: 16px 16px 0 0;
  }

  /* --- Modale expertise --- */
  .xmodal__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 82vh;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .advantages__grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
    max-width: 320px;
  }

  .advantage {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  /* --- Page À propos --- */
  .approach-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .approach-grid li {
    padding: 0;
  }

  .approach-grid li + li::before {
    display: none;
  }

  /* --- Page Services --- */
  .expertise-grid {
    grid-template-columns: 1fr;
    row-gap: 44px;
    max-width: 340px;
  }

  .expertise-grid li::before {
    display: none;
  }

  /* --- Page Méthode --- */
  .steps-grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
    max-width: 340px;
  }

  .values__list {
    grid-template-columns: 1fr;
    gap: 34px;
    max-width: 300px;
  }

  .footer-sep {
    display: none;
  }

  .site-footer__inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
  }

  /* --- Page Réalisations --- */
  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-inline: auto;
  }

  /* --- Formulaires --- */
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  /* Le titre de l'accueil doit rester entier sur les petits écrans. */
  .hero__title-line,
  .hero__title-line:first-child,
  .hero__title-line--accent {
    font-size: clamp(1.5rem, 5.5vw, 2.8rem);
    white-space: normal;
  }

  .filters .filter-tab:not(.is-active) {
    display: none;
  }

  .filters.is-expanded .filter-tab {
    display: inline-block;
  }

  .xmodal__head {
    flex-direction: column;
    gap: 16px;
    padding-right: 30px;
  }

  .xmodal__grid {
    grid-template-columns: 1fr;
  }

  .xmodal__foot {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .xmodal__foot .btn {
    width: 100%;
  }
}

/* Accessibilité : réduction des animations */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
