/* ============================================================
   Bénoline — feuille de style du site benoline.com
   Écrite à neuf le 2026-12-01 (Refon.Code.1). Couleurs et polices
   de la refonte 2026 : épinette, crème, Fraunces, Space Grotesk.
   ============================================================ */

@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/polices/fraunces-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/polices/fraunces-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(/polices/fraunces-latin-wght-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(/polices/fraunces-latin-ext-wght-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/polices/space-grotesk-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/polices/space-grotesk-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --vert: #525f4e;
  --epinette: #3a4437;
  --sauge: #6b7a64;
  --brume-verte: #dde3d7;
  --marron: #33210d;
  --brun: #6e5a3e;
  --sable: #c9b899;
  --terracotta: #a3543d;
  --brique: #7e3f2d;
  --blanc-casse: #f7f5ee;
  --creme: #edebdf;
  --creme-foncee: #e2dfcf;
  --f-titres: 'Fraunces', Georgia, serif;
  --f-texte: 'Space Grotesk', 'Segoe UI', Arial, sans-serif;
  --largeur: 1120px;
  --marge: clamp(1rem, 4vw, 1.5rem);
  --rayon: 12px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  font-family: var(--f-texte);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--marron);
  background: var(--creme);
}
img, iframe, video { max-width: 100%; }
img { height: auto; }
a { color: var(--terracotta); text-underline-offset: 3px; }
a:hover { color: var(--brique); }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.saut {
  position: absolute; left: -999px; top: 0; z-index: 3000;
  background: var(--epinette); color: var(--creme); padding: .6rem 1rem;
}
.saut:focus { left: 1rem; top: 1rem; }

h1, h2, h3, h4 { font-family: var(--f-titres); font-weight: 400; color: var(--marron); line-height: 1.2; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.12; margin: .3em 0 .4em; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.15rem); margin: 1.2em 0 .5em; }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-weight: 500; color: var(--vert); margin: 1.1em 0 .4em; }
h4 { font-size: 1.15rem; font-weight: 600; margin: 1em 0 .3em; }
/* Un <strong> dans un titre (contenu d'origine) ne l'épaissit pas : tous les titres d'un même niveau ont le même poids */
:is(h1, h2, h3, h4) :is(strong, b), .texte :is(h1, h2, h3, h4) :is(strong, b) { font-weight: inherit; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 1000;
  background: var(--blanc-casse);
  border-bottom: 1px solid var(--creme-foncee);
}
.entete-interieur {
  max-width: 1240px; margin: 0 auto; padding: .5rem var(--marge);
  display: flex; align-items: center; gap: 1.5rem;
}
.logo { display: inline-flex; align-items: center; }
.logo img { display: block; height: 72px; width: auto; max-width: 62vw; }

.menu-principal { position: relative; margin-left: auto; display: flex; align-items: center; }
.menu-principal ul { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; align-items: center; gap: 1.6rem; }
.menu > li { position: relative; }
.menu a, .menu-deroulant {
  font-family: var(--f-texte); font-size: 1rem; line-height: 1.5;
  color: var(--marron); text-decoration: none; white-space: nowrap;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.menu a:hover, .menu-deroulant:hover, .menu a[aria-current="page"] {
  color: var(--terracotta); text-decoration: underline; text-underline-offset: 4px;
}
/* Items du premier niveau agrandis sur ordinateur (Thierry, 2026-12-01 : +20 %, puis « encore plus ») :
   1,35rem sur grand écran, 1,2rem sur portable étroit pour ne pas déborder */
@media (min-width: 1001px) {
  .menu > li > a, .menu > li > .menu-deroulant { font-size: 1.2rem; }
}
@media (min-width: 1300px) {
  .menu > li > a, .menu > li > .menu-deroulant { font-size: 1.35rem; }
}
/* Portables étroits : on serre l'espacement et le logo */
@media (min-width: 1001px) and (max-width: 1299px) {
  .entete-interieur { gap: 1rem; }
  .menu { gap: 1.05rem; }
  .logo img { height: 54px; }
}
.fleche { display: inline-block; margin-left: .3em; font-size: .75em; transition: transform .2s; }
.ouvert > .menu-deroulant .fleche { transform: rotate(180deg); }
.sous-menu {
  display: none; position: absolute; top: 100%; left: -1rem; z-index: 1001;
  min-width: 16rem; padding: .5rem 0 !important;
  background: var(--blanc-casse); border: 1px solid var(--creme-foncee);
  border-radius: var(--rayon); box-shadow: 0 10px 24px rgba(51, 33, 13, .12);
}
.sous-menu a { display: block; padding: .45rem 1.2rem; white-space: normal; }
.a-sous-menu:hover > .sous-menu, .a-sous-menu.ouvert > .sous-menu { display: block; }
.menu .langue a { font-weight: 700; color: var(--epinette); }
.hamburger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.hamburger span { display: block; width: 26px; height: 2px; margin: 5px 0; background: var(--epinette); transition: transform .2s, opacity .2s; }
.menu-principal.ouvert .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-principal.ouvert .hamburger span:nth-child(2) { opacity: 0; }
.menu-principal.ouvert .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1000px) {
  .hamburger { display: block; }
  .menu {
    display: none; position: absolute; right: 0; top: calc(100% + .6rem);
    flex-direction: column; align-items: stretch; gap: 0;
    width: min(20rem, 90vw); max-height: calc(100vh - 7rem); overflow-y: auto;
    padding: .5rem 0 !important;
    background: var(--blanc-casse); border: 1px solid var(--creme-foncee);
    border-radius: var(--rayon); box-shadow: 0 10px 24px rgba(51, 33, 13, .15);
  }
  .menu-principal.ouvert .menu { display: flex; }
  .menu > li > a, .menu-deroulant { display: block; width: 100%; text-align: left; padding: .65rem 1.2rem; }
  .sous-menu { position: static; border: 0; box-shadow: none; border-radius: 0; min-width: 0; padding: 0 0 .3rem 1rem !important; background: transparent; }
  .a-sous-menu:hover > .sous-menu { display: none; }
  .a-sous-menu.ouvert > .sous-menu { display: block; }
}
@media (max-width: 600px) {
  .logo img { height: 52px; }
}

/* ---------- Bandeau d'accueil ---------- */
.bandeau { position: relative; margin: 0; min-height: clamp(360px, 62vh, 620px); display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--epinette); }
.bandeau img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bandeau::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36, 42, 34, .15), rgba(36, 42, 34, .55)); }
.bandeau h1 {
  position: relative; z-index: 1; margin: 0; padding: 0 8%;
  color: var(--blanc-casse); text-align: center;
  font-size: clamp(2.4rem, 7vw, 4.6rem); text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

/* ---------- Rangées et colonnes ---------- */
.contenu { padding: 1rem 0 3rem; }
.contenu.avec-bandeau { padding-top: 0; }
.bandeau { margin-bottom: 2.5rem; }
.rangee {
  max-width: var(--largeur); margin: 0 auto 1.5rem; padding: 0 var(--marge);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: start;
}
@media (min-width: 768px) {
  .rangee.deux { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
/* Air entre les tuiles (rangées à deux colonnes) et avant les titres de section (Thierry, 2026-12-01).
   Les marges verticales voisines se fondent : on obtient la plus grande des deux. */
.rangee.deux { margin-bottom: 3.5rem; }
.rangee.titre-2 { margin-top: 3.5rem; margin-bottom: 1rem; }
.rangee.titre-3 { margin-top: 2.5rem; margin-bottom: .8rem; }
@media (max-width: 767px) {
  .rangee.deux { margin-bottom: 2.5rem; }
}
.colonne > :first-child { margin-top: 0; }
.colonne > :last-child { margin-bottom: 0; }

figure.image { margin: 0; }
figure.image img { display: block; width: 100%; border-radius: var(--rayon); }

/* ---------- Texte rédigé ---------- */
.texte { overflow-wrap: break-word; }
.texte p { margin: 0 0 1em; }
.texte > :first-child { margin-top: 0; }
.texte > :last-child { margin-bottom: 0; }
.texte h2 { margin: 1.8em 0 .5em; }
.texte h3 { margin: 1.5em 0 .4em; }
.texte ul, .texte ol { margin: .6em 0 1em; padding-left: 1.6em; }
.texte li { margin: .25em 0; }
.texte li::marker { color: var(--vert); }
.texte strong { font-weight: 700; }
.texte figure { margin: 1em 0; }
.texte img { border-radius: 8px; }
.texte iframe { display: block; border-radius: var(--rayon); }
.texte table { border-collapse: collapse; margin: 0 0 1.2em; font-size: .95em; }
.texte th, .texte td { vertical-align: top; }
.texte a:not([class]) { text-decoration: underline; }
.texte [style*="Oswald"] { font-family: var(--f-titres) !important; font-weight: 500 !important; }
@media (max-width: 700px) {
  .texte table:not([class*="responsive"]) { display: block; max-width: 100%; overflow-x: auto; }
  .texte ul, .texte ol { padding-left: 1.2em; }
}

.introduction { font-size: 1.3em; line-height: 1.5; }
.ariane { font-size: .85rem; color: var(--brun); margin-bottom: .5em !important; }
.ariane a { color: var(--vert); text-decoration: none; }
.ariane a:hover { text-decoration: underline; }

/* Bannière « Contactez-nous » */
.cta-banner { width: 100%; max-width: 960px; margin: 1.5rem auto; }
.cta-link { display: block; text-decoration: none; color: var(--blanc-casse); }
.cta-link:hover { color: var(--blanc-casse); }
.cta-link:hover h2, .cta-link:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.cta-container { display: flex; border-radius: var(--rayon); background: var(--vert); overflow: hidden; }
.cta-text-content { padding: 1.4rem 1.6rem; flex: 1; align-self: center; }
.cta-text-content h2, .cta-text-content h3, .cta-text-content p { color: var(--blanc-casse) !important; }
.cta-text-content h2, .cta-text-content h3 { margin-top: 0; }
.cta-text-content p:last-child { margin-bottom: 0; }
.cta-image-content { width: 30%; aspect-ratio: 1 / 1; }
.cta-image-content img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
@media (max-width: 768px) {
  .cta-container { flex-direction: column; }
  .cta-image-content { width: 100%; aspect-ratio: 16 / 9; }
  .cta-text-content { text-align: center; }
}

/* Cartes du blogue */
.blog-article { display: flex; align-items: flex-start; flex-wrap: wrap; }
.blog-article .blog-title-link { display: block; color: inherit; text-decoration: none; }
.blog-article .blog-title-link:hover { text-decoration: underline; }
.blog-article .read-more-link { text-decoration: underline; }
/* Titre et date des cartes : plus petits que le titre de section (Thierry, 2026-12-01).
   Leur taille est écrite dans le contenu (style en ligne), d'où !important. */
.blog-article .blog-title-link > span { font-size: 1.6rem !important; font-weight: 400 !important; line-height: 1.25 !important; }
.blog-article .blog-title-link + span { font-size: 1rem !important; line-height: 1.4 !important; padding-top: .35rem !important; }
@media (max-width: 600px) { .blog-article .blog-title-link > span { font-size: 1.4rem !important; } }

/* Formulaire de contact */
.mon-formulaire { width: 100%; max-width: 520px; margin: 0 auto; }
.mon-formulaire-groupe { margin-bottom: .8rem; }
.mon-formulaire-champ { margin-bottom: .6rem; }
.mon-formulaire-label { display: block; font-weight: 600; margin-bottom: .25rem; color: var(--epinette); }
.mon-formulaire-input, .mon-formulaire-textarea {
  width: 100%; padding: .65rem .8rem; font: inherit; font-size: 1rem; color: var(--marron);
  background: #fff; border: 1px solid var(--sable); border-radius: 8px;
}
.mon-formulaire-textarea { min-height: 140px; resize: vertical; }
.mon-formulaire-input:focus, .mon-formulaire-textarea:focus { outline: none; border-color: var(--vert); box-shadow: 0 0 0 3px rgba(82, 95, 78, .2); }
.mon-formulaire-bouton {
  font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
  padding: .7rem 1.8rem; border: 0; border-radius: 200px;
  background: var(--terracotta); color: var(--blanc-casse); transition: background .2s;
}
.mon-formulaire-bouton:hover { background: var(--brique); }

/* ---------- Pied de page ---------- */
.pied { background: var(--epinette); color: var(--brume-verte); font-size: .95rem; }
.pied-interieur { max-width: 1240px; margin: 0 auto; padding: 3rem var(--marge) 1.5rem; }
.pied-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2rem; }
.pied-titre {
  margin: 0 0 .8rem; font-family: var(--f-texte); font-size: .82rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--creme);
}
.pied-colonnes ul { list-style: none; margin: 0; padding: 0; }
.pied-colonnes li { margin: 0 0 .5rem; line-height: 1.4; }
.pied-colonnes a { color: var(--sable); text-decoration: underline; text-underline-offset: 3px; }
.pied-colonnes a:hover { color: var(--creme); }
.pied-bas {
  margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(237, 235, 223, .18);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 2rem;
  font-size: .9rem;
}
.pied-options { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.8rem; }
.pied-bas a, .lien-temoins { color: var(--creme); }
.pied-langue a { text-decoration: underline; }
.pied-tel { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.pied-tel:hover { text-decoration: underline; }
.pied-tel svg { width: 18px; height: 18px; flex: none; }
.lien-temoins {
  font: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; opacity: .85;
}
.lien-temoins:hover { opacity: 1; }
.droits { margin: 0; color: var(--sable); }

/* ---------- Bannière de témoins (Loi 25) ---------- */
.temoins {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000;
  background: var(--blanc-casse); color: var(--marron);
  border-top: 3px solid var(--vert); box-shadow: 0 -6px 20px rgba(51, 33, 13, .15);
  padding: 1rem var(--marge); font-size: .95rem;
}
.temoins-interieur { max-width: 1120px; margin: 0 auto; }
.temoins p { margin: 0 0 .5rem; }
.temoins-titre { font-weight: 700; }
.temoins-boutons { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .8rem; }
.temoins button {
  font: inherit; font-weight: 600; padding: .5rem 1.4rem; border-radius: 200px; cursor: pointer;
  border: 2px solid var(--vert); background: transparent; color: var(--vert);
}
.temoins button.temoins-oui { background: var(--vert); color: var(--blanc-casse); }

/* ---------- Page introuvable ---------- */
.introuvable { max-width: 40rem; margin: 0 auto; padding: 4rem var(--marge); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
