/* BARA - Les sommiers. Proposition v2, direction « ardoise » (17/11/2026).
   Couleurs tirées du logo : bleu-gris #8793AB (le tissu), gris acier #58585A (le métal).
   Le brun du bois reste dans le logo seulement : Thibaut ne veut plus de marron dans le site. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-400-latin.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: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-500-latin.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: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-600-latin.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: 'Jost'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/jost-300-latin.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: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jost-400-latin.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: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/jost-500-latin.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; }


:root {
  --encre: #1C2230;          /* texte, titres, bandeaux sombres */
  --ardoise: #3E4A61;        /* boutons, liens (bleu-gris du logo assombri, contraste élevé sur blanc) */
  --ardoise-fonce: #2C3647;
  --bleu-gris: #8793AB;      /* le bleu-gris du logo : filets, repères, textes sur fond sombre */
  --bleu-gris-clair: #C5CCDA;
  --acier: #58585A;          /* le gris acier du logo : textes secondaires */
  --brume: #EEF1F6;          /* fonds de sections */
  --voile: #F6F7FA;
  --blanc: #FFFFFF;
  --filet: #DCE1EA;
  --pefc: #4F7A4D;           /* réservé à l'encadré PEFC */
  --a-confirmer: #C2410C;    /* marquage de la maquette, retiré à la mise en ligne */
  --largeur: 1200px;
  --gouttiere: clamp(20px, 4vw, 40px);
  --rayon-controle: 8px;
  --rayon-carte: 12px;
  --titres: 'Jost', 'Futura', 'Century Gothic', 'Avenir Next', sans-serif;
  --corps: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--blanc); color: var(--encre); font-family: var(--corps); font-size: 1rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ardoise); text-decoration: underline; text-decoration-color: var(--bleu-gris-clair); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ardoise); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ardoise); outline-offset: 2px;
}

h1, h2, h3 { font-family: var(--titres); color: var(--encre); line-height: 1.15; margin: 0 0 0.55em; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-weight: 400; font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.6rem); }
h2 { font-weight: 400; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); }
h3 { font-weight: 500; font-size: 1.25rem; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 66ch; }
strong, b { font-weight: 600; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: 0.35em; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--creme { background: var(--brume); }
.section--encre { background: var(--encre); color: var(--blanc); }
.section--encre h2, .section--encre h3 { color: var(--blanc); }
.section__tete { max-width: 760px; margin-bottom: 40px; }
.surtitre {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--corps); font-weight: 500; font-size: 0.9375rem; color: var(--acier); margin: 0 0 16px;
}
.surtitre::before { content: ""; width: 32px; height: 8px; flex: none; border-left: 1px solid var(--bleu-gris); border-right: 1px solid var(--bleu-gris);
  background: linear-gradient(var(--bleu-gris), var(--bleu-gris)) center / 100% 1px no-repeat; } /* signature : ligne de cote */
.chapo { font-size: 1.1875rem; color: var(--acier); line-height: 1.55; }
.discret { color: var(--acier); font-size: 0.9375rem; }

/* Maquette */
.maquette { background: var(--voile); border-bottom: 1px dashed var(--bleu-gris); font-size: 0.875rem; color: var(--acier); }
.maquette .conteneur { padding-top: 8px; padding-bottom: 8px; }
.a-confirmer { background: none; color: inherit; text-decoration: underline dotted var(--a-confirmer); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.a-confirmer::after {
  content: "à confirmer"; font-family: var(--corps); font-size: 0.7rem; font-weight: 600; color: var(--a-confirmer);
  border: 1px solid var(--a-confirmer); border-radius: 3px; padding: 0 4px; margin-left: 6px; vertical-align: 2px;
  white-space: nowrap; display: inline-block;
}

/* Barre haute et en-tête */
.barre-haute { background: var(--encre); color: var(--bleu-gris-clair); font-size: 0.8125rem; }
.barre-haute .conteneur { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.barre-haute a { color: var(--blanc); text-decoration: none; font-weight: 500; }
@media (max-width: 620px) { .barre-haute span:first-child { display: none; } }

.entete { background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(1.2) blur(6px); border-bottom: 1px solid var(--filet); position: sticky; top: 0; z-index: 10; }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.logo img, .pied img { width: 108px; mix-blend-mode: multiply; } /* le blanc du JPG se fond dans le fond */
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.nav li { margin: 0; }
.nav a { display: block; padding: 10px 14px; color: var(--encre); font-size: 0.9375rem; text-decoration: none; position: relative; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--ardoise); transform: scaleX(0); transition: transform .2s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ardoise); }
.nav .bouton, .nav .bouton[aria-current="page"] { margin-left: 10px; color: var(--blanc); }
.nav .bouton::after { display: none; }
.langues { font-size: 0.875rem; color: var(--acier); margin-left: 8px; white-space: nowrap; }
.langues a { color: var(--acier); text-decoration: none; }
.menu-mobile { display: none; }
@media (max-width: 1020px) {
  .nav { display: none; }
  .menu-mobile { display: block; position: relative; }
  .menu-mobile summary { list-style: none; cursor: pointer; padding: 8px 16px; border: 1px solid var(--ardoise); border-radius: var(--rayon-controle); color: var(--ardoise); font-weight: 500; }
  .menu-mobile summary::-webkit-details-marker { display: none; }
  .menu-mobile ul { position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, 86vw); list-style: none; margin: 0; padding: 8px; background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--rayon-carte); box-shadow: 0 8px 24px rgba(28, 34, 48, 0.10); }
  .menu-mobile a { display: block; padding: 12px; color: var(--encre); text-decoration: none; }
}

/* Boutons */
.bouton {
  display: inline-block; background: var(--ardoise); color: var(--blanc); border: 1px solid var(--ardoise); border-radius: var(--rayon-controle);
  padding: 12px 24px; font-weight: 500; font-family: var(--corps); font-size: 0.9688rem; line-height: 1.2; cursor: pointer; text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.bouton:hover { background: var(--ardoise-fonce); border-color: var(--ardoise-fonce); color: var(--blanc); }
.bouton[disabled] { opacity: .55; cursor: not-allowed; }
.bouton--secondaire { background: transparent; color: var(--ardoise); }
.bouton--secondaire:hover { background: var(--brume); color: var(--ardoise-fonce); }
.section--encre .bouton { background: var(--blanc); color: var(--encre); border-color: var(--blanc); }
.section--encre .bouton:hover { background: var(--brume); border-color: var(--brume); color: var(--encre); }
.section--encre .bouton--secondaire { background: transparent; color: var(--blanc); border-color: var(--bleu-gris); }
.section--encre .bouton--secondaire:hover { background: rgba(255, 255, 255, 0.08); color: var(--blanc); }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Ouverture */
.ouverture { padding: clamp(48px, 7vw, 96px) 0; }
.ouverture .conteneur { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.ouverture figure { margin: 0 16px 16px 0; position: relative; isolation: isolate; }
.ouverture figure img { border-radius: var(--rayon-carte); }
.ouverture figure::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--bleu-gris); border-radius: var(--rayon-carte); z-index: -1; }
.ouverture--page { padding-top: 32px; }
.section--haut { padding-top: 32px; }
.bande-chiffres { padding: 56px 0; }
.mention-b2b { border-left: 2px solid var(--bleu-gris); padding: 4px 0 4px 16px; font-weight: 500; color: var(--encre); margin: 8px 0 0; }
@media (max-width: 860px) { .ouverture .conteneur { grid-template-columns: 1fr; } .ouverture figure { margin: 0; } .ouverture figure::before { display: none; } }

/* Repères chiffrés (bandeau sombre) */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; margin: 0; }
.chiffres li { padding: 8px 28px; margin: 0; border-left: 1px solid rgba(135, 147, 171, 0.35); }
.chiffres li:first-child { border-left: 0; padding-left: 0; }
.chiffres strong { display: block; font-family: var(--titres); font-weight: 300; font-variant-numeric: tabular-nums; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem); color: var(--blanc); line-height: 1.1; margin-bottom: 8px; }
.chiffres span { color: var(--bleu-gris-clair); font-size: 0.9375rem; }
@media (max-width: 860px) {
  .chiffres { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .chiffres li:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* Cartes */
.grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grille--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grille { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grille, .grille--2 { grid-template-columns: 1fr; } }
.carte { background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--rayon-carte); overflow: hidden; display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: border-color .2s ease; }
.carte__image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--brume); }
.carte__image img { width: 100%; height: 100%; object-fit: cover; }
.carte__corps { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.carte__corps p { font-size: 0.9688rem; color: var(--acier); }
.carte__lien { margin-top: auto; font-weight: 500; color: var(--ardoise); font-size: 0.9375rem; }
.carte__lien::after { content: "  →"; }
a.carte:hover { border-color: var(--bleu-gris); }

/* Arguments */
.arguments { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; counter-reset: arg; }
.arguments li { counter-increment: arg; margin: 0; padding-top: 20px; border-top: 1px solid var(--filet); }
.arguments li::before { content: counter(arg, decimal-leading-zero); display: block; font-family: var(--titres); font-weight: 300; font-size: 1rem; color: var(--bleu-gris); margin-bottom: 10px; }
.arguments h3 { margin-bottom: 8px; }
.arguments--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px) { .arguments--2 { grid-template-columns: 1fr; } }
.arguments p { margin: 0; color: var(--acier); }
@media (max-width: 960px) { .arguments { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .arguments { grid-template-columns: 1fr; } }

/* Étapes */
.etapes { list-style: none; padding: 0; margin: 0; counter-reset: etape; }
.etapes li { counter-increment: etape; display: grid; grid-template-columns: 56px 1fr; gap: 12px; margin: 0; padding: 18px 0; border-top: 1px solid var(--filet); }
.etapes li:last-child { border-bottom: 1px solid var(--filet); }
.etapes li::before { content: counter(etape, decimal-leading-zero); font-family: var(--titres); font-weight: 300; font-size: 1.6rem; color: var(--bleu-gris); line-height: 1; }
.etapes strong { display: block; font-family: var(--titres); font-weight: 500; font-size: 1.125rem; margin-bottom: 2px; }
.etapes p { margin: 0; color: var(--acier); }

/* Encadré certification */
.certification { background: var(--voile); border-left: 3px solid var(--pefc); border-radius: 0 var(--rayon-carte) var(--rayon-carte) 0; padding: 28px 32px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.section--creme .certification { background: var(--blanc); }
.certification p { margin-bottom: 0.6em; }
.certification img { width: 112px; padding: 12px; background: var(--blanc); border-radius: var(--rayon-controle); }
.certification .identifiant { font-family: ui-monospace, Menlo, monospace; font-size: 0.9063rem; }
@media (max-width: 620px) { .certification { grid-template-columns: 1fr; } }

/* Sites */
.bandeau-image { overflow: hidden; margin-bottom: 32px; border-radius: var(--rayon-carte); }
.site-industriel { background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--rayon-carte); padding: 28px; }
.site-industriel .liste-coches { margin: 0; }
.site-industriel address { font-style: normal; color: var(--acier); margin-bottom: 12px; }

/* Frise */
.frise { list-style: none; padding: 0; margin: 0 0 1em; }
.frise li { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--bleu-gris-clair); margin: 0; color: var(--acier); }
.frise strong { font-family: var(--titres); font-weight: 400; color: var(--encre); font-size: 1.125rem; }
@media (max-width: 520px) { .frise li { grid-template-columns: 1fr; gap: 2px; } }

/* FAQ */
.faq details { border-top: 1px solid var(--filet); }
.faq details:last-of-type { border-bottom: 1px solid var(--filet); }
.faq summary { cursor: pointer; padding: 24px 48px 24px 0; font-family: var(--titres); font-weight: 400; font-size: 1.25rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; border-right: 1px solid var(--ardoise); border-bottom: 1px solid var(--ardoise); transform: translateY(-75%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq .reponse { padding: 0 0 24px; color: var(--acier); }
.faq .reponse p { margin-bottom: 0.6em; }

/* Fil d'Ariane */
.ariane { font-size: 0.875rem; color: var(--acier); padding-top: 28px; }
.ariane ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ariane li { margin: 0; }
.ariane a { color: var(--acier); }
.ariane li + li::before { content: "/"; margin-right: 8px; color: var(--bleu-gris); }

/* Galerie, colonnes, listes */
.galerie { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.galerie figure { margin: 0; }
.galerie img { width: 100%; border-radius: var(--rayon-carte); aspect-ratio: 4 / 3; object-fit: cover; }
.galerie--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .galerie--3 { grid-template-columns: repeat(2, 1fr); } }
.galerie figcaption { font-size: 0.875rem; color: var(--acier); margin-top: 8px; }
@media (max-width: 620px) { .galerie { grid-template-columns: 1fr; } }
.colonnes { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 860px) { .colonnes { grid-template-columns: 1fr; } }
.liste-coches { list-style: none; padding: 0; }
.liste-coches li { padding: 12px 0 12px 28px; position: relative; border-bottom: 1px solid var(--filet); margin: 0; }
.liste-coches li::before { content: ""; position: absolute; left: 0; top: 1.3em; width: 14px; height: 1px; background: var(--ardoise); }

/* Appel à contact (bandeau sombre) */
.appel { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.appel h2 { margin-bottom: 10px; }
.appel p { margin: 0; color: var(--bleu-gris-clair); }
@media (max-width: 760px) { .appel { grid-template-columns: 1fr; } }

/* Formulaire */
.formulaire { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; position: relative; }
.formulaire .plein { grid-column: 1 / -1; }
.formulaire label { display: block; font-weight: 500; font-size: 0.9375rem; margin-bottom: 6px; }
.formulaire .facultatif { color: var(--acier); font-weight: 400; }
.formulaire input, .formulaire select, .formulaire textarea {
  width: 100%; font: inherit; color: var(--encre); background: var(--blanc); border: 1px solid #C9D0DC; border-radius: var(--rayon-controle); padding: 12px;
}
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { border-color: var(--ardoise); outline: none; box-shadow: 0 0 0 3px rgba(62, 74, 97, 0.15); }
.formulaire textarea { min-height: 150px; resize: vertical; }
.formulaire input[type=file] { padding: 8px; background: var(--voile); }
.formulaire .aide { font-size: 0.8125rem; color: var(--acier); margin-top: 6px; }
.formulaire .case { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.formulaire .case input { width: auto; margin-top: 5px; }
.formulaire .piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 620px) { .formulaire { grid-template-columns: 1fr; } }
.coordonnees { background: var(--voile); border-radius: var(--rayon-carte); padding: 28px; }
.coordonnees dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.coordonnees dt { font-weight: 500; }
.coordonnees dd { margin: 0; color: var(--acier); }

/* Pied de page */
.pied { background: var(--voile); border-top: 1px solid var(--filet); padding: 56px 0 24px; font-size: 0.9375rem; }
.pied .conteneur > .colonnes-pied { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.pied h2 { font-family: var(--corps); font-size: 0.9375rem; font-weight: 600; color: var(--encre); margin-bottom: 12px; letter-spacing: 0; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li a { color: var(--acier); text-decoration: none; }
.pied li a:hover { color: var(--ardoise); text-decoration: underline; }
.pied address { font-style: normal; color: var(--acier); }
.pied .baseline { font-family: var(--titres); font-weight: 400; font-size: 1.0625rem; color: var(--ardoise); margin-top: 14px; }
.pied .legal { border-top: 1px solid var(--filet); margin-top: 40px; padding-top: 16px; color: var(--acier); font-size: 0.8125rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.pied .legal a { color: var(--acier); }
@media (max-width: 860px) { .pied .conteneur > .colonnes-pied { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pied .conteneur > .colonnes-pied { grid-template-columns: 1fr; } }

/* Pages de texte (mentions, confidentialité) */
.texte-legal .conteneur { max-width: 840px; }
.texte-legal h2 { font-size: 1.375rem; margin-top: 40px; }
.texte-legal ul { color: var(--acier); }

.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
