/* Groupe Phénix — feuille de style partagée entre la page d'accueil (groupe-phenix.html)
   et les pages statiques générées automatiquement (machines/, catalogue/) par build/generate.mjs.
   Ne pas dupliquer ces règles dans un <style> inline : toute page du site doit charger ce fichier. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --orange: #E84800;
  --orange-light: #FFB800;
  --orange-dark: #C41E00;
  --navy: #3A3E48;
  --navy-light: #565A68;
  --gray-dark: #3A3E48;
  --gray-mid: #72767F;
  --gray-light: #F7F7F9;
  --white: #FFFFFF;
  --border: #E2E4E8;
  --font-display: 'Oswald', 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--gray-dark); background: var(--white); }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem; height: 64px;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-text { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: .08em; color: var(--white); text-transform: uppercase; }
.nav-logo-text span { color: var(--orange); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .9rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; transition: color .2s; }
.nav-links a:hover { color: var(--orange-light); }
.nav-cta { background: var(--orange); color: var(--white); padding: .5rem 1.25rem; border-radius: 4px; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; transition: background .2s; }
.nav-cta:hover { background: var(--orange-dark); color: var(--white) !important; }

/* ── HERO ── */
.hero {
  background: var(--white);
  display: flex; flex-direction: row; align-items: center; justify-content: center;
  text-align: left;
  gap: 3rem;
  padding: .5rem 2rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(232,72,0,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-logo {
  width: min(360px, 30vw); height: auto; aspect-ratio: 572 / 463;
  flex-shrink: 0;
  display: block;
  animation: logoReveal 1s cubic-bezier(.22,1,.36,1) both;
  filter: drop-shadow(0 16px 48px rgba(232,72,0,.25));
}
@keyframes logoReveal {
  from { opacity: 0; transform: scale(.72) translateY(24px); }
  to   { opacity: 1; transform: scale(1)  translateY(0); }
}
.hero-content { position: relative; z-index: 1; max-width: 560px; animation: fadeUp .9s .25s cubic-bezier(.22,1,.36,1) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-group { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); margin-bottom: 1rem; }
.hero-title { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 700; color: var(--navy); line-height: 1.05; margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: .02em; }
.hero-title em { color: var(--orange); font-style: normal; }
.hero-sub { font-size: 1.05rem; color: var(--gray-mid); line-height: 1.75; margin-bottom: 2rem; font-weight: 400; max-width: 500px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: flex-start; }
.btn-primary { background: var(--orange); color: var(--white); padding: .75rem 1.75rem; border-radius: 4px; font-weight: 600; font-size: .95rem; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; transition: background .2s; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { border: 1.5px solid var(--border); color: var(--navy); padding: .75rem 1.75rem; border-radius: 4px; font-weight: 500; font-size: .95rem; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; transition: border-color .2s, background .2s; }
.btn-outline:hover { border-color: var(--navy); background: var(--gray-light); }
.hero-visual { display: none; }

/* ── TAGLINE STRIP ── */
.strip {
  background: var(--orange);
  padding: .75rem 3rem;
  display: flex; justify-content: center; gap: 4rem;
  flex-wrap: wrap;
}
.strip-item { color: var(--white); font-family: var(--font-display); font-size: .9rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; gap: .5rem; background: none; border: none; cursor: pointer; padding: 0; transition: opacity .15s; text-decoration: none; }
.strip-item:hover { opacity: .75; }
.strip-dot { width: 6px; height: 6px; background: rgba(255,255,255,.5); border-radius: 50%; }

/* ── SECTION TITLES ── */
.section { padding: 5rem 3rem; }
#catalogue { padding-top: 2rem; }
.section-label { font-family: var(--font-display); font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); margin-bottom: .5rem; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; margin-bottom: 1rem; }
.section-desc { font-size: 1rem; color: var(--gray-mid); line-height: 1.7; max-width: 520px; }

/* ── BRANDS CARDS ── */
.brands-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.brand-card {
  border-radius: 8px; overflow: hidden;
  border: 1.5px solid var(--border);
  transition: transform .25s, box-shadow .25s;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.1); }
.brand-card-header {
  padding: 1.25rem 0.5rem .75rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative;
}
.brand-card.selection .brand-card-header { background: var(--white); border-bottom: 1px solid var(--border); }
.brand-card.harpagon .brand-card-header { background: var(--white); border-bottom: 1px solid var(--border); }
.brand-badge-selection {
  font-family: var(--font-display); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  background: var(--orange); color: var(--white); padding: .3rem .9rem; border-radius: 2px; margin-bottom: 0.5rem;
}
.brand-badge-harpagon {
  font-family: var(--font-display); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  background: var(--navy); color: var(--white); padding: .3rem .9rem; border-radius: 2px; margin-bottom: 0.5rem;
}
.brand-logo-img {
  width: min(220px, 55%); height: auto;
  display: block;
  margin: 0 auto;
}
.brand-card-body { padding: 1.25rem 2rem 1rem; flex: 1; display: flex; flex-direction: column; }
.brand-tagline { font-size: 1.1rem; font-weight: 600; color: var(--navy); margin-bottom: .75rem; }
.brand-desc { font-size: .9rem; color: var(--gray-mid); line-height: 1.65; flex: 1; }
.brand-card-footer { padding: 1rem 2rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.brand-link { font-family: var(--font-display); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.brand-card.selection .brand-link { color: var(--orange); }
.brand-card.harpagon .brand-link { color: var(--navy); }
.brand-link:hover { text-decoration: underline; }
.brand-arrow { width: 20px; height: 20px; }

/* ── UNIVERS (filtres matières) ── */
#catalogue { background: var(--gray-light); }
.filters-row { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; margin: 2rem 0 1.25rem; }
.filters-divider { width: 1px; align-self: stretch; min-height: 1.75rem; background: var(--border); }
.brand-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.brand-btn {
  font-family: var(--font-display); font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: .5rem 1.25rem; border-radius: 4px; border: 1.5px solid var(--border);
  background: var(--white); color: var(--gray-mid); cursor: pointer; transition: all .15s;
}
.brand-btn:hover { border-color: var(--navy); color: var(--navy); }
.brand-btn.active                          { background: var(--navy);   color: var(--white); border-color: var(--navy); }
.brand-btn-selection:hover                 { border-color: var(--orange); color: var(--orange); }
.brand-btn-selection.active                { background: var(--orange); color: var(--white); border-color: var(--orange); }
.brand-btn-harpagon:hover                  { border-color: var(--navy-light); color: var(--navy); }
.brand-btn-harpagon.active                 { background: var(--navy);   color: var(--white); border-color: var(--navy); }
.filter-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-btn {
  font-family: var(--font-display); font-size: .85rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: .5rem 1.1rem; border-radius: 4px; border: 1.5px solid var(--border);
  background: var(--white); color: var(--gray-mid); cursor: pointer; transition: all .15s;
  text-decoration: none; display: inline-block;
}
.filter-btn:hover, .filter-btn.active { background: var(--orange); color: var(--white); border-color: var(--orange); }
.sub-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 2rem; }
.sub-btn {
  font-size: .8rem; padding: .35rem .9rem; border-radius: 3px; border: 1px solid var(--border);
  background: var(--white); color: var(--gray-mid); cursor: pointer; transition: all .15s;
  font-weight: 500;
}
.sub-btn:hover, .sub-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ── MACHINE CARDS ── */
.machines-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 1.25rem; margin-top: 2.5rem; }
.pagination-btn {
  font-family: var(--font-display); font-size: .85rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: .6rem 1.4rem; border-radius: 4px; border: 1.5px solid var(--border);
  background: var(--white); color: var(--navy); cursor: pointer; transition: all .15s;
}
.pagination-btn:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); }
.pagination-btn:disabled { opacity: .4; cursor: not-allowed; }
.pagination-info { font-size: .85rem; color: var(--gray-mid); font-weight: 500; }
.machine-card {
  background: var(--white); border: 1.5px solid var(--border); border-radius: 6px;
  overflow: hidden; transition: transform .2s, box-shadow .2s; cursor: pointer;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.machine-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.machine-img {
  height: 200px; background: #F8F9FB;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.machine-img img { max-width: 85%; max-height: 85%; object-fit: contain; }
.machine-photo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .35s ease; z-index: 2;
}
.machine-photo.loaded { opacity: 1; }
.machine-loading-logo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: auto; aspect-ratio: 1 / 1; transition: opacity .3s ease; z-index: 1;
}
.machine-loading-logo.icon-harpagon  { height: 100px; }
.machine-loading-logo.icon-selection { height: 150px; }
.machine-loading-logo.hide { opacity: 0; }
.machine-brand-corner {
  position: absolute; top: .6rem; right: .6rem; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-end; gap: .35rem;
}
.machine-brand-tag {
  font-family: var(--font-display); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 2px; color: var(--white);
}
.tag-selection { background: var(--orange); }
.tag-harpagon { background: var(--navy); }
.machine-info { padding: 1.25rem 1.25rem 1rem; flex: 1; display: flex; flex-direction: column; }
.machine-info-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; margin-bottom: .3rem; }
.machine-brand-icon { width: auto; aspect-ratio: 1 / 1; flex-shrink: 0; }
.machine-brand-icon.icon-harpagon  { height: 30px; }
.machine-brand-icon.icon-selection { height: 46px; margin: -8px 0; }
.machine-univers { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--orange); }
.machine-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; letter-spacing: .02em; }
.machine-name a { color: inherit; text-decoration: none; }
.machine-name a:hover { text-decoration: underline; }
.machine-desc { font-size: .85rem; color: var(--gray-mid); line-height: 1.55; margin-bottom: 1rem; }
.machine-footer { padding: .9rem 1.25rem; border-top: 1px solid var(--border); display: flex; justify-content: center; align-items: center; }
.btn-devis {
  background: var(--orange); color: var(--white); padding: .45rem 1.1rem; border-radius: 3px;
  font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em;
  border: none; cursor: pointer; transition: background .15s;
}
.btn-devis:hover { background: var(--orange-dark); }
.modal-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.modal-brand img { height: 64px; width: auto; aspect-ratio: 1 / 1; }
.modal-brand img.icon-selection { height: 128px; }
.modal-brand-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); }

/* ── RAISON D'ÊTRE ── */
#raison { background: var(--navy); color: var(--white); }
#raison .section-title { color: var(--white); }
#raison .section-label { color: var(--orange-light); }
.raison-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.raison-item { padding: 2rem; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; }
.raison-num { font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: var(--orange); line-height: 1; margin-bottom: .75rem; }
.raison-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .75rem; }
.raison-text { font-size: .9rem; color: rgba(255,255,255,.55); line-height: 1.65; font-weight: 300; }

/* ── CONTACT ── */
#contact { background: var(--gray-light); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 3rem; align-items: start; }
.contact-info h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--navy); text-transform: uppercase; margin-bottom: 1rem; }
.contact-info p { font-size: .95rem; color: var(--gray-mid); line-height: 1.7; margin-bottom: 1.5rem; }
.contact-detail { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .75rem; }
.contact-detail-icon { width: 18px; height: 18px; color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.contact-detail-text { font-size: .9rem; color: var(--gray-dark); }
.contact-form { background: var(--white); padding: 2.5rem; border-radius: 8px; border: 1.5px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-dark); margin-bottom: .4rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .7rem .9rem; border: 1.5px solid var(--border); border-radius: 4px;
  font-family: var(--font-body); font-size: .9rem; color: var(--gray-dark); background: var(--white);
  transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--orange); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { width: 100%; background: var(--orange); color: var(--white); padding: .85rem; border: none; border-radius: 4px; font-family: var(--font-display); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; transition: background .15s; }
.form-submit:hover { background: var(--orange-dark); }

/* ── MODAL ── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 200; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: 8px; max-width: 680px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.modal-header { padding: 1.5rem 2rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.modal-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--navy); text-transform: uppercase; line-height: 1.2; flex: 1; min-width: 0; overflow-wrap: break-word; }
#modal .modal-header { padding: 1rem 1.5rem; justify-content: flex-end; }
.modal-close { background: none; border: none; font-size: 1.5rem; color: var(--gray-mid); cursor: pointer; line-height: 1; flex-shrink: 0; }
.modal-body { padding: 2rem; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.modal-img { background: #F8F9FB; border-radius: 6px; display: flex; align-items: center; justify-content: center; min-height: 280px; padding: 1.25rem; align-self: stretch; position: relative; }
.modal-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.modal-img svg { max-width: 100%; max-height: 100%; }
.modal-gallery-next {
  position: absolute; top: 50%; right: .75rem; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(58,62,72,.7); color: var(--white); font-size: 1.3rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .15s; z-index: 5;
}
.modal-gallery-next:hover { background: var(--orange); }
.modal-gallery-count {
  position: absolute; bottom: .75rem; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.55); color: var(--white); font-size: .75rem; font-weight: 600;
  padding: .25rem .65rem; border-radius: 10px; letter-spacing: .02em; z-index: 5;
}
.modal-info .tag { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--orange); margin-bottom: .5rem; }
.modal-info h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--navy); text-transform: uppercase; line-height: 1.2; overflow-wrap: break-word; margin-bottom: .75rem; }
.modal-info p { font-size: .9rem; color: var(--gray-mid); line-height: 1.65; margin-bottom: 1.25rem; }
.specs { border-top: 1px solid var(--border); padding-top: 1rem; }
.spec-row { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid var(--border); font-size: .85rem; }
.spec-key { color: var(--gray-mid); font-weight: 500; }
.spec-val { color: var(--gray-dark); font-weight: 600; }
.modal-footer { padding: 1.5rem 2rem; border-top: 1px solid var(--border); display: flex; gap: 1rem; }
.modal-btn-primary { flex: 1; background: var(--orange); color: var(--white); padding: .75rem; border: none; border-radius: 4px; font-family: var(--font-display); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; transition: background .15s; }
.modal-btn-primary:hover { background: var(--orange-dark); }
.modal-btn-secondary { flex: 1; background: none; color: var(--navy); padding: .75rem; border: 1.5px solid var(--border); border-radius: 4px; font-family: var(--font-display); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; transition: border-color .15s; }
.modal-btn-secondary:hover { border-color: var(--navy); }

/* ── LEGAL MODAL ── */
.legal-modal { max-width: 760px; }
.legal-body { padding: 2rem; }
.legal-body h3 {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--navy);
  text-transform: uppercase; letter-spacing: .04em; margin: 1.75rem 0 .6rem;
}
.legal-body h3:first-child { margin-top: 0; }
.legal-body p { font-size: .88rem; color: var(--gray-mid); line-height: 1.7; margin-bottom: .6rem; }
.legal-body ul { padding-left: 1.2rem; margin-bottom: .6rem; }
.legal-body li { font-size: .88rem; color: var(--gray-mid); line-height: 1.7; margin-bottom: .3rem; }
.legal-body strong { color: var(--gray-dark); font-weight: 600; }
.legal-todo { color: var(--orange); font-weight: 600; }
.legal-intro { font-size: .82rem; color: var(--gray-mid); background: var(--gray-light); border: 1px dashed var(--border); border-radius: 4px; padding: .75rem 1rem; margin-bottom: 1.5rem; }

/* ── FOOTER ── */
footer { background: #2C2E34; color: rgba(255,255,255,.5); padding: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--white); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; }
.footer-brand h3 span { color: var(--orange); }
.footer-brand p { font-size: .85rem; line-height: 1.65; }
.footer-col h4 { font-family: var(--font-display); font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.8); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: rgba(255,255,255,.5); text-decoration: none; font-size: .85rem; transition: color .15s; }
.footer-col a:hover { color: var(--orange-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; display: flex; justify-content: space-between; font-size: .8rem; }
.footer-mark { color: var(--orange); }

/* ── ACCESSIBILITÉ / SEO : contenu présent dans le DOM mais visuellement masqué ── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── BANDEAU CONSENTEMENT COOKIES ── */
.cookie-banner {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 500;
  background: var(--navy); color: rgba(255,255,255,.9);
  padding: 1.25rem 3rem; box-shadow: 0 -4px 24px rgba(0,0,0,.25);
}
.cookie-banner.show { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }
.cookie-banner-text { flex: 1; min-width: 260px; font-size: .85rem; line-height: 1.6; }
.cookie-banner-text a { color: var(--orange-light); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.cookie-btn {
  font-family: var(--font-display); font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .6rem 1.25rem; border-radius: 4px; cursor: pointer; border: 1.5px solid transparent; transition: background .15s, border-color .15s;
}
.cookie-btn-accept { background: var(--orange); color: var(--white); }
.cookie-btn-accept:hover { background: var(--orange-dark); }
.cookie-btn-refuse { background: none; color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.3); }
.cookie-btn-refuse:hover { border-color: rgba(255,255,255,.7); }
@media (max-width: 900px) {
  .cookie-banner { padding: 1rem 1.25rem; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn { flex: 1; }
}

/* ── NOTIFICATION ── */
.notif { display: none; position: fixed; bottom: 2rem; right: 2rem; background: var(--navy); color: var(--white); padding: 1rem 1.5rem; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.3); font-size: .9rem; z-index: 300; border-left: 3px solid var(--orange); }
.notif.show { display: block; animation: slideIn .3s ease; }
@keyframes slideIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

/* ── HAMBURGER & MOBILE NAV ── */
.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; margin: -8px;
  width: 40px; height: 40px; flex-shrink: 0;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--navy); z-index: 99;
  flex-direction: column; padding: 1.5rem 2rem 3rem; overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile ul { list-style: none; }
.nav-mobile ul li { border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-mobile ul a {
  display: block; padding: 1.1rem 0;
  color: var(--white); text-decoration: none;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; transition: color .15s;
}
.nav-mobile ul a:active { color: var(--orange-light); }
.nav-mobile .nav-cta { display: block; margin-top: 2rem; text-align: center; font-size: 1rem; padding: 1rem; }

/* ── PAGES STATIQUES (fiches machine / catégories univers) ── */
.page-header { background: var(--gray-light); padding: 2.5rem 3rem 2rem; }
.breadcrumb { font-size: .8rem; color: var(--gray-mid); margin-bottom: 1rem; }
.breadcrumb a { color: var(--gray-mid); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); text-decoration: underline; }
.breadcrumb span[aria-current] { color: var(--navy); font-weight: 600; }

.category-hero { background: var(--gray-light); padding: 3rem; text-align: left; }
.category-hero .section-desc { max-width: 700px; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 0 3rem 4rem; }
.category-links { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 3rem 3rem; }

.machine-detail { padding: 3rem; display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
.machine-detail-gallery { position: sticky; top: 90px; }
.machine-detail-gallery img { width: 100%; border-radius: 8px; border: 1.5px solid var(--border); margin-bottom: .75rem; }
.machine-detail-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.machine-detail-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; border: 1.5px solid var(--border); }
.machine-detail-info .tag { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--orange); margin-bottom: .5rem; display: block; }
.machine-detail-info h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--navy); text-transform: uppercase; margin-bottom: 1rem; }
.machine-detail-info p.desc { font-size: 1rem; color: var(--gray-mid); line-height: 1.75; margin-bottom: 1.5rem; }
.machine-detail-specs { border-top: 1px solid var(--border); margin-bottom: 2rem; }
.machine-detail-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.related-machines { padding: 0 3rem 4rem; }

@media (max-width: 900px) {
  .page-header, .category-hero { padding: 2rem 1.25rem 1.5rem; }
  .category-grid, .category-links, .related-machines { padding-left: 1.25rem; padding-right: 1.25rem; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .machine-detail { padding: 2rem 1.25rem; grid-template-columns: 1fr; }
  .machine-detail-gallery { position: static; }
}

/* ── SMALL DESKTOP (≤ 1100px) ── */
@media (max-width: 1100px) {
  .machines-grid, .category-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── TABLET (≤ 900px) ── */
@media (max-width: 900px) {
  nav { padding: 0 1.25rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }

  .section { padding: 3rem 1.25rem; }
  #catalogue { padding-top: 1.5rem; }
  .brands-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .raison-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 2rem; }
  .machines-grid { grid-template-columns: repeat(2, 1fr); }

  .hero { flex-direction: column; text-align: center; padding: 1.5rem 1.25rem 2rem; gap: .5rem; }
  .hero-logo { width: min(320px, 60vw); }
  .hero-content { text-align: center; max-width: 600px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { display: none; }

  .form-row { grid-template-columns: 1fr; }
  .strip { padding: .6rem 1.25rem; gap: 1rem 2.5rem; }
}

/* ── MOBILE (≤ 480px) ── */
@media (max-width: 480px) {
  .hero { padding: 1rem 1rem 1.5rem; }
  .hero-logo { width: min(260px, 55vw); }
  .hero-group { font-size: .85rem; letter-spacing: .1em; }
  .hero-title { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .hero-sub { font-size: .95rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn-primary, .hero-buttons .btn-outline { text-align: center; }

  .strip { display: grid; grid-template-columns: 1fr 1fr; justify-items: start; padding: .85rem 1.25rem; gap: .65rem 1rem; }
  .strip-item { font-size: .78rem; }

  .section { padding: 2.5rem 1rem; }
  #catalogue { padding-top: 1.25rem; }
  .section-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .raison-grid { grid-template-columns: 1fr; }
  .raison-item { padding: 1.25rem; }

  .brand-card-body { padding: 1.25rem 1.25rem 1rem; }
  .brand-card-footer { padding: 1rem 1.25rem; }

  .machines-grid, .category-grid { grid-template-columns: 1fr; }
  .machine-card:hover { transform: none; box-shadow: none; }
  .btn-devis { width: 100%; padding: .65rem; }
  .machine-footer { padding: .75rem 1rem; }

  .pagination { flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
  .pagination-info { order: -1; flex-basis: 100%; text-align: center; }
  .pagination-btn { flex: 1; padding: .6rem .8rem; font-size: .78rem; }

  .modal { border-radius: 8px 8px 0 0; position: fixed; bottom: 0; left: 0; right: 0; max-width: 100%; max-height: 92vh; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-header { padding: 1.25rem 1.25rem; }
  .modal-body { padding: 1.25rem; gap: 1.25rem; }
  .modal-footer { padding: 1rem 1.25rem; }
  .legal-body { padding: 1.25rem; }
  .legal-body h3 { margin: 1.5rem 0 .5rem; }

  .contact-form { padding: 1.5rem 1.25rem; }
  .filter-nav, .sub-filters { gap: .35rem; }
  .filters-divider { display: none; }
  .filter-btn { font-size: .78rem; padding: .4rem .85rem; }
  .sub-btn { font-size: .75rem; padding: .3rem .75rem; }
  .brand-filters { gap: .4rem; }
  .brand-btn { font-size: .78rem; padding: .4rem .9rem; }

  .notif { left: 1rem; right: 1rem; bottom: 1rem; }
  footer { padding: 2rem 1.25rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}
