/*
Theme Name: Sens et Vie
Theme URI: https://hypnosensetvie.fr/
Description: Thème enfant de Twenty Twenty-Five reprenant le nouveau design du site (bois, crème, sauge ; Cormorant Garamond et Nunito Sans).
Author: Amélia Karas-Perret
Template: twentytwentyfive
Version: 1.6.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: sens-et-vie
*/

/* ---------- Général ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 3px solid #6f8a6c; outline-offset: 3px; border-radius: 4px; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
main.sev-main { margin-top: 0 !important; }

/* ---------- En-tête ---------- */
/* Pas de backdrop-filter : il enfermerait le menu mobile (position fixe) dans la hauteur de l'en-tête */
.sev-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, .98);
  border-bottom: 1px solid #e4d9cb;
}
.admin-bar .sev-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sev-header { top: 46px; } }
.sev-header-inner { min-height: 76px; }
.sev-brand { gap: 12px; }
.sev-brand .wp-block-site-logo img { mix-blend-mode: multiply; }
.sev-brand .sev-brand-name { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.35rem; font-weight: 600; line-height: 1.1; }
.sev-brand .sev-brand-name a { color: #5a3520; text-decoration: none; }
.sev-brand .sev-brand-tag { margin: 0; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #5e5249; white-space: nowrap; }
.sev-header .wp-block-navigation__container { flex-wrap: nowrap; align-items: center; }
.sev-header .wp-block-navigation-item { margin: 0; }
.sev-header .wp-block-navigation a { display: block; padding: 8px 9px; border-radius: 8px; font-weight: 600; font-size: .95rem; line-height: 1.4; white-space: nowrap; }
.sev-header .wp-block-navigation a:hover { background: #f3ece2; color: #5a3520; }
.sev-header .wp-block-navigation .current-menu-item > a { color: #7a4a2e; box-shadow: inset 0 -2px 0 #7a4a2e; border-radius: 0; }
.sev-header .sev-cta .wp-block-button__link { padding: .6em 1.1em; font-size: .92rem; white-space: nowrap; }
@media (max-width: 1440px) and (min-width: 1081px) { .sev-brand .sev-brand-tag { display: none; } }
@media (max-width: 1300px) { .sev-header .sev-cta { display: none; } }
/* Menu ☰ dès 1080 px (WordPress ne le fait qu'en dessous de 600 px) : le menu ne passe plus sur deux lignes */
@media (max-width: 1080px) {
  .sev-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .sev-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 480px) { .sev-brand .sev-brand-tag { display: none; } }

/* ---------- Pied de page ---------- */
.sev-footer { background: #2b211b; color: #d9cbbb; font-size: .95rem; }
.sev-footer a { color: #f0e3d3; text-decoration: none; }
.sev-footer a:hover { color: #fff; text-decoration: underline; }
.sev-footer h2 { font-family: "Nunito Sans", "Segoe UI", system-ui, sans-serif; font-size: .85rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.sev-footer .sev-footer-name { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.6rem; color: #fff; font-weight: 600; margin: 0 0 8px; }
.sev-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sev-footer-bottom { border-top: 1px solid #45372d; font-size: .85rem; color: #b3a393; }
.sev-footer-bottom p { margin: 0; }

/* ---------- Pages au nouveau design (bloc HTML <div class="hsv">) ---------- */
.hsv { margin: 0 !important; max-width: none !important; }
.hsv section, .hsv .page-hero { margin: 0; }

/* ---------- Barre d'actions fixe sur mobile ---------- */
.sev-mobile-bar { display: none; }
@media (max-width: 900px) {
  .sev-mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 248, 243, .97); border-top: 1px solid #e4d9cb;
    box-shadow: 0 -8px 24px -14px rgba(74, 45, 25, .35);
  }
  .sev-mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 10px; border-radius: 999px; font-weight: 700; font-size: .98rem; text-decoration: none;
    border: 2px solid #7a4a2e;
  }
  .sev-mobile-bar .sev-call { background: transparent; color: #7a4a2e; }
  .sev-mobile-bar .sev-book { background: #7a4a2e; color: #fff; }
  .sev-mobile-bar svg { width: 18px; height: 18px; flex: none; }
  body { padding-bottom: 76px; }
}
/* ---------- Masque l'ancien bandeau vert Consultoo (ajouté via Header Footer Code Manager) ---------- */
a[href*="consultoo.fr"][style*="position:fixed"] { display: none !important; }

/* Accueil sur mobile : les boutons rendez-vous / téléphone du bandeau font doublon avec la barre fixe du bas */
@media (max-width: 900px) { .hsv .hero-actions { display: none !important; } .hsv .hero-meta { margin-top: 18px !important; } }

/* ---------- Menu mobile « Sens et Vie » : panneau bois qui glisse, liens numérotés ---------- */
/* Bouton d'ouverture : deux traits décalés, au lieu des trois traits classiques */
.sev-header .wp-block-navigation__responsive-container-open { width: 44px; height: 44px; padding: 0; position: relative; background: none; border: 0; cursor: pointer; }
.sev-header .wp-block-navigation__responsive-container-open svg { display: none; }
.sev-header .wp-block-navigation__responsive-container-open::before,
.sev-header .wp-block-navigation__responsive-container-open::after {
  content: ""; position: absolute; right: 8px; height: 2px; border-radius: 2px; background: #5a3520;
  transition: width .3s ease, background .3s ease;
}
.sev-header .wp-block-navigation__responsive-container-open::before { top: 17px; width: 26px; }
.sev-header .wp-block-navigation__responsive-container-open::after { top: 26px; width: 16px; background: #6f8a6c; }
.sev-header .wp-block-navigation__responsive-container-open:hover::after { width: 26px; }

/* Panneau */
.wp-block-navigation__responsive-container.is-menu-open {
  background: radial-gradient(circle at 85% 10%, rgba(111,138,108,.35), transparent 45%), linear-gradient(165deg, #5a3520 0%, #3d2416 100%) !important;
  color: #fbf8f3 !important;
  padding: 28px 28px 32px !important;
  animation: sev-panel .45s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes sev-panel { from { transform: translateX(100%); opacity: .4; } to { transform: none; opacity: 1; } }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: stretch !important; padding-top: 64px !important; counter-reset: sev; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: stretch !important; gap: 0 !important; width: 100%; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
  width: 100%; border-bottom: 1px solid rgba(251,248,243,.14) !important; counter-increment: sev;
  opacity: 0; animation: sev-item .5s ease forwards;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(1) { animation-delay: .12s; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(2) { animation-delay: .17s; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(3) { animation-delay: .22s; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(4) { animation-delay: .27s; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(5) { animation-delay: .32s; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(6) { animation-delay: .37s; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(7) { animation-delay: .42s; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(8) { animation-delay: .47s; }
@keyframes sev-item { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
  display: flex !important; align-items: baseline; gap: 14px; width: 100%;
  padding: 13px 2px !important; color: #fbf8f3 !important; background: none !important;
  font-family: "Cormorant Garamond", Georgia, serif !important; font-size: 1.75rem !important; font-weight: 500 !important; line-height: 1.2;
  transition: padding-left .25s ease, color .25s ease;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a::before {
  content: counter(sev, decimal-leading-zero); font-family: "Nunito Sans", system-ui, sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: #a9c0a5;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a:hover,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a:focus-visible { padding-left: 10px !important; color: #e6ede3 !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a[aria-current="page"] { color: #c9dcc5 !important; font-style: italic; }
/* Signature en bas du panneau */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content::after {
  content: "Donnez du sens et prenez vie"; display: block; margin-top: 36px; text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.3rem; color: #c9dcc5;
  opacity: 0; animation: sev-item .6s ease .55s forwards;
}
/* Bouton de fermeture */
.wp-block-navigation__responsive-container-close { color: #fbf8f3 !important; top: 22px !important; right: 22px !important; }
.wp-block-navigation__responsive-container-close svg { width: 32px !important; height: 32px !important; fill: #fbf8f3 !important; }
@media (prefers-reduced-motion: reduce) {
  .wp-block-navigation__responsive-container.is-menu-open,
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content::after { animation: none !important; opacity: 1 !important; }
}

/* Accueil sur mobile : photo à gauche du titre, puis le texte sur toute la largeur en dessous */
@media (max-width: 900px) {
  .hsv .hero-grid, .hsv .split { grid-template-columns: 112px 1fr !important; column-gap: 18px !important; row-gap: 0 !important; align-items: start !important; }
  .hsv .hero-grid > div:first-child, .hsv .split > div { display: contents; }

  /* Bandeau du haut */
  .hsv .hero-visual { grid-column: 1; grid-row: 1 / span 3; order: 0 !important; margin-top: 4px; }
  .hsv .hero-visual img { width: 112px !important; max-width: 112px !important; }
  .hsv .hero-visual .hero-quote { font-size: .9rem !important; margin-top: 8px; line-height: 1.25; }
  .hsv .hero .eyebrow { grid-column: 2; grid-row: 1; font-size: .68rem; letter-spacing: .1em; margin-bottom: .4em; }
  .hsv .hero h1 { grid-column: 2; grid-row: 2; font-size: 1.7rem !important; margin-bottom: .3em; }
  .hsv .hero .tagline { grid-column: 2; grid-row: 3; font-size: 1.2rem !important; margin-bottom: 0; }
  .hsv .hero .lead, .hsv .hero-actions, .hsv .hero-meta { grid-column: 1 / -1; }
  .hsv .hero .lead { margin-top: 22px; font-size: 1.05rem; }
  .hsv .hero-meta { margin-top: 6px !important; font-size: .9rem; }

  /* Qui suis-je ? */
  .hsv .split .portrait-photo { grid-column: 1; grid-row: 1 / span 3; max-width: 112px !important; justify-self: start !important; margin-top: 4px !important; }
  .hsv .split .portrait-photo .hero-quote { font-size: .85rem !important; line-height: 1.25; }
  .hsv .split > div > .eyebrow { grid-column: 2; grid-row: 1; }
  .hsv .split > div > h2 { grid-column: 2; grid-row: 2; font-size: 1.6rem; margin-bottom: .3em; }
  .hsv .split > div > p:first-of-type { grid-column: 2; grid-row: 3; margin-bottom: 0; }
  .hsv .split > div > p:not(:first-of-type), .hsv .split > div > .tags, .hsv .split > div > .btn { grid-column: 1 / -1; }
  .hsv .split > div > p:nth-of-type(2) { margin-top: 22px; }
  .hsv .split > div > .btn { justify-self: start; }
}


/* Menu mobile v2 : sans numéros, fond bois translucide, arbre de vie qui se dessine en fond */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a::before { content: none !important; display: none !important; }
.wp-block-navigation__responsive-container.is-menu-open {
  background: radial-gradient(circle at 85% 10%, rgba(111,138,108,.30), transparent 45%), linear-gradient(165deg, rgba(90,53,32,.93) 0%, rgba(52,30,18,.96) 100%) !important;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  overflow: hidden;
}
.wp-block-navigation__responsive-container.is-menu-open::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(86vw, 380px); aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%); pointer-events: none; z-index: 0;
  background: url("assets/img/arbre-menu.svg") center / contain no-repeat;
  opacity: .22;
  animation: sev-arbre 2.2s cubic-bezier(.3,.7,.2,1) .2s both;
}
@keyframes sev-arbre {
  0%   { clip-path: inset(100% 0 0 0); opacity: 0; }
  15%  { opacity: .22; }
  100% { clip-path: inset(0 0 0 0); opacity: .22; }
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { position: relative; z-index: 1; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .wp-block-navigation__responsive-container.is-menu-open::before { animation: none !important; }
}

/* Accueil mobile : sans nom sous la photo, titre centré verticalement à côté, texte du dessous centré */
@media (max-width: 900px) {
  .hsv .hero-visual .hero-quote { display: none !important; }
  .hsv .hero-visual { align-self: center; margin-top: 0; }
  .hsv .hero .eyebrow { align-self: end; }
  .hsv .hero h1 { align-self: center; }
  .hsv .hero .tagline { align-self: start; }
  .hsv .hero .lead, .hsv .hero-meta { text-align: center; }
  .hsv .hero-meta { justify-content: center; }
}

/* Accueil mobile : la photo prend exactement la hauteur du bloc titre (du surtitre à « Donnez du sens et prenez vie ») */
@media (max-width: 900px) {
  .hsv .hero .tagline { margin-bottom: 0 !important; }
  .hsv .hero-visual { position: relative !important; align-self: stretch !important; margin-top: 0 !important; min-height: 0; }
  .hsv .hero-visual img { position: absolute !important; inset: 0; width: 100% !important; max-width: none !important; height: 100% !important; object-fit: cover; object-position: center 20%; }
}

/* Accueil mobile, « Qui suis-je ? » : texte centré verticalement à côté de l'arbre, métiers sans tirets, un par ligne */
@media (max-width: 900px) {
  .hsv .split .portrait-photo { align-self: center !important; margin-top: 0 !important; }
  .hsv .split > div > .eyebrow { align-self: end; }
  .hsv .split > div > h2 { align-self: center; }
  .hsv .split > div > p:first-of-type { align-self: start; }
  .hsv .sev-jobs .sev-sep { display: none; }
  .hsv .sev-jobs .sev-job { display: block; line-height: 1.45; }
}

/* Accueil mobile, « Qui suis-je ? » : texte du dessous centré (paragraphes, spécialités, bouton) */
@media (max-width: 900px) {
  .hsv .split > div > p:not(:first-of-type) { text-align: center; }
  .hsv .split > div > .tags { justify-content: center; }
  .hsv .split > div > .btn { justify-self: center !important; }
}

/* Formulaire de contact : champ piège anti-spam invisible */
.sev-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Formulaire de contact : question anti-robot */
.hsv .sev-captcha input[name="sev_captcha"] { width: 90px !important; text-align: center; font-weight: 700; }
.hsv .sev-captcha-aide { font-weight: 400; color: #5e5249; font-size: .88rem; }

/* Formulaire de contact : emplacement du captcha Cloudflare Turnstile */
.hsv .sev-turnstile { min-height: 70px; margin: 8px 0 16px; }
