/* =========================================================
   FUELLED — feuille de style principale
   Polices : Messina Sans Semi Bold (texte) / Value Serif Regular (titres, logo)
   Les fichiers de police ne sont pas encore fournis : les @font-face
   ci-dessous pointent vers /assets/fonts/ — dès que les fichiers .woff2
   y seront déposés, les bonnes polices s'appliqueront automatiquement,
   sans aucune autre modification. En attendant, la pile de secours
   (fallback) est utilisée.
   ========================================================= */

@font-face {
  font-family: "Messina Sans";
  src: url("../fonts/MessinaSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Value Serif";
  src: url("../fonts/ValueSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-orange: #fa973d;
  --color-cream: #fcfaf3;
  --color-black: #000000;

  --font-heading: "Value Serif", "Iowan Old Style", "Georgia", "Times New Roman", serif;
  --font-body: "Messina Sans", "Helvetica Neue", "Segoe UI", Arial, sans-serif;

  --menu-width: clamp(150px, 17vw, 220px);
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-bottom: 110px;
  padding-right: var(--menu-width);
  background: var(--color-cream);
  color: var(--color-black);
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
  color: var(--color-orange);
}

h1 { font-size: clamp(1.75rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }

p {
  margin: 0 0 1em;
}

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

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 8vw;
}

@media (min-width: 1400px) {
  .container { padding: 0 6vw; }
}

/* ---------------------------------------------------------
   BANDEAU LOGO — bandeau crème pleine largeur, ancré en haut de
   la page : il défile avec le contenu et disparaît en scrollant
   --------------------------------------------------------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 500;
  background: var(--color-cream);
  padding: 32px 0 40px;
}

.site-logo {
  display: inline-block;
  margin-left: 8vw;
  transition: opacity var(--transition);
}

.site-logo img {
  display: block;
  width: 66vw;
  height: auto;
}

@media (hover: hover) and (pointer: fine) {
  .site-logo:hover { opacity: 0.7; }
}

@media (max-width: 780px) {
  .site-header { padding: 20px 0 28px; }
  .site-logo img { width: 78vw; }
}

/* ---------------------------------------------------------
   ICÔNE — repère de marque fixe, en bas à droite
   --------------------------------------------------------- */
.site-icon {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: fixed;
  bottom: 28px;
  right: 8vw;
  z-index: 500;
  display: inline-block;
  transition: transform var(--transition), opacity var(--transition);
}

.site-icon img {
  display: block;
  height: 40px;
  width: 40px;
}

@media (hover: hover) and (pointer: fine) {
  .site-icon:hover {
    transform: translateY(-2px);
    opacity: 0.8;
  }
}

@media (max-width: 780px) {
  .site-icon {
    bottom: 78px;
    right: 24px;
  }

  .site-icon img {
    height: 34px;
    width: 34px;
  }
}

/* ---------------------------------------------------------
   MENU VERTICAL — fixe à droite, suit le défilement
   --------------------------------------------------------- */
.side-menu {
  background: var(--color-cream);
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: var(--menu-width);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2.1rem;
  padding-right: 3.2vw;
  z-index: 500;
}

.side-menu a {
  position: relative;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-black);
  padding: 4px 0;
  transition: color var(--transition);
}

.side-menu a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--color-orange);
  transition: width var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .side-menu a:hover,
  .side-menu a.is-active {
    color: var(--color-orange);
  }
}

@media (hover: hover) and (pointer: fine) {
  .side-menu a:hover::after,
  .side-menu a.is-active::after {
    width: 100%;
  }
}

.side-menu-toggle {
  display: none;
}

@media (max-width: 780px) {
  .site-logo {
    top: 18px;
    left: 24px;
    font-size: 1.3rem;
  }

  .side-menu {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    padding: 14px 4vw;
    background: var(--color-cream);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    gap: 0;
  }

  .side-menu a {
    font-size: 0.85rem;
  }

  body {
    padding-bottom: 150px;
    padding-right: 0;
  }
}

/* ---------------------------------------------------------
   SECTIONS génériques
   --------------------------------------------------------- */
.page-hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(15.5vw + 104px) 8vw 60px calc(8vw);
  padding-right: 8vw;
}

@media (max-width: 780px) {
  .page-hero {
    padding-right: 8vw;
    padding-top: calc(18.5vw + 90px);
    min-height: 44vh;
  }
}

.page-hero--compact {
  min-height: 0;
  padding-bottom: 0;
}

.page-hero--compact + .section {
  padding-top: 1.5rem;
}

.back-link {
  align-self: flex-start;
  margin-bottom: 1.6rem;
  padding: 8px 18px;
  border: 1.5px solid var(--color-orange);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--color-orange);
  transition: background var(--transition), color var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .back-link:hover,
  .back-link:focus-visible {
    background: var(--color-orange);
    color: var(--color-cream);
  }
}

.section {
  padding: 90px 8vw;
  padding-right: 8vw;
}

@media (max-width: 780px) {
  .section { padding-right: 8vw; }
}

.section--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .section--split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--color-orange);
  margin-bottom: 0.8em;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid var(--color-black);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background: var(--color-black);
    color: var(--color-cream);
  }
}

.btn--primary {
  background: transparent;
  border-color: var(--color-orange);
  color: var(--color-orange);
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    background: var(--color-orange);
    border-color: var(--color-orange);
    color: var(--color-cream);
  }
}

/* ---------------------------------------------------------
   ACCUEIL — 4 sections renvoyant chacune vers une page du menu
   --------------------------------------------------------- */
.home-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(15.5vw + 100px) 8vw 60px;
  padding-right: 8vw;
}

@media (max-width: 780px) {
  .home-hero {
    padding-right: 8vw;
    padding-top: calc(18.5vw + 90px);
    min-height: 90vh;
  }
}

.home-hero__content {
  max-width: 900px;
}

.nowrap {
  white-space: nowrap;
}

.home-hero__content p {
  font-size: 1.15rem;
  max-width: 640px;
}

.home-sections {
  display: flex;
  flex-direction: column;
}

.home-card {
  padding: 80px 8vw;
  padding-right: 8vw;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  transition: background var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .home-card:hover {
    background: rgba(250, 151, 61, 0.12);
  }
}

.home-card__arrow {
  font-size: 1.8rem;
  transition: transform var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .home-card:hover .home-card__arrow {
    transform: translateX(8px);
  }
}

@media (max-width: 780px) {
  .home-card {
    grid-template-columns: 1fr;
    padding-right: 8vw;
    gap: 0.6rem;
  }
}

/* ---------------------------------------------------------
   PLACEHOLDERS visuels (photo / cabinet / logo à venir)
   --------------------------------------------------------- */
.placeholder-visual {
  aspect-ratio: 4 / 5;
  background: repeating-linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.05),
    rgba(0, 0, 0, 0.05) 10px,
    transparent 10px,
    transparent 20px
  );
  border: 1.5px dashed rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.2rem;
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.85rem;
}

.placeholder-visual--wide {
  aspect-ratio: 16 / 10;
}

.about-portrait {
  float: left;
  object-position: center 40%;
  width: min(340px, 46%);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin: 0.4rem 2.2rem 1rem 0;
}

@media (max-width: 600px) {
  .about-portrait {
    float: none;
    width: 100%;
    margin: 0 0 1.4rem;
  }
}

.placeholder-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

@media (max-width: 560px) {
  .placeholder-row { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------
   À PROPOS
   --------------------------------------------------------- */
.about-bio {
  max-width: none;
}

.about-bio::after {
  content: "";
  display: block;
  clear: both;
}

.about-bio [data-fill] {
  background: rgba(250, 151, 61, 0.22);
  padding: 0 4px;
  border-radius: 3px;
}

/* ---------------------------------------------------------
   EXPERTISE — accordéon imbriqué (catégories > thématiques)
   --------------------------------------------------------- */
.expertise-intro {
  max-width: 620px;
}

.expertise-accordion {
  margin-top: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.expertise-drawer {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.expertise-drawer__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.25rem;
  padding: 1.4rem 0.2rem;
  cursor: pointer;
  color: var(--color-black);
  text-align: left;
}

@media (hover: hover) and (pointer: fine) {
  .expertise-drawer__trigger:hover {
    color: var(--color-orange);
  }
}

.expertise-drawer__icon {
  font-size: 1.4rem;
  font-family: var(--font-body);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.expertise-drawer.is-open .expertise-drawer__icon {
  transform: rotate(45deg);
}

.expertise-drawer__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}

.expertise-drawer__inner {
  padding: 0 0.2rem 1.2rem;
}

.expertise-item {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.expertise-item:first-child {
  border-top: none;
}

.expertise-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 1rem 0.2rem;
  cursor: pointer;
  color: var(--color-black);
  text-align: left;
}

@media (hover: hover) and (pointer: fine) {
  .expertise-item__trigger:hover {
    color: var(--color-orange);
  }
}

.expertise-item__icon {
  font-size: 1.2rem;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.expertise-item.is-open .expertise-item__icon {
  transform: rotate(45deg);
}

.expertise-item__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}

.expertise-item__inner {
  padding: 0 0.2rem 1rem 1.2rem;
}

.expertise-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}

.expertise-sublist li {
  padding: 0.4rem 0;
  color: rgba(0, 0, 0, 0.8);
}

.expertise-item__trigger--static,
.expertise-drawer__trigger--static {
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .expertise-item__trigger--static:hover {
    color: var(--color-black);
  }
}

@media (hover: hover) and (pointer: fine) {
  .expertise-drawer__trigger--static:hover {
    color: var(--color-black);
  }
}


/* ---------------------------------------------------------
   CONSULTATIONS
   --------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  margin-top: 2.6rem;
}

@media (min-width: 1250px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.pricing-card__duration {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-cream);
}

.pricing-card__price {
  margin: 0 0 0.8rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-orange);
}

.offer-banner {
  margin-top: 0;
  background: var(--color-cream);
  border: 1.5px solid var(--color-orange);
  color: var(--color-orange);
  border-radius: 14px;
  padding: 2rem 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  justify-content: space-between;
}

.offer-banner h3 {
  margin-bottom: 0.3rem;
  color: var(--color-orange);
}

.offer-banner__note {
  font-size: 0.85rem;
  font-style: italic;
}

/* ---------------------------------------------------------
   ACCÈS
   --------------------------------------------------------- */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .access-grid { grid-template-columns: 1fr; }
}

.access-block {
  margin-bottom: 2rem;
}

.access-block h3 {
  margin-bottom: 0.5rem;
}

.tpg-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-cream);
  font-size: 0.85rem;
  font-weight: 700;
  margin-right: 8px;
}

.map-wrap {
  position: relative;
}

.map-card {
  position: absolute;
  top: 12px;
  right: 12px;
  max-width: 72%;
  padding: 10px 14px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  color: var(--color-black);
  font-size: 0.85rem;
  line-height: 1.3;
}

@media (hover: hover) and (pointer: fine) {
  .map-card:hover,
  .map-card:focus-visible {
    text-decoration: underline;
  }
}

.map-embed {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 12px;
  filter: grayscale(0.15);
}

[data-fill] {
  background: rgba(250, 151, 61, 0.22);
  padding: 0 4px;
  border-radius: 3px;
}

/* ---------------------------------------------------------
   ONEDOC — bouton flottant + modal (prêt à recevoir l'embed)
   --------------------------------------------------------- */
.onedoc-float {
  position: fixed;
  bottom: 28px;
  left: 8vw;
  z-index: 600;
  background: var(--color-cream);
  color: var(--color-orange);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid var(--color-orange);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .onedoc-float:hover {
    transform: translateY(-2px);
    background: var(--color-orange);
    color: var(--color-cream);
  }
}

@media (max-width: 780px) {
  .onedoc-float {
    left: 24px;
    bottom: 78px;
    padding: 12px 20px;
    font-size: 0.82rem;
  }
}

.onedoc-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  padding: 4vw;
}

.onedoc-modal.is-open {
  display: flex;
}

.onedoc-modal__panel {
  background: var(--color-cream);
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 16px;
  padding: 2.2rem;
  position: relative;
}

.onedoc-modal__close {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-black);
  line-height: 1;
}

.onedoc-embed-slot {
  margin-top: 1.4rem;
  border-radius: 10px;
  overflow: hidden;
}

.onedoc-embed-slot iframe {
  display: block;
  border: 0;
}

footer.site-footer {
  padding: 60px 8vw 40px;
  padding-right: 8vw;
  color: var(--color-black);
}

@media (max-width: 780px) {
  footer.site-footer { padding-right: 8vw; }
}

.site-footer__brand {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 0.7em;
  color: var(--color-orange);
}

.site-footer__address {
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin: 0;
}

.site-footer__copyright {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-align: center;
  margin: 3rem 0 0;
}

/* ---------------------------------------------------------
   ACCUEIL — tuiles qui se retournent (une par page du menu)
   --------------------------------------------------------- */
.home-hero {
  min-height: 78vh;
}

.home-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  padding: 1rem 8vw 90px;
  padding-right: 8vw;
}

@media (max-width: 900px) {
  .home-tiles { grid-template-columns: 1fr; padding-right: 8vw; }
}

.tile {
  display: block;
  min-height: 300px;
  perspective: 1100px;
  color: var(--color-cream);
}

.tile__inner {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.tile.is-flipped .tile__inner {
  transform: rotateY(180deg);
}

/* Retournement au survol : souris uniquement (sur téléphone, c'est le toucher qui retourne) */
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile__inner,
  .tile:focus-visible .tile__inner {
    transform: rotateY(180deg);
  }
}

.tile__face {
  position: relative;
  grid-area: 1 / 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem;
  border-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.tile__front {
  background-color: var(--color-cream);
  background-size: cover;
  background-position: center;
  color: var(--color-cream);
}

.tile__front::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.22) 42%, rgba(0, 0, 0, 0.08) 100%);
}

.tile__front > * {
  position: relative;
}

.tile__front h2,
.tile__front h3 {
  color: var(--color-cream);
}

.tile--apropos .tile__front { background-image: url("../img/tile-apropos.jpg"); }
.tile--expertise .tile__front { background-image: url("../img/tile-expertise.jpg"); }
.tile--consultations .tile__front { background-image: url("../img/tile-consultations.jpg"); }
.tile--acces .tile__front { background-image: url("../img/tile-acces.jpg"); background-position: center 35%; }

/* Grain, sur les deux faces */
.tile__face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.28;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  1.6 0 0 0 -0.45'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.tile__back {
  transform: rotateY(180deg);
  justify-content: space-between;
  color: var(--color-cream);
}

.tile__back--orange { background: var(--color-orange); }

.tile__back-title {
  display: block;
  margin-bottom: 0.7rem;
}

.tile__back-body {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
}

.tile__back::after {
  opacity: 0.18;
}

.tile__back-text {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.3;
}

.tile__back-cta {
  font-size: 0.95rem;
}

.tile h2 {
  margin: 0 0 0.3rem;
}

.tile__hint {
  margin: 0;
  max-width: 24rem;
  font-size: 0.95rem;
}

.tile__arrow {
  color: var(--color-cream);
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  font-size: 1.8rem;
}

.tile__portrait {
  width: 84px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: auto;
}

.tile__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: auto;
  max-width: 85%;
}

.tile__chips span {
  padding: 4px 12px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .tile__inner { transition: none; }
}

/* Léger décalage du texte selon la souris (parallaxe) */
.tile h2,
.tile h3,
.tile__hint,
.tile__chips,
.tile__back-text {
  --d: 8;
  transform: translate(calc(var(--mx, 0) * var(--d) * 1px), calc(var(--my, 0) * var(--d) * 1px + var(--sy, 0) * 1px));
  transition: transform 0.35s ease-out;
}

.tile__hint { --d: 4; }
.tile__chips { --d: -5; }
.tile__back-text { --d: -9; }

.tile--expertise h2 { --d: -10; }
.tile--consultations h2 { --d: 11; }
.tile--acces h2 { --d: -7; }

@media (prefers-reduced-motion: reduce) {
  .tile h2, .tile__hint, .tile__chips, .tile__back-text { transform: none; }
}

/* Consultations : cartes à photo qui se retournent */
.tile--consult {
  min-height: 360px;
  outline: none;
}

.tile--consult h3 {
  margin: 0.1em 0 0;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
  color: var(--color-cream);
}

.tile--consult .pricing-card__price {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-cream);
}

.tile--consult .tile__arrow {
  font-size: 1.6rem;
  line-height: 1;
}

.tile--premiere .tile__front {
  background-image: url("../img/consult-premiere.jpg");
  background-size: cover;
  background-position: 50% 47%;
}

/* Voile plus léger : on garde la lumière de la photo d'origine, le texte reste sur la zone sombre du bas */
.tile--premiere .tile__front::before {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.3) 32%, rgba(0, 0, 0, 0) 62%);
}

@media (max-width: 480px) {
  .tile--premiere .tile__front { background-position: 50% 62%; }
}

@media (min-width: 1250px) {
  .tile--premiere .tile__front { background-position: 50% 76%; }
}
/* Version pamplemousses (conservée : consult-deuxieme.jpg, cadrage 112% / 50% 45%)
.tile--deuxieme .tile__front {
  background-image: url("../img/consult-deuxieme.jpg");
  background-size: 112% auto;
  background-position: 50% 45%;
}
*/

/* Test : les deux gousses de petits pois */
.tile--deuxieme .tile__front {
  background-image: url("../img/consult-deuxieme-pois.jpg");
  background-size: cover;
  background-position: 50% 40%;
}

/* Photo des petits pois plus lumineuse : voile léger, concentré derrière le texte */
.tile--deuxieme .tile__front::before {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.24) 32%, rgba(0, 0, 0, 0) 60%);
}
.tile--suivi .tile__front {
  background-image: url("../img/consult-suivi.jpg");
  background-size: 150% auto;
  background-position: 5% 50%;
}

@media (max-width: 480px) {
  .tile--suivi .tile__front { background-position: 5% 62%; }
}

@media (min-width: 1250px) {
  .tile--suivi .tile__front { background-position: 5% 70%; }
}

/* Agrumes un peu plus lumineux : voile moins dense, toujours plus sombre derrière le texte */
.tile--suivi .tile__front::before {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0.06) 100%);
}

.tile__back--text {
  justify-content: center;
}

.tile__back--text p {
  margin: 0 0 0.8rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.tile__back--text p:last-child {
  margin-bottom: 0;
}

/* Bandeau d'offre : halo qui pulse + reflet qui traverse, pour capter l'attention */
.offer-banner {
  position: relative;
}

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

.offer-banner::before,
.offer-banner::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  pointer-events: none;
}

.offer-banner::before {
  animation: offer-halo 2.8s ease-out infinite;
}

.offer-banner::after {
  background: linear-gradient(110deg, transparent 38%, rgba(250, 151, 61, 0.2) 50%, transparent 62%);
  background-size: 260% 100%;
  background-position: 130% 0;
  animation: offer-shine 5s ease-in-out infinite;
}

@keyframes offer-halo {
  0% { box-shadow: 0 0 0 0 rgba(250, 151, 61, 0.5); }
  70%, 100% { box-shadow: 0 0 0 18px rgba(250, 151, 61, 0); }
}

@keyframes offer-shine {
  0% { background-position: 130% 0; }
  45%, 100% { background-position: -30% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .offer-banner::before,
  .offer-banner::after { animation: none; }
}

/* Pied de page : réseaux, liens légaux */
.site-footer__social {
  display: flex;
  gap: 1.1rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.site-footer__social a {
  display: block;
  width: 24px;
  height: 24px;
  color: var(--color-black);
  transition: color var(--transition), transform var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .site-footer__social a:hover,
  .site-footer__social a:focus-visible {
    color: var(--color-orange);
    transform: translateY(-2px);
  }
}

.site-footer__social svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
  margin-top: 2.6rem;
  font-size: 0.8rem;
}

@media (hover: hover) and (pointer: fine) {
  .site-footer__legal a:hover,
  .site-footer__legal a:focus-visible {
    color: var(--color-orange);
  }
}

.site-footer__legal + .site-footer__copyright {
  margin-top: 0.8rem;
}

/* Pages juridiques */
.legal {
  padding-top: 1.5rem;
}

.legal h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.35rem;
}

.legal p {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
}

/* Pied de page : bloc Contact */
.site-footer__contact {
  margin-top: 1.8rem;
}

.site-footer__contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

@media (hover: hover) and (pointer: fine) {
  .site-footer__mail:hover,
  .site-footer__mail:focus-visible {
    color: var(--color-orange);
  }
}

.site-footer__wa {
  display: block;
  width: 24px;
  height: 24px;
  color: var(--color-black);
  transition: color var(--transition), transform var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .site-footer__wa:hover,
  .site-footer__wa:focus-visible {
    color: var(--color-orange);
    transform: translateY(-2px);
  }
}

.site-footer__wa svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Page À propos : section cabinet */
.about-cabinet {
  display: grid;
  grid-template-columns: 1fr min(440px, 46%);
  grid-template-rows: auto 1fr;
  column-gap: 3rem;
  align-items: start;
  padding-top: 2rem;
}

.about-cabinet > h2,
.about-cabinet > p {
  grid-column: 1;
}

.about-cabinet > p {
  max-width: 560px;
}

.about-cabinet__photo {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 800px) {
  .about-cabinet {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .about-cabinet__photo {
    grid-column: 1;
    grid-row: auto;
    width: min(440px, 100%);
    margin-top: 1.4rem;
  }
}

/* Pied de page : trois colonnes sur ordinateur, liens légaux et copyright en dessous */
@media (min-width: 900px) {
  footer.site-footer {
    display: grid;
    grid-template-columns: 1fr 1.5fr auto;
    grid-template-areas:
      "brand contact social"
      "address contact social"
      "legal legal legal"
      "copy copy copy";
    column-gap: 4rem;
    align-items: start;
    padding-top: 50px;
  }

  .site-footer__brand { grid-area: brand; }
  .site-footer__address { grid-area: address; }

  .site-footer__contact {
    grid-area: contact;
    margin-top: 0.4rem;
  }

  .site-footer__social {
    grid-area: social;
    margin-top: 0.4rem;
  }

  .site-footer__legal {
    grid-area: legal;
    margin-top: 2.4rem;
  }

  .site-footer__copyright {
    grid-area: copy;
    margin-top: 0.8rem;
  }
}

/* Pied de page : plus d'air au-dessus et filet orange de séparation */
footer.site-footer {
  position: relative;
  margin-top: 6rem;
  padding-top: 3.4rem;
}

footer.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8vw;
  right: 8vw;
  border-top: 1.5px solid var(--color-orange);
}

/* Pied de page pleine largeur, sous le menu : le menu s'arrête au filet */
@media (min-width: 781px) {
  footer.site-footer {
    margin-right: calc(-1 * var(--menu-width));
    padding-right: 8vw;
  }

  footer.site-footer::before {
    left: 0;
    right: 0;
  }

  .side-menu {
    justify-content: safe center;
    overflow: hidden;
  }
}

/* Plus de bande vide sous le pied de page (ordinateur) : l'espace du bouton flottant est dans le pied de page */
@media (min-width: 781px) {
  body {
    padding-bottom: 0;
  }

  footer.site-footer {
    padding-bottom: 5.5rem;
  }
}

/* Le pied de page est toujours le dernier élément : collé au bas de l'écran sur les pages courtes, sans défilement au-delà */
html,
body {
  overscroll-behavior: none;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

footer.site-footer {
  flex-shrink: 0;
}

/* Mobile : l'espace réservé à la barre de menu et au bouton flottant fait partie du pied de page */
@media (max-width: 780px) {
  body {
    padding-bottom: 0;
  }

  footer.site-footer {
    padding-bottom: 150px;
  }
}

/* Bouton flottant : masqué tant qu'un bouton de rendez-vous de la page est visible */
.onedoc-float {
  transition: transform var(--transition), background var(--transition), color var(--transition), opacity 0.3s ease, visibility 0.3s;
}

.onedoc-float.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
}

/* Pied de page orange, textes crème : marque, colonnes, filet, puis ligne du bas */
footer.site-footer {
  background: var(--color-orange);
  color: var(--color-cream);
  margin-top: 6rem;
  padding: 4rem 8vw 5.5rem;
}

footer.site-footer::before {
  display: none;
}

.site-footer__brand {
  grid-area: brand;
  margin: 0 0 2.2rem;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--color-cream);
}

.site-footer__address {
  grid-area: address;
  font-size: 1rem;
  line-height: 1.6;
}

.site-footer__contact {
  grid-area: contact;
  margin-top: 1.4rem;
}

.site-footer__mail {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .site-footer__mail:hover,
  .site-footer__mail:focus-visible,
  .site-footer__legal a:hover,
  .site-footer__legal a:focus-visible,
  .site-footer__social a:hover,
  .site-footer__social a:focus-visible,
  .site-footer__wa:hover,
  .site-footer__wa:focus-visible {
    color: var(--color-cream);
    opacity: 0.75;
  }
}

.site-footer__wa {
  color: var(--color-cream);
}

.site-footer__bottom {
  grid-area: bottom;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 3.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(252, 250, 243, 0.7);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.site-footer__social {
  flex-wrap: wrap;
  gap: 0.8rem 1.8rem;
  margin: 0 auto 0 0;
}

.site-footer__social a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: auto;
  height: auto;
  color: var(--color-cream);
}

@media (hover: hover) and (pointer: fine) {
  .site-footer__social a:hover,
  .site-footer__social a:focus-visible,
  .site-footer__wa:hover,
  .site-footer__wa:focus-visible {
    transform: none;
  }
}

.site-footer__social svg {
  flex: none;
  width: 20px;
  height: 20px;
}

.site-footer__legal {
  justify-content: flex-start;
  gap: 0.4rem 1.6rem;
  margin: 0;
  font-size: inherit;
}

.site-footer__bottom .site-footer__copyright,
.site-footer__legal + .site-footer__copyright {
  margin: 0;
  font-size: inherit;
  text-align: left;
  opacity: 0.7;
}

@media (min-width: 900px) {
  footer.site-footer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "brand brand brand"
      "title-address title-contact ."
      "address contact ."
      "bottom bottom bottom";
    row-gap: 0;
  }

  .site-footer__title--contact {
    margin-top: 0;
  }
}

/* Titres de colonnes, avec un petit filet dessous */
.site-footer__title {
  margin: 0 0 1.2rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(252, 250, 243, 0.7);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.site-footer__title--address { grid-area: title-address; }
.site-footer__title--contact { grid-area: title-contact; }

@media (max-width: 899px) {
  .site-footer__title--contact { margin-top: 2rem; }
}

.site-footer__contact {
  margin-top: 0;
}

/* Phrase décorative en Value Serif, colonne de droite */
.site-footer__tagline {
  grid-area: tagline;
  margin: 2.4rem 0 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  line-height: 1.1;
  color: var(--color-cream);
}

@media (min-width: 900px) {
  footer.site-footer {
    grid-template-areas:
      "brand brand brand"
      "title-address title-contact tagline"
      "address contact tagline"
      "bottom bottom bottom";
  }

  .site-footer__tagline {
    margin: 0;
    text-align: right;
  }
}

/* Icône WhatsApp sous l'e-mail */
.site-footer__contact-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

@media (max-width: 780px) {
  footer.site-footer {
    padding-bottom: 150px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 2.4rem;
  }

  .site-footer__social {
    margin-right: 0;
  }
}

/* L'icône flottante passe en crème quand elle survole le pied de page orange */
.site-icon img {
  transition: filter var(--transition);
}

.site-icon.is-on-footer img {
  filter: brightness(0) invert(0.98);
}

/* Page active du menu : visible aussi sur téléphone (les règles de survol sont réservées à la souris) */
.side-menu a.is-active {
  color: var(--color-orange);
}

.side-menu a.is-active::after {
  width: 100%;
}

/* Toucher : un seul toucher suffit, pas de zoom par double toucher, pas de halo gris */
html {
  touch-action: manipulation;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

/* Le texte des cartes de consultation ne bouge plus au défilement : le titre ne chevauche plus la durée */
.tile--consult h3 {
  transform: none;
}

/* Lien du dos des cartes d'accueil : zone de toucher plus grande */
.tile__back-cta {
  padding-block: 0.6rem;
}

/* Téléphone : moins d'espace entre les blocs et avant le pied de page */
@media (max-width: 780px) {
  .page-hero {
    min-height: 0;
    padding-bottom: 1.5rem;
  }

  .home-hero {
    min-height: 0;
    padding-bottom: 2.4rem;
  }

  .section {
    padding-top: 2.4rem;
    padding-bottom: 2.4rem;
  }

  .about-cabinet {
    padding-top: 1.2rem;
  }

  .home-tiles {
    padding-bottom: 2.4rem;
  }

  .tile {
    min-height: 260px;
  }

  .tile--consult {
    min-height: 330px;
  }

  .expertise-accordion {
    margin-top: 1.6rem;
  }

  footer.site-footer {
    margin-top: 2.4rem;
    padding-top: 3rem;
  }
}

/* Téléphone : plus d'air entre les réseaux sociaux et les liens légaux */
@media (max-width: 780px) {
  .site-footer__social {
    margin-bottom: 1.2rem;
  }
}

/* Ordinateur : plus d'air entre les réseaux sociaux et les liens légaux */
@media (min-width: 781px) {
  .site-footer__bottom {
    gap: 1.4rem 3rem;
  }
}
