/* =========================================================
   Colasse 2026 – ajustements par-dessus le template 2018
   (les fichiers CSS d'origine ne sont pas modifiés)
   ========================================================= */

:root {
  --colasse-navy: #1c2d50;   /* couleur du logo (charte 2025) */
  --colasse-teal: #009DB8;
  --colasse-cyan: #00B8D9;
  --colasse-dark: #00283a;
}

img { height: auto; }

/* ---------- Logo dans l'en-tête ---------- */
p.logo { margin: 0; line-height: 0; top: 0; }
.logo a { display: inline-block; padding: 16px 0; }
.logo img { width: 150px; max-width: 100%; display: block; }

/* 9 entrées de menu : on resserre un peu */
.top-nav li a { padding: 2.1em 0.95em 2.5em; font-size: 0.85em; }
.top-nav li.nav-shop a {
  color: var(--colasse-cyan);
}
@media screen and (max-width: 1100px) and (min-width: 769px) {
  .top-nav li a { padding: 2.1em 0.6em 2.5em; font-size: 0.78em; }
  .logo img { width: 140px; }
}
@media screen and (max-width: 768px) {
  .logo { text-align: center; }
  .logo a { padding: 0.9em 0 0.4em; }
  .logo img { width: 150px; margin: 0 auto; }
  .top-nav li a { padding: 1.2em 0; font-size: 1em; }
}

/* ---------- Actualités ---------- */
.news-item { margin-bottom: 1.25em; }
.news-text h3 { font-size: 1.05em; margin: 0.4em 0; }
.news-text a { font-weight: 600; }
.news-archive-link { text-align: center; margin-top: 1em; font-size: 0.85em; }

/* ---------- Engagements : B Corp + e-shop ---------- */
#commitments {
  background: #fff;
  padding: 4em 2em;
  text-align: center;
  border-top: 1px solid #e8e8e8;
}
#commitments .commit-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 2em 1.5em;
  height: 100%;
}
#commitments h3 { color: var(--colasse-navy); font-size: 1.25em; margin: 0.5em 0; }
#commitments p { color: #666; font-size: 0.9em; }
#commitments i { font-size: 2.2em; color: var(--colasse-teal); }
a.color-btn.inline { display: inline-block; margin-top: 1em; }

/* ---------- Téléchargements ---------- */
.pricing-table li { text-align: left; padding: 0.9em 1.1em; }
.pricing-table li.cta { text-align: center; }
.pricing-table a { color: #fff; }
.pricing-table a:hover { color: var(--colasse-cyan); }
.lang {
  display: inline-block;
  font-size: 0.7em;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 3px;
  padding: 0 0.35em;
  margin-left: 0.3em;
  vertical-align: 1px;
}
.doc-size { opacity: 0.7; font-size: 0.75em; white-space: nowrap; }

/* Sur mobile, l'image de fond « fixed » est lourde et mal gérée */
@media screen and (max-width: 768px) {
  #pricing { background-attachment: scroll; background-size: cover; }
}

/* ---------- Carte (Google Maps sans clé API) ---------- */
#map { height: 420px; position: relative; background: #e9eef0; }
#map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.7); }
#map .map-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 1em;
  color: var(--colasse-dark);
}
#map .map-placeholder button {
  margin-top: 1em; background: var(--colasse-dark); color: #fff; border: 0;
  border-radius: 4px; padding: 0.7em 1.4em; cursor: pointer; font-size: 0.9em;
}

/* ---------- Contact ---------- */
.contact-logo img { max-width: 170px; }
.full-name-field { position: absolute; left: -9999px; }
.mail-success, .mail-fail { display: none; }

/* ---------- Pied de page ---------- */
footer .footer-links p { margin-bottom: 0.4em; }
footer .bcorp-footer a { color: #b9c6cc; }
footer button.link {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: #6c7c84; font-size: 0.8em; text-decoration: underline; font-family: inherit;
}

/* ---------- Bandeau cookies ---------- */
#cookie-banner {
  position: fixed; left: 1em; right: 1em; bottom: 1em; z-index: 1000;
  max-width: 760px; margin: 0 auto;
  background: var(--colasse-dark); color: #dfe8ec;
  border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,0.3);
  padding: 1.1em 1.3em; font-size: 0.85em; display: none;
}
#cookie-banner p { margin: 0 0 0.8em; color: #dfe8ec; }
#cookie-banner a { color: var(--colasse-cyan); }
#cookie-banner .cookie-actions { display: flex; gap: 0.6em; flex-wrap: wrap; justify-content: flex-end; }
#cookie-banner button {
  border: 1px solid #fff; background: transparent; color: #fff;
  border-radius: 4px; padding: 0.55em 1.2em; cursor: pointer; font-size: 0.95em;
}
#cookie-banner button.accept { background: var(--colasse-cyan); border-color: var(--colasse-cyan); color: var(--colasse-dark); font-weight: 700; }

/* Accessibilité : focus visible au clavier */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--colasse-cyan); outline-offset: 2px;
}

/* ---------- Bandeau réseaux sociaux ---------- */
#socials a.s-linkedin { background: #0a66c2; }
#socials a.s-shop { background: #24ac6e; }
#socials a.instagram { background: #c13584; }

/* ---------- Performance énergétique (Ewattch) ---------- */
#energy { background: #f3f3f3; padding: 6em 2em; text-align: center; }
#energy .energy-intro { max-width: 760px; margin: 0 auto 2.5em; color: #555; }
#energy .energy-card { background: #fff; border-radius: 6px; padding: 2em 1.8em; height: 100%; text-align: left; border-top: 3px solid var(--colasse-teal); }
#energy .energy-card i { font-size: 2em; color: var(--colasse-teal); }
#energy .energy-card h3 { color: var(--colasse-navy); font-size: 1.2em; margin: 0.5em 0; }
#energy .energy-card p { color: #555; font-size: 0.9em; }
#energy .center-cta { text-align: center; }

/* ---------- Liste des études de cas ---------- */
#case-studies { clear: both; }
.pricing-table ul.case-list { column-count: 2; column-gap: 0; }
.pricing-table ul.case-list li { break-inside: avoid; }
@media screen and (max-width: 768px) { .pricing-table ul.case-list { column-count: 1; } }

/* ---------- Téléchargements : titres courts + colonnes alignées ---------- */
#pricing .margin { display: flex; flex-wrap: wrap; }
#pricing .margin > .s-12 { display: flex; flex-direction: column; }
#pricing .pricing-table { flex: 1; display: flex; flex-direction: column; }
#pricing .pricing-table ul { flex: 1; display: flex; flex-direction: column; }
#pricing .pricing-table li.cta { margin-top: auto; }
.pricing-table li { white-space: nowrap; }
.pricing-table .dl-title { font-size: 0.9em; }
.pricing-table a.lang { color: #fff; text-decoration: none; margin-left: 0.4em; }
.pricing-table a.lang:hover { background: var(--colasse-cyan); border-color: var(--colasse-cyan); color: var(--colasse-dark); }
#case-studies .pricing-table ul.case-list { display: block; }
@media screen and (max-width: 768px) { #pricing .margin { display: block; } }

/* Bloc B Corp / Fortelumia : cartes de même hauteur, boutons alignés */
#commitments .margin { display: flex; flex-wrap: wrap; }
#commitments .margin > .s-12 { display: flex; }
#commitments .commit-card { display: flex; flex-direction: column; width: 100%; }
#commitments .commit-card .color-btn { margin-top: auto; align-self: center; }
#commitments .commit-card p { margin-bottom: 1em; }
@media screen and (max-width: 768px) { #commitments .margin { display: block; } }

/* ---------- Brochure 2026 mise en avant (About Us) ---------- */
.brochure-cta { display: flex; align-items: center; gap: 1em; margin: 1.6em 0 1.2em; padding: 1em 1.2em;
  background: #24ac6e; border-radius: 6px; max-width: 460px; }
.brochure-cta > i { font-size: 2em; color: #fff; }
.brochure-cta .bc-text { flex: 1; color: #fff; line-height: 1.3; }
.brochure-cta .bc-text strong { display: block; font-size: 1.15em; color: #fff; }
.brochure-cta .bc-text span { font-size: 0.85em; color: #e8f7ef; }
.brochure-cta a.lang { color: #fff; text-decoration: none; font-size: 0.95em; font-weight: 700;
  border: 2px solid #fff; border-radius: 4px; padding: 0.35em 0.7em; margin-left: 0.3em; display: inline-block; vertical-align: middle; }
.brochure-cta a.lang:hover { background: #fff; color: #00283a; }
@media screen and (max-width: 480px) { .brochure-cta { flex-wrap: wrap; } .brochure-cta .bc-langs { width: 100%; } }

/* ---------- Questions fréquentes (FAQ) ---------- */
#faq { background: #f3f3f3; padding: 5em 2em; }
#faq .faq-list { max-width: 860px; margin: 0 auto; text-align: left; }
#faq .faq-item { background: #fff; border-radius: 6px; margin-bottom: 0.7em; border-left: 3px solid var(--colasse-teal); }
#faq summary { cursor: pointer; padding: 1em 1.2em; list-style: none; position: relative; padding-right: 2.6em; }
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: "+"; position: absolute; right: 1em; top: 50%; transform: translateY(-50%); font-size: 1.4em; color: var(--colasse-teal); }
#faq details[open] summary::after { content: "–"; }
#faq summary h3 { display: inline; font-size: 1em; color: var(--colasse-navy); margin: 0; }
#faq .faq-item p { padding: 0 1.2em 1.1em; margin: 0; color: #555; font-size: 0.9em; }
#faq summary h3 { font-weight: 600; }

/* ---------- Mobile : pas de défilement horizontal ---------- */
@media screen and (max-width: 768px) {
  html, body { overflow-x: hidden; }
  h2.section-title {
    font-size: clamp(1.9rem, 9vw, 3.8em);
    letter-spacing: -1px;
    overflow-wrap: break-word;
  }
  article h2 { font-size: clamp(2.2rem, 12vw, 4em); }
  #about-us article { padding: 3em 1.5em; }
}
