/* B-Technologies Sàrl — feuille de style unique */
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --teal: #03606b;
  --teal-fonce: #024650;
  --teal-clair: #e3efef;
  --encre: #13262a;
  --texte: #33464a;
  --doux: #5f7174;
  --ligne: #dbe3e2;
  --papier: #f7f5f0;
  --blanc: #ffffff;
  --accent: #d9812b;
  --rayon: 14px;
  --largeur: 1180px;
  --ombre: 0 1px 2px rgba(19, 38, 42, .06), 0 8px 24px rgba(19, 38, 42, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--texte);
  background: var(--papier);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-fonce); }
h1, h2, h3, h4 { color: var(--encre); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }
.etroit { max-width: 780px; }
.lien-evitement { position: absolute; left: -9999px; }
.lien-evitement:focus { left: 16px; top: 16px; z-index: 100; background: var(--blanc); padding: 8px 14px; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--ligne);
}
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--encre); }
.logo img { height: 46px; width: auto; }
.logo span { font-weight: 800; letter-spacing: .06em; font-size: .95rem; line-height: 1.1; }
.logo small { display: block; font-weight: 600; color: var(--doux); letter-spacing: .08em; font-size: .7rem; }
.menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--encre); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.menu a:hover { background: var(--teal-clair); color: var(--teal-fonce); }
.menu a[aria-current="page"] { color: var(--teal); background: var(--teal-clair); }
.menu .bouton { margin-left: 8px; }
.menu .bouton:hover { background: var(--teal-fonce); color: var(--blanc); }
.bouton-menu { display: none; }

@media (max-width: 900px) {
  .bouton-menu {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: 1px solid var(--ligne); border-radius: 999px;
    padding: 8px 14px; font: inherit; font-weight: 700; color: var(--encre); cursor: pointer;
  }
  .menu {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--papier); border-bottom: 1px solid var(--ligne);
    padding: 8px 16px 16px; display: none;
  }
  .menu.ouvert { display: flex; }
  .menu a { padding: 12px 14px; border-radius: 10px; }
  .menu .bouton { margin: 8px 0 0; text-align: center; }
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--teal); color: var(--blanc) !important;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 0; cursor: pointer;
  transition: background .2s, transform .2s;
}
.bouton:hover { background: var(--teal-fonce); transform: translateY(-1px); }
.bouton.clair { background: var(--blanc); color: var(--teal) !important; }
.bouton.clair:hover { background: var(--teal-clair); }
.bouton.contour { background: transparent; color: var(--blanc) !important; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.bouton.contour:hover { background: rgba(255,255,255,.12); }
.bouton svg { width: 18px; height: 18px; }

/* ---------- Bandeau d'ouverture ---------- */
.ouverture {
  position: relative; color: var(--blanc);
  min-height: min(78vh, 680px);
  display: flex; align-items: flex-end;
  background: var(--encre);
  overflow: hidden;
}
.ouverture.court { min-height: min(52vh, 460px); }
.ouverture picture, .ouverture picture img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.ouverture::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 30, 34, .15) 0%, rgba(10, 30, 34, .55) 55%, rgba(10, 30, 34, .88) 100%);
}
.ouverture .conteneur { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 64px; }
.ouverture h1 { color: var(--blanc); max-width: 17ch; }
.ouverture .chapeau { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 60ch; color: rgba(255,255,255,.9); }
.ouverture .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.surtitre {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}
.ouverture .surtitre { color: #9fd6d9; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.blanc { background: var(--blanc); }
section.fonce { background: var(--encre); color: rgba(255,255,255,.85); }
section.fonce h2, section.fonce h3 { color: var(--blanc); }
.entete-section { max-width: 720px; margin-bottom: 44px; }
.entete-section p { font-size: 1.08rem; color: var(--doux); }
section.fonce .entete-section p { color: rgba(255,255,255,.75); }

.deux-colonnes { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .deux-colonnes { grid-template-columns: 1fr; gap: 36px; } }

/* Chiffres clés */
.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.chiffre { padding: 28px 24px; border-left: 1px solid var(--ligne); }
.chiffre:first-child { border-left: 0; padding-left: 0; }
.chiffre strong { display: block; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; color: var(--teal); line-height: 1; margin-bottom: 8px; letter-spacing: -.03em; }
.chiffre span { color: var(--doux); font-weight: 600; }
@media (max-width: 700px) {
  .chiffres { grid-template-columns: 1fr; }
  .chiffre { border-left: 0; border-top: 1px solid var(--ligne); padding-left: 0; }
  .chiffre:first-child { border-top: 0; }
}

/* Cartes */
.grille { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grille.trois { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grille.trois { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grille.trois { grid-template-columns: 1fr; } }
.carte {
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: 28px; box-shadow: var(--ombre);
}
section.blanc .carte { background: var(--papier); box-shadow: none; }
.carte h3 { margin-top: 14px; }
.carte p { margin: 0; color: var(--doux); font-size: .98rem; }
.icone {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--teal-clair); color: var(--teal);
}
.icone svg { width: 26px; height: 26px; }

/* Familles de services */
.famille { margin-bottom: 64px; }
.famille:last-child { margin-bottom: 0; }
.famille > h3 {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--doux);
  border-bottom: 1px solid var(--ligne); padding-bottom: 12px; margin-bottom: 22px;
}

/* Réalisations */
.projet { background: var(--blanc); border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--ligne); display: flex; flex-direction: column; }
.projet img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.projet div { padding: 22px 24px 26px; }
.projet h3 { margin-bottom: 8px; }
.projet p { margin: 0; color: var(--doux); font-size: .96rem; }
.etiquette {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-clair); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}

/* Avis */
.avis { position: relative; padding: 32px; border-radius: var(--rayon); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.avis blockquote { margin: 0 0 18px; font-size: 1.12rem; color: var(--blanc); line-height: 1.55; }
.avis .etoiles { color: #f2b54a; letter-spacing: 3px; margin-bottom: 14px; }
.avis cite { font-style: normal; font-weight: 700; color: #9fd6d9; font-size: .9rem; }

/* Labels et partenaires */
.labels { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; align-items: stretch; }
.label {
  display: flex; align-items: center; justify-content: center;
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: 20px; min-height: 130px; text-decoration: none; transition: border-color .2s, transform .2s;
}
.label:hover { border-color: var(--teal); transform: translateY(-2px); }
.label img { max-height: 90px; width: auto; }

/* Appel à l'action */
.appel { background: var(--teal); color: rgba(255,255,255,.9); border-radius: 22px; padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.appel h2 { color: var(--blanc); margin-bottom: 12px; }
.appel p { margin: 0; }
.appel .coordonnees { display: grid; gap: 12px; }
.appel .coordonnees a {
  display: flex; align-items: center; gap: 12px; color: var(--blanc); text-decoration: none; font-weight: 700; font-size: 1.1rem;
  background: rgba(255,255,255,.1); padding: 14px 18px; border-radius: 12px; transition: background .2s;
  overflow-wrap: anywhere;
}
.appel .coordonnees a:hover { background: rgba(255,255,255,.2); }
.appel svg { width: 22px; height: 22px; flex-shrink: 0; }
@media (max-width: 820px) { .appel { grid-template-columns: 1fr; } }

/* Liste à puces cochées */
.coches { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.coches li { position: relative; padding-left: 36px; }
.coches li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-clair) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303606b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* FAQ */
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative;
  font-weight: 700; color: var(--encre); font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--teal); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--doux); padding-bottom: 12px; }

/* Blog */
.article-carte { display: grid; grid-template-columns: 280px 1fr; gap: 28px; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.article-carte:hover { border-color: var(--teal); transform: translateY(-2px); color: inherit; }
.article-carte img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; background: var(--teal-clair); }
.article-carte div { padding: 26px 28px 26px 0; }
.article-carte h3 { font-size: 1.3rem; }
.article-carte p { color: var(--doux); margin: 0 0 12px; }
.meta { font-size: .85rem; font-weight: 600; color: var(--doux); }
.liste-articles { display: grid; gap: 20px; }
@media (max-width: 760px) {
  .article-carte { grid-template-columns: 1fr; gap: 0; }
  .article-carte img { aspect-ratio: 2 / 1; min-height: 0; }
  .article-carte div { padding: 22px 24px 26px; }
}

.article { background: var(--blanc); padding: 64px 0 88px; }
.article .contenu { font-size: 1.08rem; }
.article .contenu h2 { font-size: 1.6rem; margin-top: 1.8em; }
.article .contenu h3 { margin-top: 1.4em; }
.article .contenu ul, .article .contenu ol { padding-left: 1.3em; }
.article .contenu li { margin-bottom: .45em; }
.article .contenu figure { margin: 2em 0; }
.article .contenu figure img { border-radius: var(--rayon); border: 1px solid var(--ligne); }
.article .contenu figcaption { font-size: .88rem; color: var(--doux); margin-top: 8px; }
.encadre { background: var(--teal-clair); border-left: 4px solid var(--teal); padding: 18px 22px; border-radius: 0 12px 12px 0; margin: 1.6em 0; color: var(--encre); }
.encadre p:last-child { margin: 0; }
.fil { font-size: .88rem; margin-bottom: 18px; color: rgba(255,255,255,.8); }
.fil a { color: rgba(255,255,255,.9); }

/* Pied de page */
.pied { background: var(--encre); color: rgba(255,255,255,.72); padding: 64px 0 32px; font-size: .95rem; }
.pied a { color: rgba(255,255,255,.9); text-decoration: none; }
.pied a:hover { color: var(--blanc); text-decoration: underline; }
.pied .grille-pied { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.pied h4 { color: var(--blanc); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pied .marque { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pied .marque img { height: 92px; width: auto; }
.pied .bas { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
@media (max-width: 900px) { .pied .grille-pied { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pied .grille-pied { grid-template-columns: 1fr; } }

/* Contact */
.contact-cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-carte { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 32px; text-decoration: none; color: inherit; display: block; transition: border-color .2s, transform .2s; }
a.contact-carte:hover { border-color: var(--teal); transform: translateY(-2px); color: inherit; }
.contact-carte .icone { margin-bottom: 18px; }
.contact-carte span { display: block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--doux); margin-bottom: 6px; }
.contact-carte strong { font-size: 1.2rem; color: var(--encre); overflow-wrap: anywhere; }
@media (max-width: 860px) { .contact-cartes { grid-template-columns: 1fr; } }

.presse { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: center; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 28px; }
.presse img { border-radius: 8px; box-shadow: var(--ombre); }
@media (max-width: 700px) { .presse { grid-template-columns: 1fr; } .presse img { max-width: 220px; } }

@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .conteneur { padding: 0 16px; }
  .ouverture .conteneur { padding-top: 90px; padding-bottom: 44px; }
}

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

/* Ajustements images */
.article-carte img.contenir { object-fit: contain; background: var(--blanc); padding: 20px; }
.article .contenu figure img { max-height: 460px; width: auto; margin: 0 auto; }

/* ---------- Compléments (sections pilotées par les fichiers texte) ---------- */
section.beige { background: var(--papier); }
section.blanc + section.blanc, section.beige + section.beige { padding-top: 0; }
.chiffres { grid-template-columns: 1fr; border-bottom: 0; }
.chiffres .chiffre { border-left: 0; padding: 26px 0; border-bottom: 1px solid var(--ligne); }
.grille.deux { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.avis { margin: 0; }
.avis figcaption { font-weight: 700; color: #9fd6d9; font-size: .9rem; }
.lien-fleche { font-weight: 700; text-decoration: none; color: var(--teal); }
.lien-fleche:hover { text-decoration: underline; }
.apres-grille { margin-top: 32px; }
.actions-texte { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.illustration img { max-width: 360px; margin-inline: auto; }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.carte p:last-child, .projet p:last-child, .faq details p:last-child { margin-bottom: 0; }
.faq details > *:not(summary) { color: var(--doux); }
.faq details ul { padding-left: 1.2em; }
.faq details { padding-bottom: 6px; }
.entete-article { padding: 72px 0 56px; }
.entete-article h1 { color: var(--blanc); font-size: clamp(2rem, 4.4vw, 3rem); }
.entete-article .meta { color: rgba(255,255,255,.7); margin: 0; }
.retour { margin-top: 2.5em; }
.presse + .presse { margin-top: 20px; }
.titre-page { font-size: clamp(2rem, 4vw, 2.8rem); }
