/* ==========================================================================
   FRACTALES ARCHITECTS — thème du site, au-dessus du template Archidex (style.css)

   Charte reprise du book (février 2023) :
   - pétrole   #003647  encre principale, fonds sombres
   - pétrole 2 #1a5e70  motif fractal, éléments secondaires
   - vert      #5fbb46  accents d'interaction (focus, survol, état actif)
   - jaune     #fff100  numérotation des projets uniquement (01 → 15)
   Titres : Bodoni Moda (serif à fort contraste) · Texte : Urbanist (géométrique)
   ========================================================================== */

:root {
  --fx-petrol: #003647;
  --fx-petrol-deep: #00242f;
  --fx-petrol-2: #1a5e70;
  --fx-green: #5fbb46;
  --fx-yellow: #fff100;
  --fx-paper: #f3f6f6;
  --fx-ink-soft: #4b6a74;
  --fx-line: rgba(0, 54, 71, .14);
  --fx-line-light: rgba(255, 255, 255, .16);
  --fx-serif: "Bodoni Moda", "Didot", Georgia, serif;
  --fx-sans: "Urbanist", "Helvetica Neue", Arial, sans-serif;
  --fx-ease: cubic-bezier(.215, .61, .355, 1);

  /* variables du template Archidex */
  --primary: var(--fx-petrol);
  --secondary: var(--fx-ink-soft);
  --border: var(--fx-line);
  --bg: var(--fx-petrol-deep);
  --black: var(--fx-petrol);
  --font_bai: var(--fx-sans);
  --font_tartuffotrial: var(--fx-serif);
  --font_granola: var(--fx-sans);
  --font_bdo-grotsk: var(--fx-sans);
  --font_bdogrotesk: var(--fx-sans);
  --font_suisse-int: var(--fx-sans);
  --font_inter: var(--fx-sans);
  --font_ppeditor: var(--fx-serif);
}

/* --- Base ------------------------------------------------------------------ */
body {
  font-family: var(--fx-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--fx-ink-soft);
  background: #fff;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--fx-petrol);
}

::selection {
  background: var(--fx-yellow);
  color: var(--fx-petrol);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nice-select:focus-visible {
  outline: 2px solid var(--fx-green);
  outline-offset: 3px;
}

.fx-serif {
  font-family: var(--fx-serif);
}

.fx-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 767px) {
  .fx-container {
    padding: 0 20px;
  }
}

/* Numéro de projet : surlignage jaune, comme les aplats du book (lisible sur fond clair). */
.fx-num {
  font-family: var(--fx-serif);
  font-weight: 500;
  font-variant-numeric: lining-nums;
  color: var(--fx-petrol);
  background: linear-gradient(transparent 58%, var(--fx-yellow) 58%, var(--fx-yellow) 92%, transparent 92%);
  padding: 0 .08em;
}

/* Sur fond sombre, le jaune passe en texte. */
.fx-dark .fx-num,
.fx-num--on-dark {
  color: var(--fx-yellow);
  background: none;
}

/* --- Boutons ------------------------------------------------------------- */
.fx-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border: 1px solid var(--fx-petrol);
  background: var(--fx-petrol);
  color: #fff;
  font-family: var(--fx-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  border-radius: 999px;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}

.fx-btn:hover {
  background: var(--fx-green);
  border-color: var(--fx-green);
  color: var(--fx-petrol-deep);
}

.fx-btn--ghost {
  background: transparent;
  color: var(--fx-petrol);
}

.fx-btn--light {
  background: #fff;
  border-color: #fff;
  color: var(--fx-petrol);
}

.fx-btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}

.fx-btn--outline-light:hover,
.fx-btn--light:hover {
  background: var(--fx-green);
  border-color: var(--fx-green);
  color: var(--fx-petrol-deep);
}

.fx-link {
  color: var(--fx-petrol);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--fx-green);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: color .2s ease;
}

.fx-link:hover {
  color: var(--fx-petrol-2);
}

/* Bouton du template */
.rr-btn-primary {
  border-color: var(--fx-line);
}

.rr-btn-primary:hover {
  background: var(--fx-petrol);
}

/* --- Header ---------------------------------------------------------------- */
header[class^="header-area"] .header__logo img,
.offset-logo img {
  max-width: 190px;
  max-height: 44px;
  width: auto;
}

.header-area-3 .main-menu li a,
.header-area-4 .main-menu li a {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
}

.header-area-3 .main-menu .dp-menu li a,
.header-area-4 .main-menu .dp-menu li a {
  color: var(--fx-petrol);
}

.header-area-4 .main-menu > ul > li > a:hover,
.header-area-4 .main-menu > ul > li.is-current > a {
  color: var(--fx-petrol-2);
}

.header-area-3 .rr-btn-primary {
  background: transparent;
  border-color: rgba(255, 255, 255, .45);
}

.header-area-3 .rr-btn-primary .text span,
.header-area-3 .rr-btn-primary i {
  color: #fff;
}

.header-area-3 .rr-btn-primary:hover {
  background: #fff;
}

.header-area-3 .rr-btn-primary:hover .text span.animate,
.header-area-3 .rr-btn-primary:hover i {
  color: var(--fx-petrol);
}

/* --- Hero (accueil) ------------------------------------------------------------- */
.fx-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--fx-petrol-deep);
  overflow: hidden;
  isolation: isolate;
}

.fx-hero__slides {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.fx-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.fx-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 9s linear;
}

.fx-hero__slide.is-active {
  opacity: 1;
}

.fx-hero__slide.is-active img {
  transform: scale(1);
}

/* voile pétrole : lisibilité du texte en bas et à gauche */
.fx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(0, 36, 47, .92) 0%, rgba(0, 36, 47, .55) 38%, rgba(0, 36, 47, .1) 70%),
    linear-gradient(90deg, rgba(0, 36, 47, .55) 0%, rgba(0, 36, 47, 0) 60%);
}

.fx-hero__inner {
  width: 100%;
  padding-top: 160px;
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 60px;
  align-items: end;
}

.fx-hero__kicker {
  display: block;
  margin-bottom: 22px;
  font-size: 17px;
  font-weight: 500;
  color: rgba(255, 255, 255, .78);
}

.fx-hero__title {
  margin: 0;
  max-width: 15ch;
  font-family: var(--fx-serif);
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 104px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: #fff;
}

.fx-hero__lead {
  max-width: 46ch;
  margin: 28px 0 36px;
  font-size: 19px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .85);
}

.fx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.fx-hero__caption {
  border-top: 1px solid var(--fx-line-light);
  padding-top: 20px;
  min-height: 140px;
}

.fx-hero__caption-item {
  display: none;
  color: #fff;
}

.fx-hero__caption-item.is-active {
  display: block;
  animation: fx-fade-in .8s ease both;
}

.fx-hero__caption-num {
  display: block;
  font-family: var(--fx-serif);
  font-size: 44px;
  line-height: 1;
  color: var(--fx-yellow);
}

.fx-hero__caption-title {
  display: block;
  margin-top: 12px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

.fx-hero__caption-meta {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: rgba(255, 255, 255, .7);
}

.fx-hero__caption-item:hover .fx-hero__caption-title {
  text-decoration: underline;
  text-decoration-color: var(--fx-green);
  text-underline-offset: 5px;
}

.fx-hero__dots {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.fx-hero__dot {
  width: 28px;
  height: 3px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, .3);
  cursor: pointer;
  transition: background .3s ease;
}

.fx-hero__dot.is-active {
  background: var(--fx-yellow);
}

@keyframes fx-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 991px) {
  .fx-hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 140px;
  }

  .fx-hero__caption {
    min-height: 0;
  }
}

/* --- Sections génériques --------------------------------------------------- */
.fx-section {
  padding: 140px 0;
}

.fx-section--tight {
  padding: 100px 0;
}

.fx-section--paper {
  background: var(--fx-paper);
}

@media (max-width: 991px) {
  .fx-section { padding: 90px 0; }
  .fx-section--tight { padding: 70px 0; }
}

.fx-heading {
  margin: 0;
  font-family: var(--fx-serif);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--fx-petrol);
}

.fx-heading--xl {
  font-size: clamp(40px, 5.4vw, 84px);
}

.fx-lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--fx-ink-soft);
  max-width: 60ch;
}

.fx-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.fx-section-head .fx-lead {
  margin: 0;
  max-width: 44ch;
}

/* --- Intro (accueil) ------------------------------------------------------ */
.fx-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.fx-intro__text p {
  font-size: 19px;
  line-height: 1.65;
  margin-bottom: 22px;
  max-width: 56ch;
}

.fx-facts {
  margin: 40px 0 36px;
  border-top: 1px solid var(--fx-line);
}

.fx-facts div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--fx-line);
}

.fx-facts dt {
  font-weight: 500;
  color: var(--fx-ink-soft);
}

.fx-facts dd {
  margin: 0;
  font-weight: 600;
  color: var(--fx-petrol);
}

@media (max-width: 991px) {
  .fx-intro__grid { grid-template-columns: 1fr; gap: 40px; }
  .fx-facts div { grid-template-columns: 1fr; gap: 2px; }
}

/* --- Index des projets (accueil) ------------------------------------------ */
.fx-index {
  border-top: 1px solid var(--fx-line);
}

.fx-index__row {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1.3fr) 110px 28px;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--fx-line);
  color: var(--fx-petrol);
  transition: padding .45s var(--fx-ease), background .3s ease;
}

.fx-index__num {
  font-size: 40px;
  line-height: 1;
  justify-self: start;
}

.fx-index__title {
  font-family: var(--fx-serif);
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.2;
  color: var(--fx-petrol);
}

.fx-index__cell {
  font-size: 16px;
  color: var(--fx-ink-soft);
}

.fx-index__area {
  font-size: 16px;
  font-weight: 600;
  text-align: right;
  color: var(--fx-petrol);
}

.fx-index__arrow {
  font-size: 18px;
  opacity: .35;
  transform: translateX(-6px);
  transition: opacity .3s ease, transform .3s ease;
}

.fx-index__thumb {
  display: none;
}

.fx-index__row:hover,
.fx-index__row:focus-visible {
  padding-left: 18px;
  padding-right: 10px;
  background: var(--fx-paper);
}

.fx-index__row:hover .fx-index__arrow,
.fx-index__row:focus-visible .fx-index__arrow {
  opacity: 1;
  transform: none;
  color: var(--fx-petrol);
}

.fx-index__head {
  display: grid;
  grid-template-columns: 110px minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1.3fr) 110px 28px;
  gap: 24px;
  padding: 0 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fx-ink-soft);
}

.fx-index__head span:nth-child(5) {
  text-align: right;
}

/* aperçu flottant qui suit le curseur (desktop) */
.fx-index-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 340px;
  aspect-ratio: 4 / 3;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(.9);
  transition: opacity .25s ease, transform .35s var(--fx-ease);
  box-shadow: 0 30px 60px -20px rgba(0, 36, 47, .45);
}

.fx-index-preview.is-visible {
  opacity: 1;
}

.fx-index-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 991px) {
  .fx-index__head { display: none; }

  .fx-index__row {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-areas:
      "thumb num"
      "thumb title"
      "thumb meta";
    column-gap: 18px;
    row-gap: 4px;
    padding: 20px 0;
  }

  .fx-index__row:hover { padding-left: 0; padding-right: 0; background: none; }
  .fx-index__thumb { display: block; grid-area: thumb; width: 96px; height: 96px; object-fit: cover; }
  .fx-index__num { grid-area: num; font-size: 24px; }
  .fx-index__title { grid-area: title; font-size: 20px; }
  .fx-index__cell--cat { display: none; }
  .fx-index__cell--place { grid-area: meta; font-size: 14px; }
  .fx-index__area, .fx-index__arrow { display: none; }
  .fx-index-preview { display: none; }
}

/* --- Expertises (fond pétrole + motif fractal) ----------------------------- */
.fx-dark {
  position: relative;
  background: var(--fx-petrol);
  color: rgba(255, 255, 255, .78);
  overflow: hidden;
  isolation: isolate;
}

.fx-dark h1, .fx-dark h2, .fx-dark h3, .fx-dark h4,
.fx-dark .fx-heading {
  color: #fff;
}

.fx-dark .fx-lead {
  color: rgba(255, 255, 255, .78);
}

.fx-fractal {
  position: absolute;
  z-index: -1;
  width: min(760px, 70vw);
  aspect-ratio: 1;
  right: -12%;
  top: 50%;
  transform: translateY(-50%);
  background: url("../imgs/fractales/fractal.png") center / contain no-repeat;
  opacity: .14;
  pointer-events: none;
}

.fx-expertises__list {
  border-top: 1px solid var(--fx-line-light);
}

.fx-expertise {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 180px;
  gap: 40px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--fx-line-light);
  color: rgba(255, 255, 255, .78);
}

.fx-expertise__title {
  font-family: var(--fx-serif);
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.1;
  color: #fff;
  transition: color .3s ease;
}

.fx-expertise__text {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  max-width: 58ch;
}

.fx-expertise__media {
  height: 120px;
  overflow: hidden;
}

.fx-expertise__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.4);
  transition: filter .4s ease, transform .6s var(--fx-ease);
}

.fx-expertise:hover .fx-expertise__title,
.fx-expertise:focus-visible .fx-expertise__title {
  color: var(--fx-green);
}

.fx-expertise:hover .fx-expertise__media img {
  filter: none;
  transform: scale(1.05);
}

/* même liste, sur fond clair */
.fx-links-list {
  border-top-color: var(--fx-line);
}

.fx-links-list .fx-expertise {
  border-bottom-color: var(--fx-line);
  color: var(--fx-ink-soft);
}

.fx-links-list .fx-expertise__title {
  color: var(--fx-petrol);
}

.fx-links-list .fx-expertise:hover .fx-expertise__title,
.fx-links-list .fx-expertise:focus-visible .fx-expertise__title {
  color: var(--fx-petrol-2);
  text-decoration: underline;
  text-decoration-color: var(--fx-green);
  text-underline-offset: 6px;
}

@media (max-width: 991px) {
  .fx-expertise { grid-template-columns: 1fr; gap: 14px; }
  .fx-expertise__media { display: none; }
}

/* --- Citation ---------------------------------------------------------------- */
.fx-quote {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.fx-quote > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fx-quote::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(0, 36, 47, .9) 0%, rgba(0, 36, 47, .2) 70%);
}

.fx-quote blockquote {
  margin: 0;
  padding: 120px 0 80px;
  max-width: 980px;
}

.fx-quote blockquote p {
  margin: 0;
  font-family: var(--fx-serif);
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 54px);
  line-height: 1.18;
  color: #fff;
}

.fx-quote cite {
  display: block;
  margin-top: 28px;
  font-style: normal;
  font-size: 17px;
  font-weight: 600;
  color: rgba(255, 255, 255, .8);
}

/* --- Fondateur ------------------------------------------------------------- */
.fx-founder {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 90px;
  align-items: center;
}

.fx-founder__photo {
  position: relative;
  background: #000;
}

.fx-founder__photo img {
  width: 100%;
  display: block;
  filter: grayscale(1);
}

.fx-founder__photo::after {
  content: "";
  position: absolute;
  left: -24px;
  bottom: -24px;
  width: 42%;
  height: 34%;
  z-index: -1;
  background: var(--fx-yellow);
}

.fx-founder__name {
  margin: 14px 0 6px;
  font-family: var(--fx-serif);
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.05;
  color: var(--fx-petrol);
}

.fx-founder__role {
  display: block;
  margin-bottom: 30px;
  font-weight: 600;
  color: var(--fx-petrol-2);
}

.fx-founder__quote {
  margin: 0 0 30px;
  padding-left: 22px;
  border-left: 3px solid var(--fx-green);
  font-family: var(--fx-serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1.35;
  color: var(--fx-petrol);
}

.fx-founder p {
  font-size: 18px;
  line-height: 1.65;
  max-width: 60ch;
}

.fx-founder__section {
  position: relative;
  z-index: 0;
}

@media (max-width: 991px) {
  .fx-founder { grid-template-columns: 1fr; gap: 50px; }
  .fx-founder__photo { max-width: 460px; }
  .fx-founder__photo::after { left: -14px; bottom: -14px; }
}

/* --- Partenaires ----------------------------------------------------------- */
.fx-partners {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--fx-line);
  border-left: 1px solid var(--fx-line);
}

.fx-partners li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  padding: 26px;
  border-right: 1px solid var(--fx-line);
  border-bottom: 1px solid var(--fx-line);
  background: #fff;
}

.fx-partners img {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .75;
  transition: filter .3s ease, opacity .3s ease;
}

.fx-partners li:hover img {
  filter: none;
  opacity: 1;
}

@media (max-width: 991px) {
  .fx-partners { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
  .fx-partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-partners li { height: 110px; padding: 18px; }
}

/* --- Appel à l'action (avant le footer) ------------------------------------ */
.fx-cta {
  background: var(--fx-yellow);
  color: var(--fx-petrol);
}

.fx-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 60px;
  align-items: end;
  padding: 100px 0;
}

.fx-cta .fx-heading {
  color: var(--fx-petrol);
}

.fx-cta__contacts {
  display: grid;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
}

.fx-cta__contacts a {
  color: var(--fx-petrol);
}

.fx-cta__contacts a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.fx-cta .fx-btn,
.fx-cta__contacts a.fx-btn {
  margin-top: 22px;
  justify-self: start;
  color: #fff;
}

.fx-cta .fx-btn:hover {
  background: var(--fx-petrol-deep);
  border-color: var(--fx-petrol-deep);
  color: #fff;
}

@media (max-width: 991px) {
  .fx-cta__inner { grid-template-columns: 1fr; gap: 30px; padding: 70px 0; }
}

/* --- Footer ------------------------------------------------------------------ */
.fx-footer {
  background: var(--fx-petrol-deep);
  color: rgba(255, 255, 255, .72);
  padding: 90px 0 36px;
  font-size: 16px;
}

.fx-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 50px;
}

.fx-footer__logo img {
  max-width: 230px;
  height: auto;
}

.fx-footer__baseline {
  margin: 26px 0 0;
  max-width: 30ch;
  font-family: var(--fx-serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.35;
  color: #fff;
}

.fx-footer h2 {
  margin: 0 0 18px;
  font-family: var(--fx-sans);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.fx-footer ul {
  display: grid;
  gap: 10px;
}

.fx-footer a {
  color: rgba(255, 255, 255, .72);
  transition: color .2s ease;
}

.fx-footer a:hover {
  color: var(--fx-green);
}

.fx-footer address {
  margin: 0 0 18px;
  font-style: normal;
  line-height: 1.55;
}

.fx-footer address strong {
  display: block;
  color: #fff;
  font-weight: 600;
}

.fx-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 70px;
  padding-top: 26px;
  border-top: 1px solid var(--fx-line-light);
  font-size: 14px;
}

@media (max-width: 991px) {
  .fx-footer__grid { grid-template-columns: 1fr 1fr; }
  .fx-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 575px) {
  .fx-footer__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* --- En-têtes des pages intérieures (template) --------------------------- */
.breadcrumb {
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
}

.breadcrumb > .container {
  width: 100%;
}

.breadcrumb__bg::before {
  z-index: 1;
  background: linear-gradient(0deg, rgba(0, 36, 47, .88) 0%, rgba(0, 36, 47, .45) 55%, rgba(0, 36, 47, .3) 100%) !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

.breadcrumb__content {
  padding-bottom: 70px;
}

.services-rating__wrap .desc {
  max-width: 40ch;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--fx-ink-soft);
}

.services-rating .section-title-wrapper .section-title {
  line-height: 1.08;
}

.breadcrumb__title,
.page-title-area .page-title-wrapper .page-title {
  font-family: var(--fx-serif);
  font-weight: 400;
  letter-spacing: -.02em;
  text-transform: none;
}

.breadcrumb__title {
  font-size: clamp(52px, 8vw, 120px);
  line-height: 1;
}

.page-title-area .page-title-wrapper .page-title {
  font-size: clamp(40px, 5.6vw, 92px);
  line-height: 1.04;
  color: var(--fx-petrol);
}

.breadcrumb__sub-title,
.page-title-area .page-title-wrapper .page-sub-title {
  font-family: var(--fx-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}

.breadcrumb__sub-title {
  color: rgba(255, 255, 255, .85);
}

.page-title-area .page-title-wrapper .page-sub-title {
  color: var(--fx-ink-soft);
}

.dream-breadcrumb-title {
  font-size: clamp(44px, 6.4vw, 100px) !important;
  line-height: 1.02 !important;
}

/* Titres de sections du template passés en serif, sans capitales forcées */
.about-us__inner > .title,
.about-us__box .media .title,
.services-2__content .title,
.services-2__wrapper .title,
.section-title-wrapper .section-title,
.awarded-title__wrapper .title,
.portfolio-details .section-title-wrapper .title,
.team-list-area__inner .title,
.team-area .sub-title,
.faq-wrapper .content .title,
.contact-info__item .sub-title,
.blog__item .content .title,
.blog-details .section-title-wrapper .section-title,
.projects__item .projects__content .text .title,
.projects-2__item .title,
.approach-wrapper-box .section-title {
  font-family: var(--fx-serif);
  font-weight: 400;
  text-transform: none;
  letter-spacing: -.01em;
  color: var(--fx-petrol);
}

.about-us__inner > .title {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.25;
}

.blog__item .content .title {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.25;
}

.projects__item .projects__content .text .title {
  font-size: clamp(30px, 3.2vw, 52px);
  line-height: 1.08;
}

.projects__item .projects__content .text .sub-title {
  font-family: var(--fx-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.projects__item .projects__content .text .fx-num {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 34px;
  line-height: 1;
}

/* Le template écrit « title span » en italique serif : on neutralise cet effet. */
.services-2__content .title span,
.section-title-wrapper .section-title span {
  font-family: inherit;
  font-style: normal;
  color: inherit;
}

/* --- Filtres projets ------------------------------------------------------- */
.dream-filters {
  margin-bottom: 60px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.dream-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.dream-filters__search {
  flex: 1 1 260px;
  height: 52px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--primary);
  font-size: 16px;
}

.dream-filters__search:focus {
  border-color: var(--fx-petrol);
}

.dream-filters .nice-select {
  height: 52px;
  line-height: 50px;
  min-width: 150px;
  border-radius: 999px;
  border: 1px solid var(--border);
  float: none;
  color: var(--fx-petrol);
  font-size: 15px;
}

.dream-filters .nice-select .list {
  max-height: 300px;
  overflow-y: auto;
  border-radius: 14px;
}

.dream-filters .nice-select .option.selected {
  font-weight: 600;
}

.dream-filters__sort {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.dream-filters__sort .sort-option {
  height: 52px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--secondary);
  transition: all .3s ease;
}

.dream-filters__sort .sort-option.active,
.dream-filters__sort .sort-option:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

#projects-zone {
  transition: opacity .2s ease;
}

#projects-zone.is-loading {
  opacity: .35;
  pointer-events: none;
}

.projects__item .projects__media img {
  width: 100%;
  object-fit: cover;
}

.dream-empty {
  padding: 60px 0;
  font-size: 18px;
}

/* --- Contenu riche (CKEditor) ---------------------------------------------- */
.dream-richtext p,
.dream-richtext li {
  font-size: 19px;
  line-height: 1.65;
  color: var(--secondary);
}

.dream-richtext p {
  margin-bottom: 20px;
  max-width: 64ch;
}

.dream-richtext h2,
.dream-richtext h3,
.dream-richtext h4 {
  margin: 30px 0 15px;
  font-family: var(--fx-serif);
  font-weight: 400;
}

.dream-richtext ul,
.dream-richtext ol {
  padding-left: 22px;
  margin-bottom: 20px;
}

.dream-richtext ul {
  list-style: disc;
}

.dream-richtext ul li::marker {
  color: var(--fx-green);
}

.dream-richtext ol {
  list-style: decimal;
}

.dream-richtext img {
  max-width: 100%;
  height: auto;
}

.dream-richtext a {
  text-decoration: underline;
}

/* --- Page détail expertise --------------------------------------------------- */
.hero-area-service-details .section-title-wrapper .section-title {
  max-width: 24ch;
  font-size: clamp(30px, 3.4vw, 54px);
  line-height: 1.15;
}

.hero-area-service-details .service-meta a {
  color: var(--fx-petrol);
  font-weight: 600;
}

.fx-feature-label {
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--fx-petrol);
}

.hero-area-service-details .feature-list a {
  color: inherit;
}

.hero-area-service-details .feature-list a:hover {
  color: var(--fx-petrol-2);
}

.dream-service-gallery__row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.dream-service-gallery__row.is-reversed .dream-service-gallery__media {
  order: 2;
}

.dream-service-gallery__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.dream-service-gallery__content .title {
  font-family: var(--fx-serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.dream-service-gallery__content p {
  font-size: 17px;
}

@media (max-width: 991px) {
  .dream-service-gallery__row {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 50px;
  }

  .dream-service-gallery__row.is-reversed .dream-service-gallery__media {
    order: 0;
  }
}

/* --- Page détail projet ---------------------------------------------------- */
.page-title-area .fx-project-num {
  display: inline-block;
  margin-bottom: 26px;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1;
}

.page-title-area .fx-project-concept {
  display: block;
  margin-top: 18px;
  font-family: var(--fx-serif);
  font-style: italic;
  font-size: clamp(22px, 2vw, 30px);
  color: var(--fx-petrol-2);
}

.portfolio-details__info-item span {
  color: var(--fx-ink-soft);
}

.portfolio-details__info-item .title {
  color: var(--fx-petrol);
}

.portfolio-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--fx-ease);
}

.portfolio-gallery__item:hover img {
  transform: scale(1.03);
}

.dream-socials {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.dream-socials a {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--primary);
  transition: all .3s ease;
}

.dream-socials a:hover {
  background: var(--primary);
  color: var(--white);
}

.dream-project-video video {
  width: 100%;
  display: block;
  margin-bottom: 80px;
}

.dream-map iframe {
  width: 100%;
  height: 450px;
  border: 0;
  filter: grayscale(1);
  margin-bottom: 60px;
}

/* projet précédent / suivant */
.fx-project-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--fx-line);
}

.fx-project-nav a {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 40px 0;
  color: var(--fx-petrol);
}

.fx-project-nav a + a {
  padding-left: 40px;
  border-left: 1px solid var(--fx-line);
}

.fx-project-nav img {
  width: 120px;
  height: 90px;
  object-fit: cover;
}

.fx-project-nav small {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--fx-ink-soft);
}

.fx-project-nav strong {
  font-family: var(--fx-serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
}

.fx-project-nav a:hover strong {
  text-decoration: underline;
  text-decoration-color: var(--fx-green);
  text-underline-offset: 5px;
}

@media (max-width: 767px) {
  .fx-project-nav { grid-template-columns: 1fr; }
  .fx-project-nav a + a { padding-left: 0; border-left: 0; border-top: 1px solid var(--fx-line); }
  .fx-project-nav a { grid-template-columns: 90px minmax(0, 1fr); }
  .fx-project-nav img { width: 90px; height: 70px; }
}

/* --- Formulaires (contact, FAQ) -------------------------------------------- */
.fx-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

.fx-field {
  display: grid;
  gap: 8px;
}

.fx-field--full {
  grid-column: 1 / -1;
}

.fx-field label {
  font-size: 15px;
  font-weight: 600;
  color: var(--fx-petrol);
}

.fx-field label small {
  font-weight: 400;
  color: var(--fx-ink-soft);
}

.fx-field input,
.fx-field select,
.fx-field textarea {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--fx-line);
  border-radius: 10px;
  background: #fff;
  color: var(--fx-petrol);
  font-family: var(--fx-sans);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.fx-field textarea {
  min-height: 160px;
  resize: vertical;
}

.fx-field input:focus,
.fx-field select:focus,
.fx-field textarea:focus {
  outline: none;
  border-color: var(--fx-petrol);
  box-shadow: 0 0 0 3px rgba(95, 187, 70, .35);
}

.fx-field .nice-select {
  width: 100%;
  height: auto;
  padding: 15px 18px;
  line-height: 1.4;
  border-radius: 10px;
  border-color: var(--fx-line);
  font-size: 16px;
  color: var(--fx-petrol);
  float: none;
}

.fx-field .nice-select .list {
  width: 100%;
  border-radius: 10px;
}

.fx-field--error input,
.fx-field--error textarea {
  border-color: #c0392b;
}

.fx-field__error {
  font-size: 14px;
  color: #b03a2e;
}

.fx-form__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fx-form__submit {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.fx-form__note {
  font-size: 14px;
  color: var(--fx-ink-soft);
}

.fx-alert {
  grid-column: 1 / -1;
  padding: 18px 22px;
  border-radius: 10px;
  font-weight: 500;
}

.fx-alert--success {
  background: rgba(95, 187, 70, .14);
  border: 1px solid rgba(95, 187, 70, .5);
  color: var(--fx-petrol);
}

.fx-alert--error {
  background: rgba(192, 57, 43, .08);
  border: 1px solid rgba(192, 57, 43, .35);
  color: #8e2a20;
}

@media (max-width: 767px) {
  .fx-form { grid-template-columns: 1fr; }
}

/* --- Page contact ---------------------------------------------------------- */
.fx-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr);
  gap: 90px;
  align-items: start;
}

.fx-offices {
  display: grid;
  gap: 40px;
}

.fx-office h2,
.fx-office h3 {
  margin: 0 0 10px;
  font-family: var(--fx-serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.1;
}

.fx-office address {
  margin: 0 0 10px;
  font-style: normal;
  font-size: 17px;
  line-height: 1.55;
}

.fx-office a {
  display: block;
}

.fx-office a,
.fx-contact-direct a {
  color: var(--fx-petrol);
  font-weight: 600;
}

.fx-office a:hover,
.fx-contact-direct a:hover {
  color: var(--fx-petrol-2);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.fx-contact-direct {
  padding-top: 30px;
  border-top: 1px solid var(--fx-line);
  display: grid;
  gap: 6px;
  font-size: 17px;
}

@media (max-width: 991px) {
  .fx-contact { grid-template-columns: 1fr; gap: 60px; }
}

/* --- FAQ ------------------------------------------------------------------- */
.faq-area-faq-page .accordion-button {
  font-family: var(--fx-sans);
  font-size: 20px;
  font-weight: 600;
  color: var(--fx-petrol);
}

.faq-area-faq-page .accordion-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fx-ink-soft);
}

.faq-area-faq-page .accordion-body a {
  color: var(--fx-petrol);
  text-decoration: underline;
  text-decoration-color: var(--fx-green);
}

/* --- Équipe / profil ------------------------------------------------------- */
.fx-bio p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 62ch;
}

.fx-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.fx-split p {
  font-size: 18px;
  line-height: 1.7;
  max-width: 58ch;
  margin-bottom: 20px;
}

.fx-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--fx-line);
}

.fx-checklist li {
  position: relative;
  padding: 16px 0 16px 30px;
  border-bottom: 1px solid var(--fx-line);
  font-size: 18px;
  color: var(--fx-petrol);
}

.fx-checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 25px;
  width: 12px;
  height: 2px;
  background: var(--fx-green);
}

.fx-dark .fx-checklist {
  border-top-color: var(--fx-line-light);
}

.fx-dark .fx-checklist li {
  color: #fff;
  border-bottom-color: var(--fx-line-light);
}

@media (max-width: 991px) {
  .fx-split { grid-template-columns: 1fr; gap: 40px; }
}

/* --- Méthode (étapes) --------------------------------------------------------- */
.fx-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--fx-line);
}

.fx-step {
  padding: 36px 30px 40px 0;
  border-bottom: 1px solid var(--fx-line);
}

.fx-step + .fx-step {
  padding-left: 30px;
  border-left: 1px solid var(--fx-line);
}

.fx-step .fx-num {
  font-size: 40px;
  line-height: 1;
}

.fx-step h3 {
  margin: 26px 0 12px;
  font-family: var(--fx-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
}

.fx-step p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

@media (max-width: 991px) {
  .fx-steps { grid-template-columns: 1fr 1fr; }
  .fx-step:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 575px) {
  .fx-steps { grid-template-columns: 1fr; }
  .fx-step + .fx-step { padding-left: 0; border-left: 0; }
}

/* ==========================================================================
   Méga-menu « révélation d'image » (desktop >= 1200px)
   ========================================================================== */
@media (min-width: 1200px) {
  .header__nav-2 li[data-mega] > .dp-menu {
    display: none !important;
  }
}

.header__nav-2 li[data-mega] > a {
  position: relative;
}

.header__nav-2 li[data-mega] > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fx-green);
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity .3s ease, transform .3s ease;
}

.header__nav-2 li.is-mega-active > a::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.mega-menu {
  position: fixed;
  top: var(--mega-top, 80px);
  left: 0;
  right: 0;
  z-index: 98;
  background: var(--white);
  border-top: 1px solid var(--border);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s cubic-bezier(.77, 0, .175, 1), visibility 0s linear .7s;
}

.mega-menu.is-open {
  visibility: visible;
  clip-path: inset(0 0 0 0);
  transition: clip-path .7s cubic-bezier(.77, 0, .175, 1), visibility 0s;
}

.mega-menu__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 80px;
  height: min(72vh, 640px);
  padding: 50px 0 60px;
}

.mega-menu__list {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.mega-menu__list::-webkit-scrollbar {
  display: none;
}

.mega-menu__eyebrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 24px;
}

.mega-menu__eyebrow sup {
  font-size: 12px;
}

.mega-menu__item {
  display: grid;
  grid-template-columns: 1fr auto 28px;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--primary);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .5s ease, transform .6s var(--fx-ease);
}

.mega-menu.is-open .mega-menu__item {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 60ms + 250ms);
}

.mega-menu__label {
  font-family: var(--fx-serif);
  font-size: clamp(28px, 2.8vw, 50px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: rgba(0, 54, 71, .3);
  transition: color .35s ease, transform .45s var(--fx-ease);
}

.mega-menu__meta {
  font-size: 14px;
  color: var(--secondary);
  opacity: 0;
  transition: opacity .3s ease;
}

.mega-menu__arrow {
  font-size: 20px;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity .3s ease, transform .4s ease;
}

.mega-menu__item.is-active .mega-menu__label {
  color: var(--primary);
  transform: translateX(14px);
}

.mega-menu__item.is-active .mega-menu__meta,
.mega-menu__item.is-active .mega-menu__arrow {
  opacity: 1;
  transform: none;
}

.mega-menu__media {
  position: relative;
  overflow: hidden;
  background: var(--fx-paper);
  clip-path: inset(100% 0 0 0);
  transition: clip-path .9s cubic-bezier(.77, 0, .175, 1) .15s;
}

.mega-menu.is-open .mega-menu__media {
  clip-path: inset(0 0 0 0);
}

.mega-menu__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity .6s ease, transform 1.4s var(--fx-ease);
}

.mega-menu__img.is-current {
  opacity: 1;
  transform: scale(1);
}

.mega-menu__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 60px 28px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 36, 47, .7), transparent);
}

.mega-menu-overlay {
  position: fixed;
  top: var(--mega-top, 80px);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 97;
  background: rgba(0, 36, 47, .5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility 0s linear .5s;
}

.mega-menu-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity .5s ease, visibility 0s;
}

@media (max-width: 1199px) {
  .mega-menu,
  .mega-menu-overlay {
    display: none;
  }
}

/* --- Bouton « haut de page » --------------------------------------------- */
.progress-wrap {
  mix-blend-mode: normal !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25);
}

.progress-wrap.active-progress {
  background-color: var(--fx-petrol);
}

.progress-wrap::after {
  color: #fff !important;
}

.progress-wrap svg.progress-circle path {
  fill: transparent;
  stroke: var(--fx-yellow);
}

/* --- Préchargement : fond pétrole et logo --------------------------------- */
.loader-wrap {
  background: var(--fx-petrol-deep);
}

.loader-wrap svg path {
  fill: var(--fx-petrol-deep);
}

.loader-wrap .load-text span {
  font-family: var(--fx-serif);
  color: #fff;
}

/* --- Mouvement réduit --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .fx-hero__slide,
  .fx-hero__slide img,
  .mega-menu,
  .mega-menu__media,
  .mega-menu__item,
  .mega-menu__img,
  .fx-index__row,
  .fx-index-preview {
    transition: none !important;
    animation: none !important;
  }
}

/* Ligne d'adresse (le template masque les <br> sur petits écrans) */
.fx-line {
  display: block;
}
