/* ==========================================================
   K-BUSINESS - FEUILLE DE STYLE PRINCIPALE
   Rôle : gérer le design complet du site sur ordinateur,
   tablette et téléphone.
========================================================== */

/* ==========================
   01. Variables globales
   Couleurs et valeurs réutilisées dans tout le site.
========================== */
:root {
  --red: #c40000;
  --red-dark: #8d0000;
  --ink: #111111;
  --charcoal: #1d2023;
  --muted: #666b70;
  --line: #dedede;
  --paper: #f5f5f5;
  --white: #ffffff;
  --green: #25d366;
  --gold: #f28c18;
  --header-bg: #111111;
  --footer-bg: #080808;
  --header-height: 78px;
}

/* ==========================
   02. Réinitialisation de base
   Évite les débordements et rend les images fluides.
========================== */
* {
  box-sizing: border-box;
}

html {
  width: 100%;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  width: 100%;
  margin: 0;
  overflow-x: hidden;
  font-family: "Poppins", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.btn,
.menu-toggle,
.ai-button,
.whatsapp {
  touch-action: manipulation;
}

/* ==========================
   03. Typographie
   Titres, paragraphes et petits libellés rouges.
========================== */
h1,
h2,
h3,
p,
span,
strong {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin: 10px 0;
  font-size: 22px;
  line-height: 1.2;
}

p {
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* ==========================
   04. En-tête et navigation
   Menu fixe sur ordinateur, menu déroulant sur téléphone.
========================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 12px clamp(18px, 5vw, 72px);
  color: var(--white);
  background: color-mix(in srgb, var(--header-bg) 93%, transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.brand img {
  width: min(105px, 48vw);
  padding: 6px;
  background: var(--white);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #ffb1b1;
}

.menu-toggle {
  display: none;
  min-width: 48px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

/* ==========================
   05. Boutons
   Styles partagés pour les appels à l'action.
========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.btn.primary {
  color: var(--white);
  background: var(--red);
}

.btn.primary:hover {
  background: var(--red-dark);
}

.btn.light {
  color: var(--ink);
  background: var(--white);
}

.btn.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.56);
}

.btn.outline {
  color: var(--red);
  border-color: var(--red);
  background: transparent;
}

/* ==========================
   06. Héros de la page d'accueil
   Grande bannière principale avec image industrielle.
========================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 94vh;
  display: flex;
  align-items: center;
  padding: 132px clamp(18px, 5vw, 72px) 80px;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 35%, rgba(196, 0, 0, 0.22), transparent 28%),
    linear-gradient(90deg, #080808 0%, #111111 46%, #241515 100%);
}

/* Image principale de la bannière.
   Elle est séparée du fond pour garder la femme visible
   sur ordinateur, tablette et téléphone. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  background:
    url("../images/hero-industrial-kbusiness.png") center / cover no-repeat;
}

/* Dégradé de lisibilité au-dessus de l'image.
   Il protège le texte sans cacher complètement le portrait. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.78) 42%, rgba(0, 0, 0, 0.22) 78%, rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 58vw);
  animation: heroTextIn 850ms ease both;
}

.hero .eyebrow,
.page-hero .eyebrow,
.quote .eyebrow,
.leadership .eyebrow {
  color: #ff6b6b;
}

.hero-subtitle {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.55;
  font-weight: 600;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-panel {
  position: absolute;
  z-index: 1;
  right: clamp(18px, 5vw, 72px);
  bottom: 32px;
  width: min(360px, calc(100% - 36px));
  padding: 22px;
  background: rgba(17, 17, 17, 0.76);
  border-left: 5px solid var(--red);
  animation: heroPanelIn 900ms ease 180ms both;
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.76);
}

/* ==========================
   07. Héros des pages internes
   Bandeaux utilisés dans about, services, granite, team, quote, contact.
========================== */
.page-hero {
  min-height: 58vh;
  display: grid;
  align-content: end;
  gap: 16px;
  padding: 150px clamp(18px, 5vw, 72px) 72px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.62)),
    url("../images/hero-industrial-kbusiness.png") center / cover no-repeat;
}

.page-hero.compact {
  min-height: 44vh;
}

.page-hero.dark {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.76)),
    url("../images/partner-group.jpg") center / cover no-repeat;
}

.page-hero.granite-hero,
.page-hero.quote-hero {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.6)),
    url("../images/crusher-site.jpg") center / cover no-repeat;
}

.page-hero h1 {
  width: min(900px, 100%);
  font-size: clamp(38px, 6vw, 74px);
}

.page-hero p:not(.eyebrow) {
  width: min(760px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.65;
}

/* ==========================
   08. Sections communes
   Espacements et conteneurs réutilisables.
========================== */
.section {
  padding: 88px clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 34px;
}

.section-copy {
  max-width: 760px;
}

.section-copy p,
.service-grid p,
.reason-grid p,
.director-card p,
.team-grid p,
.quote-copy p,
.granite-copy p,
.csr-list span,
.contact-card p {
  color: var(--muted);
  line-height: 1.7;
}

/* ==========================
   09. Statistiques
   Bande noire avec chiffres clés.
========================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}

.stats article {
  position: relative;
  padding: 30px clamp(18px, 4vw, 54px);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  animation: statCardIn 700ms ease both;
  transition: transform 220ms ease, background 220ms ease;
}

.stats article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196, 0, 0, 0.22), transparent 58%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.stats article:hover {
  transform: translateY(-4px);
  background: #171717;
}

.stats article:hover::before {
  opacity: 1;
}

.stats article:nth-child(2) {
  animation-delay: 100ms;
}

.stats article:nth-child(3) {
  animation-delay: 200ms;
}

.stats article:nth-child(4) {
  animation-delay: 300ms;
}

.stats strong {
  position: relative;
  display: block;
  color: #ff6b6b;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  animation: statNumberPulse 1200ms ease both;
}

.stats span {
  position: relative;
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 600;
  animation: statTextIn 700ms ease 160ms both;
}

/* ==========================
   10. À propos, mission, vision, valeurs
   Bloc texte + cartes de valeurs.
========================== */
.about {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 38px;
  background: var(--white);
}

.value-grid {
  display: grid;
  gap: 16px;
}

.value-grid article,
.service-grid article,
.reason-grid article,
.team-grid article {
  background: var(--white);
  border: 1px solid var(--line);
}

.value-grid article {
  padding: 24px;
  border-left: 5px solid var(--red);
}

.value-grid strong,
.reason-grid strong {
  font-size: 20px;
}

/* ==========================
   11. Services
   Cartes des activités de K-BUSINESS.
========================== */
.services {
  background: var(--paper);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-grid article {
  min-height: 250px;
  padding: 26px;
  transition: transform 160ms ease, border-color 160ms ease;
}

.service-grid article:hover {
  transform: translateY(-5px);
  border-color: var(--red);
}

.service-grid span {
  color: var(--red);
  font-weight: 800;
}

.service-grid .image-card {
  padding: 0;
  overflow: hidden;
  background: var(--white);
}

.image-card img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

/* ==========================
   12. Granite et galerie usine
   Produits de concassage et photos de l'installation.
========================== */
.granite {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 34px;
  color: var(--white);
  background: var(--charcoal);
}

.granite .eyebrow {
  color: #ff6b6b;
}

.granite-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.granite.products-page {
  display: block;
}

.granite-copy.full {
  width: 100%;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.products-page .product-grid {
  grid-template-columns: repeat(3, 1fr);
}

.product-grid article {
  overflow: hidden;
  padding: 0 0 18px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--red);
}

.product-grid img {
  width: 100%;
  aspect-ratio: 1.28;
  object-fit: cover;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.product-grid strong,
.product-grid span {
  display: block;
  padding-inline: 18px;
}

.product-grid span {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.gallery-section {
  background: var(--paper);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-content: start;
}

.gallery img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* ==========================
   13. Pourquoi nous choisir
   Arguments commerciaux.
========================== */
.reasons {
  background: var(--white);
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.reason-grid article {
  padding: 24px;
  border-top: 5px solid var(--red);
  background: var(--paper);
}

/* ==========================
   14. Leadership et équipe
   Carte du Directeur Général + équipe.
========================== */
.leadership {
  color: var(--white);
  background: var(--ink);
}

.leadership.standalone {
  padding-top: 70px;
}

.director-card {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 24px;
  padding: 26px;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 5px solid var(--red);
  animation: leadershipReveal 850ms ease both;
}

.director-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  animation: leadershipImageIn 900ms ease 120ms both;
  transition: transform 320ms ease, filter 320ms ease;
}

.director-card:hover img {
  transform: scale(1.035);
  filter: contrast(1.06) saturate(1.06);
}

.director-card div {
  animation: leadershipTextIn 850ms ease 220ms both;
}

.director-card span {
  color: #ffb1b1;
  font-weight: 700;
}

.director-card p {
  color: rgba(255, 255, 255, 0.74);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.team-grid article {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 180px 1fr;
  color: var(--ink);
  background: linear-gradient(135deg, var(--white), #f7f7f7);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 5px solid var(--red);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  animation: teamCardIn 700ms ease both;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.team-grid article::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.team-grid article:hover {
  transform: translateY(-7px);
  border-left-color: #ff4a4a;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
}

.team-grid article:nth-child(2) {
  animation-delay: 80ms;
}

.team-grid article:nth-child(3) {
  animation-delay: 160ms;
}

.team-grid article:nth-child(4) {
  animation-delay: 240ms;
}

.team-grid article:nth-child(5) {
  animation-delay: 320ms;
}

.team-grid img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  background: #eadbcc;
  transition: transform 320ms ease, filter 320ms ease;
}

.team-grid article:hover img {
  transform: scale(1.045);
  filter: contrast(1.06) saturate(1.06);
}

.member-info {
  padding: 22px;
  animation: leadershipTextIn 750ms ease 120ms both;
}

.team-grid strong,
.team-grid span,
.team-grid p {
  display: block;
}

.team-grid strong {
  font-size: 20px;
  line-height: 1.2;
}

.team-grid span {
  margin-top: 8px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.team-grid p {
  margin: 12px 0 0;
  font-size: 14px;
}

.member-missions {
  display: grid;
  gap: 7px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.member-missions li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  animation: missionIn 560ms ease both;
}

.member-missions li:nth-child(2) {
  animation-delay: 80ms;
}

.member-missions li:nth-child(3) {
  animation-delay: 160ms;
}

.member-missions li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  background: var(--red);
}

.home-leadership {
  background: var(--white);
}

.home-team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.home-team article {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom: 5px solid var(--red);
  animation: teamCardIn 700ms ease both;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.home-team article:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.home-team img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.home-team strong,
.home-team span {
  display: block;
  padding-inline: 18px;
}

.home-team strong {
  padding-top: 18px;
  font-size: 18px;
}

.home-team span {
  padding-bottom: 18px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

/* ==========================
   15. Devis intelligent
   Formulaire de calcul et résultat estimatif.
========================== */
.quote {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 36px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.96), rgba(17, 17, 17, 0.88)),
    url("../images/crusher-site.jpg") center / cover no-repeat;
}

.quote-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.quote-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.quote-form input,
.quote-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.quote-form select {
  color-scheme: light;
  appearance: auto;
  cursor: pointer;
}

.quote-form select option {
  color: #111111;
  background: #ffffff;
}

.quote-form button,
.estimate {
  grid-column: 1 / -1;
}

.estimate {
  padding: 20px;
  background: var(--white);
  color: var(--ink);
  border-left: 5px solid var(--red);
}

.estimate span,
.estimate strong,
.estimate p {
  display: block;
}

.estimate strong {
  margin-top: 4px;
  color: var(--red);
  font-size: clamp(26px, 4vw, 40px);
}

.estimate p {
  margin: 8px 0 0;
  color: var(--muted);
}

/* ==========================
   16. Contact
   Coordonnées + formulaire simple.
========================== */
.contact-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
  background: var(--white);
}

.contact-card,
.contact-form {
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
}

.contact-form textarea {
  padding-top: 12px;
  resize: vertical;
}

.contact-form .wide,
.contact-form button {
  grid-column: 1 / -1;
}

/* ==========================
   17. Partenaires et responsabilité sociale
   Logos partenaires et engagements RSE.
========================== */
.partners {
  background: var(--white);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.partner-grid img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: contain;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.featured-partners article {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.featured-partners article:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.featured-partners img {
  margin-bottom: 16px;
  background: var(--white);
}

.featured-partners strong,
.featured-partners span {
  display: block;
}

.featured-partners strong {
  font-size: 18px;
}

.featured-partners span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.csr {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  background: var(--paper);
}

.csr-list {
  display: grid;
  gap: 12px;
}

.csr-list span {
  display: block;
  padding: 17px 20px;
  background: var(--white);
  border-left: 4px solid var(--red);
  font-weight: 700;
}

/* ==========================
   18. Pied de page
   Logo, adresse et horaires.
========================== */
.footer {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 30px;
  padding: 42px clamp(18px, 5vw, 72px);
  color: var(--white);
  background: var(--footer-bg);
}

.footer img {
  width: min(300px, 72vw);
  padding: 6px;
  background: var(--white);
}

.footer p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.68);
}

.footer h3 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 15px;
  text-transform: uppercase;
}

.footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.footer a:hover {
  color: #ffb1b1;
}

.footer address {
  display: grid;
  gap: 8px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.76);
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

/* ==========================
   19. Boutons flottants et assistant IA
   Accès rapide WhatsApp + mini assistant.
========================== */
.ai-button,
.whatsapp {
  position: fixed;
  z-index: 70;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.ai-button {
  left: 22px;
  border: 3px solid var(--red);
  background: var(--ink);
  cursor: pointer;
}

.whatsapp {
  right: 22px;
  background: var(--green);
  overflow: hidden;
  color: transparent;
  font-size: 0;
}

.whatsapp::before {
  content: "";
  width: 34px;
  height: 34px;
  background: url("../images/whatsapp-icon.svg") center / contain no-repeat;
}

.chatbot {
  position: fixed;
  left: 22px;
  bottom: 92px;
  z-index: 80;
  display: none;
  width: min(360px, calc(100vw - 44px));
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.32);
}

.chatbot.open {
  display: block;
}

.chatbot header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  color: var(--white);
  background: var(--ink);
  border-bottom: 4px solid var(--red);
}

.chat-close {
  border: 0;
  color: var(--white);
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.chat-body,
.chat-answer {
  padding: 16px;
}

.chat-body button {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  text-align: left;
}

.chat-answer {
  margin: 0;
  color: var(--red);
  font-weight: 700;
}

/* ==========================
   19B. Bouton langues
   Widget Google Translate affiché sur toutes les pages.
========================== */
.language-tools {
  position: fixed;
  right: 16px;
  top: 88px;
  z-index: 75;
  display: grid;
  gap: 5px;
  width: min(178px, calc(100vw - 32px));
  padding: 7px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-left: 3px solid var(--red);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
  font-size: 12px;
}

.language-tools button {
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  color: var(--white);
  background: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.language-tools small {
  font-size: 0.66rem;
  color: var(--muted);
}

.language-tools.is-closed #google_translate_element,
.language-tools.is-closed small {
  display: none;
}

.language-tools select {
  max-width: 100%;
  min-height: 28px;
  font-size: 12px;
}

.language-tools .goog-te-gadget {
  font-size: 10px;
  line-height: 1.2;
}

.language-tools .goog-te-combo {
  width: 100%;
  max-width: 150px;
  min-height: 28px;
  margin: 0;
  font-size: 12px;
}

/* ==========================
   19C. Publications et maintenance
   Contenus contrôlés depuis le back-office.
========================== */
.public-announcements {
  display: grid;
  gap: 14px;
  padding: 24px clamp(18px, 5vw, 72px);
  background: #fff7ec;
  border-bottom: 1px solid rgba(242, 140, 24, 0.28);
}

.public-announcements article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 0;
}

.public-announcements strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

.public-announcements p {
  margin: 4px 0 0;
  color: var(--muted);
}

.maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.97);
}

.maintenance-card {
  max-width: 620px;
  text-align: center;
  padding: 34px;
  border-top: 6px solid var(--red);
  background: var(--white);
  box-shadow: var(--shadow);
}

.maintenance-card img {
  max-width: 260px;
  height: auto;
  margin-bottom: 18px;
}

.maintenance-card h1 {
  margin: 0 0 12px;
  color: var(--red);
}

.maintenance-card p {
  color: var(--muted);
}

.custom-public-sections {
  display: grid;
  gap: 24px;
  padding: 68px clamp(18px, 5vw, 72px);
  background: var(--white);
}

.custom-public-sections article {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.custom-public-sections article:last-child {
  border-bottom: 0;
}

.custom-public-sections img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.custom-public-sections h2 {
  margin-top: 0;
}

.custom-public-sections p {
  color: var(--muted);
}

/* ==========================
   20. Responsive tablette
   De 768px à 1120px : grilles en 2 colonnes.
========================== */
@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroPanelIn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes teamCardIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes statCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes statNumberPulse {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.92);
  }

  65% {
    opacity: 1;
    transform: translateY(0) scale(1.08);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes statTextIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes leadershipReveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes leadershipImageIn {
  from {
    opacity: 0;
    transform: translateX(-26px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes leadershipTextIn {
  from {
    opacity: 0;
    transform: translateX(22px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes missionIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 1120px) {
  .service-grid,
  .team-grid,
  .home-team,
  .reason-grid,
  .partner-grid,
  .products-page .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .granite,
  .quote,
  .about,
  .csr,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .director-card {
    grid-template-columns: 260px 1fr;
  }

  .team-grid article {
    grid-template-columns: 150px 1fr;
  }

  .footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Tablette : le portrait reste visible à droite,
     avec un texte un peu moins large. */
  .hero-content {
    width: min(620px, 62vw);
  }
}

/* ==========================
   21. Responsive téléphone
   Jusqu'à 760px : menu mobile et contenu en une colonne.
========================== */
@media (max-width: 760px) {
  :root {
    --header-height: 70px;
  }

  .site-header {
    min-height: var(--header-height);
    padding: 10px 14px;
  }

  .brand img {
    width: min(220px, 55vw);
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--header-height));
    padding: 10px 18px 18px;
    overflow-y: auto;
    background: rgba(17, 17, 17, 0.98);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero {
    min-height: auto;
    display: flex;
    padding: 112px 18px 56px;
  }

  /* Téléphone : le visuel industriel reste en couverture,
     avec un dégradé fort pour préserver la lisibilité du texte. */
  .hero::before {
    inset: 0;
    width: 100%;
    height: auto;
    background-position: center;
    background-size: cover;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.66)),
      linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent 44%);
  }

  .hero-content {
    width: 100%;
  }

  .page-hero {
    min-height: auto;
    padding: 112px 18px 52px;
  }

  .hero-panel {
    position: static;
    width: 100%;
    margin-top: 34px;
  }

  h1,
  .page-hero h1 {
    font-size: 38px;
    line-height: 1.04;
  }

  h2 {
    font-size: 30px;
  }

  .section {
    padding: 64px 18px;
  }

  .stats,
  .service-grid,
  .product-grid,
  .products-page .product-grid,
  .gallery,
  .reason-grid,
  .team-grid,
  .home-team,
  .quote-form,
  .contact-form,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .stats article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .director-card {
    grid-template-columns: 1fr;
  }

  .team-grid article {
    grid-template-columns: 1fr;
  }

  .team-grid img {
    min-height: 0;
    aspect-ratio: 1;
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .ai-button,
  .whatsapp {
    width: 52px;
    height: 52px;
    bottom: 16px;
  }

  .ai-button {
    left: 16px;
  }

  .whatsapp {
    right: 16px;
  }

  .chatbot {
    left: 14px;
    bottom: 78px;
    width: calc(100vw - 28px);
  }

  .language-tools {
    top: 76px;
    right: 10px;
    width: min(164px, calc(100vw - 20px));
  }

  .public-announcements article {
    align-items: flex-start;
    flex-direction: column;
  }

  .custom-public-sections article {
    grid-template-columns: 1fr;
  }

  .maintenance-card {
    padding: 24px 18px;
  }
}

/* ==========================
   22. Petits téléphones
   De 320px à 480px : boutons pleine largeur et texte réduit.
========================== */
@media (max-width: 480px) {
  .brand img {
    width: 170px;
  }

  h1,
  .page-hero h1 {
    font-size: 32px;
    line-height: 1.1;
  }

  h2 {
    font-size: 24px;
    line-height: 1.2;
  }

  h3 {
    font-size: 18px;
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 1.6;
  }

  .btn {
    width: 100%;
  }

  .hero-actions,
  .section-actions {
    flex-direction: column;
  }

  .section {
    padding: 50px 15px;
  }

  .director-card,
  .contact-card,
  .contact-form,
  .quote-form {
    padding: 18px;
  }

  .gallery img {
    height: auto;
  }
}

/* Boutique publique : catalogue dynamique et réservation client. */
.shop-hero {
  background-image: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.28)), url("../images/equipment-catalog.png");
}

.public-shop,
.shop-reservation {
  display: grid;
  gap: 24px;
}

/* 24. Responsive final : stabilise l'affichage avant mise en ligne. */
img,
video,
canvas,
iframe {
  max-width: 100%;
}

table {
  max-width: 100%;
}

.site-nav,
.hero-actions,
.section-actions,
.shop-product-actions,
.footer {
  min-width: 0;
}

@media (max-width: 1024px) {
  .site-header,
  .footer {
    gap: 18px;
  }

  .hero,
  .page-hero {
    min-height: auto;
  }

  .quote-form,
  .contact-form,
  .shop-order-form,
  .shop-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    padding: 12px 14px;
  }

  .site-nav.open {
    max-height: calc(100vh - 86px);
    overflow-y: auto;
  }

  .section,
  .hero,
  .page-hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .quote-form,
  .contact-form,
  .shop-order-form {
    width: 100%;
  }

  .shop-products {
    grid-template-columns: 1fr;
  }

  .footer {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

.shop-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 280px);
  gap: 14px;
  align-items: end;
}

.shop-toolbar label,
.shop-order-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.shop-toolbar input,
.shop-toolbar select,
.shop-order-form input,
.shop-order-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(0,0,0,.18);
  padding: 10px 12px;
  font: inherit;
}

.shop-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.shop-product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
}

.shop-product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f4f4f4;
}

.shop-product-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.shop-product-body h3,
.shop-product-body p {
  margin: 0;
}

.shop-product-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #555;
  font-size: 13px;
}

.shop-product-price {
  color: var(--red);
  font-size: 22px;
  font-weight: 800;
}

.shop-product-actions {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  align-items: center;
}

.shop-product-actions input {
  min-height: 42px;
  border: 1px solid rgba(0,0,0,.18);
  padding: 8px;
}

.shop-order-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.shop-order-form .full-row,
.shop-order-form .estimate {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .shop-toolbar,
  .shop-product-actions {
    grid-template-columns: 1fr;
  }
}

/* ==========================
   23. Grands écrans
   Centre visuel confortable sur écrans larges.
========================== */
@media (min-width: 1440px) {
  .hero-content {
    max-width: 900px;
  }

  .section,
  .hero,
  .page-hero,
  .footer,
  .site-header {
    padding-left: max(72px, calc((100vw - 1400px) / 2));
    padding-right: max(72px, calc((100vw - 1400px) / 2));
  }
}
