/*
Theme Name: Figma Blank
Author: You
Version: 0.2
*/

/* База */
html, body { height: 100%; margin: 0; }

/* Фон всей страницы */
body.figma-blank .full-bg{
  min-height: 100vh;
  background: url('https://chirurgie-dermatologique-paris.fr/wp-content/uploads/2025/08/background-2.png')
              center / cover no-repeat;
}

/* Контейнер с постоянными боковыми отступами 92px */
:root{ --pad-x: 6vw; }  /* 7% ширины вьюпорта */

.container{
  width: 100%;
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  box-sizing: border-box;
}

/* Верхняя инфо-строка */
.topbar{
  position: absolute;        /* поверх фона, у верхнего края */
  top: 0; left: 0; right: 0;
  z-index: 10;
  color: #fff;
  font-family: "Barlow",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-weight: 400;
  font-size: 30px;           /* 14.969 ≈ 15 */
  line-height: 1;
  padding-top: 140px;         /* только сверху; снизу 0 — "hug" по высоте */
}

.topbar__list{
  display: flex;
  justify-content: flex-end; /* блоки прижаты к правому краю контейнера */
  align-items: center;       /* по вертикали по центру */
  gap: 36px;                 /* расстояние между блоками */
  list-style: none;
  margin: 0;
  padding: 0;                /* без вертикальных паддингов */
}

.topbar__item{
  display: inline-flex;
  align-items: center;       /* центр по вертикали */
  justify-content: center;   /* центр по горизонтали */
  gap: 16px;                  /* между иконкой и текстом */
  white-space: nowrap;
}

.topbar__icon{
  width: 25px;
  height: 25px;
  display: inline-block;
}
/* кликабельные пункты и анимация */
.topbar__link{
  display: inline-flex;
  align-items: center;          /* центр по вертикали */
  justify-content: center;      /* центр по горизонтали */
  gap: 16px;                     /* отступ между иконкой и текстом */
  color: inherit;
  text-decoration: none;
  transition: transform .12s ease, filter .15s ease;
}

.topbar__item--click .topbar__link{ cursor: pointer; }

.topbar__item--click:hover .topbar__link,
.topbar__item--click:focus-within .topbar__link{
  animation: topbar-wiggle .28s ease;
  filter: brightness(1.05);
}

.topbar__link:focus-visible{
  outline: 2px solid rgba(255,255,255,.65);
  outline-offset: 3px;
  border-radius: 6px;
}

@keyframes topbar-wiggle{
  0%{ transform: translateY(0) }
  35%{ transform: translateY(-1.5px) }
  70%{ transform: translateY(1px) }
  100%{ transform: translateY(0) }
}

/* ===== NAV BAR ===== */
/* Контейнер: по центру, слева/справа всегда 92px, сверху 20px */
.navbar{
  position: absolute;   /* поверх фона */
  top: 188px;            /* ниже верхней инфо-строки (как просила) */
  left: 0; right: 0;
  z-index: 11;
  color: #fff;
  font-family: "Barlow",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1;
}
.navbar__container{ padding-top: 7px; }
.navbar__row{
  display: flex;
  align-items: center;              /* выравнивание по высоте по центру */
  justify-content: space-between;   /* «авто» расстояние между 3 блоками */
  gap: clamp(12px, 4vw, 48px);      /* гибкий gap */
}

/* слева — лого (пока текст) */
.navbar__logo{
  display: flex; align-items: center; justify-content: center;
}

/* по центру — меню (слот для будущего меню) */
.navbar__menu{
  flex: 1;                          /* занимает свободное место */
  display: flex; align-items: center; justify-content: center;
  min-width: 0;
}

/* справа — кнопка Doctolib (пока подложка) */
.navbar__btn{
  display: flex; align-items: center; justify-content: center;
}
.doctolib-placeholder{
  background: #fff;
  color: #0b1513;
  padding: 5px 18px;                /* 5 сверху/снизу, 18 по бокам */
  border-radius: 10px;              /* можно поменять позже */
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

/* logo in navbar */
.navbar__logo img{
  display:block;
  height: 120px;   /* при необходимости подгони цифру */
  width:auto;
}

/* меню по центру, горизонтально */
.menu--primary{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 50px;                 /* расстояние между пунктами */
  list-style:none;
  margin:0;
  padding:0;
}
.menu--primary a{
  color:#fff;
  text-decoration:none;
  font-weight:600;
  line-height:1;
  padding:8px 0;             /* «кликабельная» зона сверху/снизу */
}
.menu--primary a:hover{ text-decoration:underline; text-underline-offset:6px; }

/* === Primary menu typography & hover === */
.menu--primary{
  display:flex; align-items:center; justify-content:center;
  gap: 50px; list-style:none; margin:0; padding:0; text-align:center;
}
.menu--primary a{
  color:#fff;
  font-family: "Quattrocento", serif;
  font-size: 35px;          /* из Figma (≈35px) */
  font-weight: 700;
  text-transform: capitalize;
  line-height: 1;
  text-decoration: none;    /* убираем подчёркивание */
  transition: color .2s ease, text-shadow .2s ease;
}
/* подсветка при наведении/фокусе */
.menu--primary a:hover,
.menu--primary a:focus-visible{
  color:#F6F1C8;
  text-shadow: 0 0 12px rgba(246,241,200,.55);
  outline: none;
}
/* --- Меню: без подчёркивания вообще и подсветка цветом --- */
.navbar__menu a,
.navbar__menu a:visited{
  text-decoration: none !important;
}

.navbar__menu a:hover,
.navbar__menu a:focus,
.navbar__menu a:active,
.menu--primary a:hover,
.menu--primary a:focus-visible{
  text-decoration: none !important;
  color: #F6F1C8;
  text-shadow: 0 0 12px rgba(246,241,200,.55);
}

/* Accueil: широкая PNG-подложка под пунктом меню на странице 8250 */
.page-id-8250 .menu--primary .menu-item-8255 > a{
  position: relative;
  z-index: 0;                 /* создаём контекст, чтобы ::after было под текстом */
  padding-bottom: 32px;       /* место под подложку (увеличь/уменьши по вкусу) */
}

.page-id-8250 .menu--primary .menu-item-8255 > a::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;               /* смещение вниз, если нужно */
  transform: translateX(-50%);
  width: calc(100% + 50px);   /* подложка шире текста на 40px (по 20px с каждой стороны) */
  height: 115px;               /* высота подложки */
  background: url('https://chirurgie-dermatologique-paris.fr/wp-content/uploads/2025/08/Frame-1.png')
              center / contain no-repeat;
  pointer-events: none;
  z-index: -1;                /* под текстом */
}


.page-id-1872 .menu--primary .menu-item-8256 > a{
  position: relative;
  z-index: 0;                 /* создаём контекст, чтобы ::after было под текстом */
  padding-bottom: 32px;       /* место под подложку (увеличь/уменьши по вкусу) */
}

.page-id-1872 .menu--primary .menu-item-8256 > a::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;               /* смещение вниз, если нужно */
  transform: translateX(-50%);
  width: calc(100% + 50px);   /* подложка шире текста на 40px (по 20px с каждой стороны) */
  height: 115px;               /* высота подложки */
  background: url('https://chirurgie-dermatologique-paris.fr/wp-content/uploads/2025/08/Frame-3.png')
              center / contain no-repeat;
  pointer-events: none;
  z-index: -1;                /* под текстом */
}


.page-id-34 .menu--primary .menu-item-8258 > a{
  position: relative;
  z-index: 0;                 /* создаём контекст, чтобы ::after было под текстом */
  padding-bottom: 32px;       /* место под подложку (увеличь/уменьши по вкусу) */
}

.page-id-34 .menu--primary .menu-item-8258 > a::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;               /* смещение вниз, если нужно */
  transform: translateX(-50%);
  width: calc(100% + 50px);   /* подложка шире текста на 40px (по 20px с каждой стороны) */
  height: 115px;               /* высота подложки */
  background: url('https://chirurgie-dermatologique-paris.fr/wp-content/uploads/2025/08/Frame-4.png')
              center / contain no-repeat;
  pointer-events: none;
  z-index: -1;                /* под текстом */
}