/* FouAd Libitum — styles partagés */
:root { --css-version: 6; } /* lu par hero-anim.js (repli sur texte statique si absent) */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: auto; min-height: 100%; }
body {
  margin: 0;
  font-family: Georgia, serif;
  background: #f7f3ec;
  color: #2b2a28;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.content { flex: 1; }
a { color: #2b2a28; }
img { max-width: 100%; height: auto; }

/* En-tête */
header.site-header {
  position: relative;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 22px 60px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: #2b2a28;
  text-decoration: none;
}
.brand img {
  display: block;
  height: 40px;
  width: auto;
  max-width: none;
}
.brand:hover, footer a:hover { opacity: 0.65; }

/* Menu principal (plusieurs niveaux) */
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav .menu { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; }
.main-nav li { position: relative; }
.main-nav .item { display: flex; align-items: center; }
.main-nav a {
  color: #2b2a28;
  text-decoration: none;
  display: block;
}
.main-nav .menu > li > .item > a { padding: 8px 0; border-bottom: 1px solid transparent; }
.main-nav .menu > li > .item > a.active { border-bottom-color: #2b2a28; }
.main-nav .menu > li > .item > a:hover { opacity: 0.65; }
.sub-toggle {
  appearance: none;
  background: none;
  border: 0;
  margin: 0 0 0 2px;
  padding: 0;
  width: 22px;
  height: 28px;
  cursor: pointer;
  color: #6b6457;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.sub-toggle::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.sub-toggle[aria-expanded="true"]::before { transform: translateY(1px) rotate(225deg); }
.sub-toggle:hover { color: #2b2a28; }
.main-nav a:focus-visible, .sub-toggle:focus-visible, .nav-toggle:focus-visible {
  outline: 2px solid #7d8f73;
  outline-offset: 3px;
  border-radius: 3px;
}

.submenu {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 230px;
  padding: 8px 0;
  background: #fbf8f2;
  border: 1px solid #e8e0d4;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(43, 42, 40, 0.10), 0 2px 6px rgba(43, 42, 40, 0.05);
  letter-spacing: 0.04em;
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease .15s, transform .18s ease .15s, visibility 0s linear .33s;
}
/* petit pont invisible pour que la souris ne perde pas le menu */
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.submenu .submenu { top: -9px; left: 100%; margin-left: 4px; }
.submenu .submenu::before { top: 0; bottom: 0; left: -10px; right: auto; width: 10px; height: auto; }
.submenu .item { justify-content: space-between; }
.submenu a {
  flex: 1;
  padding: 9px 18px;
  white-space: nowrap;
  color: #2b2a28;
}
.submenu a:hover, .submenu a:focus-visible { background: #efe9df; }
.submenu a[aria-current="page"] { font-weight: bold; }
.submenu .sub-toggle { margin-right: 8px; }
.submenu .sub-toggle::before { transform: rotate(-45deg); }
.submenu .sub-toggle[aria-expanded="true"]::before { transform: rotate(-45deg); }
.submenu .sub-toggle[aria-expanded="true"] { color: #2b2a28; }
#sm-inspirations { background: #f4f6f0; }
#sm-inspirations a:hover { background: #e6eee2; }
#sm-enfances { background: #eef3ea; }
#sm-enfances a:hover { background: #e0e9db; }
#sm-expirations { background: #f8f2ea; }
#sm-expirations a:hover { background: #efe4d6; }
#sm-humanisation { background: #f2f3f5; }
#sm-humanisation a:hover { background: #e5e8ea; }

/* Ouverture : au survol (souris), au clavier, ou par le bouton flèche (toucher) */
.has-sub.open > .submenu,
.has-sub:focus-within:not(.closed) > .submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
@media (hover: hover) and (min-width: 761px) {
  .has-sub:hover:not(.closed) > .submenu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
}

/* Bouton burger (mobile) */
.nav-toggle {
  display: none;
  appearance: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 11px 9px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #2b2a28;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 760px) {
  header.site-header { padding: 14px 20px; flex-wrap: wrap; }
  .js .nav-toggle { display: flex; }
  .main-nav { width: 100%; }
  .js .main-nav { display: none; }
  .js .nav-open .main-nav { display: block; }
  .main-nav .menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid #e8e0d4;
  }
  .main-nav .menu > li { border-bottom: 1px solid #e8e0d4; }
  .main-nav .item { justify-content: space-between; }
  .main-nav .menu > li > .item > a { padding: 14px 0; flex: 1; border-bottom: 0; }
  .main-nav .menu > li > .item > a.active { text-decoration: underline; text-underline-offset: 5px; }
  .sub-toggle { width: 44px; height: 44px; }
  .submenu, .submenu .submenu {
    position: static;
    min-width: 0;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent !important;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    font-size: 15px;
  }
  .submenu::before { display: none; }
  .has-sub.open > .submenu { display: block; }
  .submenu a { padding: 11px 0 11px 18px; white-space: normal; }
  .submenu .submenu a { padding-left: 36px; }
  .submenu a:hover { background: transparent !important; text-decoration: underline; }
  .submenu .sub-toggle { margin-right: 0; }
  .submenu .sub-toggle::before { transform: translateY(-2px) rotate(45deg); }
  .submenu .sub-toggle[aria-expanded="true"]::before { transform: translateY(1px) rotate(225deg); }
}

/* Fil d'Ariane */
.breadcrumb {
  padding: 2px 60px 16px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #6b6457;
  border-bottom: 1px solid #e8e0d4;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
}
.breadcrumb li {
  display: flex;
  align-items: center;
}
.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin: 0 0.55em;
  color: #a39a8b;
}
.breadcrumb a {
  color: #6b6457;
  text-decoration: none;
  margin: 0;
}
.breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 1;
}
.breadcrumb [aria-current="page"] {
  color: #2b2a28;
}

/* Accueil */
.hero {
  position: relative;
  text-align: center;
  height: 300px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
}
.hero.anim-on .hero-canvas { display: block; }
.hero.anim-on h1, .hero.anim-on p { opacity: 0; }
.hero h1 {
  font-size: 58px;
  font-weight: normal;
  margin: 0;
}
.hero p {
  font-style: italic;
  font-size: 20px;
  color: #6b6457;
  margin: 14px 0 0;
}

/* À propos (accueil) */
.a-propos {
  max-width: 720px;
  margin: 10px auto 70px;
  padding: 0 60px;
  scroll-margin-top: 20px;
}
.a-propos h2 {
  font-family: Helvetica, Arial, sans-serif;
  letter-spacing: 6px;
  font-size: 22px;
  text-transform: uppercase;
  text-align: center;
  margin: 30px 0 28px;
}
.a-propos h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: #a39a8b;
  margin: 16px auto 0;
}
.a-propos p {
  font-size: 18px;
  line-height: 1.75;
  margin: 0 0 1.05em;
}
.a-propos a { text-underline-offset: 3px; }
.souffle {
  display: flex;
  gap: 0;
  margin: 20px 60px 40px;
  min-height: 300px;
  flex: 1;
}
.col {
  flex: 1;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.ins { background: #e6eee2; }
.hum { background: #e5e8ea; }
.exp { background: #efe4d6; }
.col h2 {
  font-family: Helvetica, Arial, sans-serif;
  letter-spacing: 6px;
  font-size: 26px;
  margin: 0 0 8px;
}
.col h2 a { text-decoration: none; }
.col em { color: #6b6457; font-style: italic; }
.col ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 2;
}
.col li::before { content: "— "; }
.col li a { text-decoration: none; }
.col li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.chapters {
  display: block;
  margin-left: 1.4em;
  font-size: 14px;
  line-height: 1.7;
  color: #6b6457;
}
.chapters a { color: #6b6457; text-decoration: none; }
.chapters a:hover { text-decoration: underline; text-underline-offset: 3px; }
.soon { color: #a39a8b; }

/* Pied de page */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 60px;
  border-top: 1px solid #d8cfc0;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  gap: 16px;
  margin-top: auto;
}
footer .links a { text-decoration: none; }
.sep { margin: 0 0.35em; color: #a39a8b; }
.btn {
  background: #2b2a28;
  color: #f7f3ec;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 1px;
}
.btn:hover { opacity: 0.85; color: #f7f3ec; }

/* Pages intérieures */
.page-hero {
  text-align: center;
  padding: 60px 20px 20px;
}
.page-hero .section-title {
  font-family: Helvetica, Arial, sans-serif;
  letter-spacing: 6px;
  font-size: 26px;
  font-weight: bold;
  margin: 0 0 8px;
  text-transform: uppercase;
}
h1.section-title { font-weight: bold; }
.page-hero h1 {
  font-size: 42px;
  font-weight: normal;
  margin: 0 0 8px;
}
.page-hero .lede,
.page-hero p.lede {
  font-style: italic;
  font-size: 20px;
  color: #6b6457;
  margin: 10px auto 0;
  max-width: 640px;
}
.crumb {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #6b6457;
  margin-bottom: 16px;
}
.crumb a { color: #6b6457; text-decoration: none; }
.crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }

.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 60px 80px;
}
.content p {
  font-size: 18px;
  line-height: 1.75;
  margin: 0 0 1.15em;
}
.content a { text-underline-offset: 3px; }

.rubrique-list {
  list-style: none;
  padding: 0;
  margin: 36px 0 20px;
}
.rubrique {
  display: block;
  text-decoration: none;
  padding: 32px 36px;
  margin-bottom: 8px;
}
.rubrique h2 {
  font-family: Helvetica, Arial, sans-serif;
  letter-spacing: 4px;
  font-size: 20px;
  margin: 0 0 6px;
  text-transform: uppercase;
}
.rubrique .sub {
  color: #6b6457;
  font-style: italic;
  margin: 0 0 14px;
  font-size: 17px;
}
.rubrique p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 12px;
  color: #2b2a28;
}
.rubrique .more {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  color: #6b6457;
}
.note-soon {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a39a8b;
  margin: 8px 0 40px;
  text-align: left;
}

.chapitre {
  padding: 32px 36px;
  margin: 0 0 16px;
}
.chapitre h2 {
  font-family: Helvetica, Arial, sans-serif;
  letter-spacing: 2px;
  font-size: 15px;
  text-transform: uppercase;
  margin: 0 0 4px;
  font-weight: bold;
}
.chapitre h3 {
  font-size: 26px;
  font-weight: normal;
  margin: 0 0 16px;
}
.chapitre p { margin: 0 0 14px; font-size: 17px; line-height: 1.7; }
.a-venir {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a39a8b;
  margin: 0;
}

.bloc {
  padding: 32px 36px;
  margin: 0 0 16px;
}
.bloc h2 {
  font-family: Helvetica, Arial, sans-serif;
  letter-spacing: 3px;
  font-size: 18px;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.bloc p { margin: 0 0 12px; font-size: 17px; line-height: 1.7; }
.bloc .a-venir { margin-top: 4px; }

.mentions h2 {
  font-family: Helvetica, Arial, sans-serif;
  letter-spacing: 2px;
  font-size: 14px;
  text-transform: uppercase;
  margin: 32px 0 10px;
}
.mentions p, .mentions address {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 0.8em;
  font-style: normal;
}

/* Mobile */
@media (max-width: 1100px) {
  .souffle { margin: 20px 32px 40px; }
  .col { padding: 36px 28px; }
  .col h2 { font-size: 22px; letter-spacing: 3px; }
}

@media (max-width: 800px) {
  footer {
    padding: 18px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .breadcrumb { padding: 0 20px 14px; font-size: 12px; }
  .hero { height: 250px; padding: 0 20px; }
  .a-propos { padding: 0 24px; margin-bottom: 50px; }
  .a-propos h2 { font-size: 18px; letter-spacing: 4px; }
  .a-propos p { font-size: 17px; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 17px; }
  .souffle {
    flex-direction: column;
    margin: 0 0 24px;
    min-height: 0;
  }
  .col { padding: 32px 24px; }
  .col h2 { font-size: 20px; letter-spacing: 4px; }
  .page-hero { padding: 36px 20px 12px; }
  .page-hero h1 { font-size: 30px; }
  .page-hero .section-title { font-size: 20px; letter-spacing: 4px; }
  .page-hero .lede, .page-hero p.lede { font-size: 17px; }
  .content { padding: 10px 24px 64px; }
  .rubrique, .chapitre, .bloc { padding: 24px 22px; }
  .content p { font-size: 17px; }
}
