/* =========================================================
   SIFRANCE — Pages intérieures
   (chargé après style.css, ne modifie pas la page d'accueil)
   ========================================================= */

/* Le petit logo d'en-tête est toujours visible sur les pages intérieures */
.page-inner .header-logo { opacity: 1; pointer-events: auto; }

/* ---------- Hero de page ---------- */
.page-hero {
  position: relative;
  min-height: min(68vh, 600px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.page-hero .hero-bg { background-position: center; }
.page-hero .hero-shade {
  background:
    linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.6) 40%, rgba(0,0,0,.1) 80%),
    linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 45%),
    linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 25%);
}
.page-hero .hero-content { padding-top: calc(var(--header-h) + 60px); padding-bottom: 70px; }
.page-hero .hero-title { margin-bottom: 14px; }
.page-hero .hero-sub { margin: 0; max-width: 520px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current] { color: var(--white); }

/* ---------- Petits utilitaires ---------- */
.eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead { font-size: 15px; }
.prose p { margin: 0 0 16px; font-size: 14px; text-align: justify; hyphens: auto; }
.section--tight { padding-top: 0; }
.center { text-align: center; }
.mt-btn { margin-top: 12px; }

/* ---------- Bloc image + texte ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}
.split--reverse .split-media { order: 2; }
.split-media { position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.split-media:hover img { transform: scale(1.04); }
.split-media--frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,.55);
  pointer-events: none;
}

/* ---------- Chiffres clés ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.15);
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.stats li { padding: 34px 16px; text-align: center; }
.stats li + li { border-left: 1px solid rgba(255,255,255,.15); }
.stats strong {
  display: block;
  font-weight: 200;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  margin-bottom: 10px;
}
.stats span { font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Grille de points forts ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature {
  padding: 30px 24px 26px;
  border: 1px solid rgba(255,255,255,.18);
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.feature:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.03); }
.feature-num { display: block; font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.feature h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--white);
}
.feature p { margin: 0; font-size: 13px; }
.features--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Univers produits ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.15);
  border-left: 1px solid rgba(255,255,255,.15);
}
.product {
  padding: 30px 26px;
  border-right: 1px solid rgba(255,255,255,.15);
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.product h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
}
.product p { margin: 0; font-size: 13px; }
.products--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Listes à puces fines ---------- */
.ticks { margin: 0 0 24px; }
.ticks li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 13.5px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--white);
}

/* ---------- Rangées de solutions ---------- */
.rows { display: grid; gap: clamp(60px, 8vw, 110px); }
.row-num { display: block; font-weight: 200; font-size: 64px; line-height: 1; color: rgba(255,255,255,.22); margin-bottom: 8px; }

/* ---------- Étapes ---------- */
.steps { counter-reset: step; }

/* ---------- Cartes « autres solutions » ---------- */
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin: 0 auto; }

/* ---------- Bandeau centré ---------- */
.band--center .band-shade { background: rgba(0,0,0,.62); }
.band--center .band-content { text-align: center; }
.band--center .band-content > * { margin-left: auto; margin-right: auto; max-width: 620px; }
.band--center .band-content p { text-align: center; }
.band--short { min-height: 420px; }

/* =========================================================
   ACTUALITÉS
   ========================================================= */
.news-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border: 1px solid rgba(255,255,255,.25);
}
.news-featured .news-media { min-height: 100%; position: relative; overflow: hidden; }
.news-featured .news-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-featured .news-body { padding: clamp(28px, 4vw, 50px); }

.badge {
  display: inline-block;
  padding: 5px 10px;
  margin-bottom: 18px;
  border: 1px solid var(--white);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
}
.badge--solid { background: var(--white); color: var(--black); }

.news-meta { margin: 0 0 12px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.news-title {
  margin: 0 0 16px;
  font-weight: 200;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--white);
}
.news-body p { margin: 0 0 14px; font-size: 13.5px; }

.event-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 24px 0; background: rgba(255,255,255,.15); }
.event-facts div { padding: 14px 16px; background: var(--black); }
.event-facts dt { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.event-facts dd { margin: 0; font-size: 13px; color: var(--white); line-height: 1.45; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 22px; }
.news-card { display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.18); transition: border-color .4s var(--ease); }
.news-card:hover { border-color: rgba(255,255,255,.7); }
.news-card .news-media { aspect-ratio: 16 / 10; overflow: hidden; }
.news-card .news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-card:hover .news-media img { transform: scale(1.06); }
.news-card .news-body { padding: 24px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.news-card .news-title { font-size: 19px; }
.news-card .btn { margin-top: auto; align-self: flex-start; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-list li { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-list li:first-child { border-top: 1px solid rgba(255,255,255,.12); }
.contact-list .label { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-list a,
.contact-list address { font-style: normal; font-size: 16px; font-weight: 300; color: var(--white); line-height: 1.5; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-note { margin-top: 24px; font-size: 13px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--white); }
.field label .opt { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 0;
  color: var(--white);
  font: inherit;
  font-size: 14px;
  transition: border-color .3s var(--ease);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23fff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 9px;
  padding-right: 36px;
}
.field select option { background: #111; color: #fff; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--white); }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #e07a6a; }
.field-error { font-size: 12px; color: #e9a296; min-height: 0; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 12.5px; line-height: 1.55; }
.check input { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; accent-color: #fff; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-actions .btn { cursor: pointer; background: transparent; font-family: inherit; }
.form-status { margin: 0; font-size: 13px; }
.form-status.is-success { color: #b9d8b4; }

.map {
  position: relative;
  height: 420px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(.92) contrast(.9);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .features,
  .products--4 { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.15); }
}

@media (max-width: 860px) {
  .split,
  .news-featured,
  .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .split-media { aspect-ratio: 16 / 11; }
  .news-featured .news-media { min-height: 0; aspect-ratio: 16 / 10; }
  .features--3 { grid-template-columns: 1fr; }
  .page-hero { min-height: 460px; }
}

@media (max-width: 560px) {
  .features,
  .products,
  .products--4,
  .news-grid,
  .cards--3,
  .cards--2,
  .form,
  .event-facts { grid-template-columns: 1fr; }
  .prose p { text-align: left; }
  .row-num { font-size: 48px; }
  .map { height: 320px; }
}

/* =========================================================
   GAMMES & FICHES PRODUITS
   ========================================================= */
/* Cartes de gammes sur les pages secteurs */
.cards--5 { grid-template-columns: repeat(5, 1fr); }
.card-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  opacity: .8;
}

/* Hero compact */
.page-hero--compact { min-height: min(52vh, 460px); }
.page-hero--compact .hero-content { padding-bottom: 50px; }

/* En-tête de catalogue */
.catalog { padding-top: clamp(40px, 5vw, 60px); }
.catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}
.catalog-head .lead { margin: 0; max-width: 640px; }
.catalog-head .btn { flex-shrink: 0; }

/* Navigation entre gammes */
.cat-nav { margin-bottom: 40px; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.cat-nav ul { display: flex; flex-wrap: wrap; gap: 6px 4px; padding: 14px 0; }
.cat-nav a {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.cat-nav a:hover { color: var(--white); }
.cat-nav a.is-active { color: var(--white); border-color: rgba(255,255,255,.7); }

/* Grille de produits */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 20px;
}
.product-card { display: flex; flex-direction: column; }
.product-sheet {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 10px;
  background: #f4f2ee;
  border: 0;
  cursor: zoom-in;
  overflow: hidden;
}
.product-sheet img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .6s var(--ease);
}
.product-sheet:hover img { transform: scale(1.04); }
.product-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--black);
  color: var(--white);
  font-size: 20px;
  font-weight: 200;
  line-height: 1;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.product-sheet:hover .product-zoom,
.product-sheet:focus-visible .product-zoom { opacity: 1; transform: none; }
.product-info { padding-top: 14px; }
.product-info h2 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .05em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--white);
}
.product-info a { font-size: 12px; color: var(--muted); }
.product-info a:hover { color: var(--white); }

/* Précédent / suivant */
.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.pager a { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--white); }
.pager a span { display: block; margin-bottom: 4px; font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.pager a:hover { opacity: .7; }
.pager-next { text-align: right; }
.pager-all { padding: 10px 16px; border: 1px solid rgba(255,255,255,.5); font-size: 11px !important; }

/* Visionneuse */
.lightbox {
  width: min(92vw, 900px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  overflow: visible;
}
.lightbox::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(4px); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lightbox img { max-width: 100%; max-height: calc(92vh - 90px); object-fit: contain; background: #f4f2ee; }
.lightbox figcaption { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }
.lightbox-title { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(255,255,255,.5);
  color: var(--white);
  font-size: 24px;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--white); color: var(--black); }

@media (max-width: 1080px) {
  .cards--5 { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .catalog-head { flex-direction: column; align-items: flex-start; }
  .cards--5,
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox-close { top: 8px; right: 8px; background: rgba(0,0,0,.6); }
  .lightbox figcaption { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .cards--5 { grid-template-columns: 1fr; }
  .product-grid { gap: 22px 12px; }
  .product-info h2 { font-size: 11.5px; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager-all { grid-column: 1 / -1; grid-row: 2; text-align: center; }
}

/* =========================================================
   FRISE CHRONOLOGIQUE (À propos)
   ========================================================= */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 170px;
  width: 1px;
  background: rgba(255,255,255,.2);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 0 48px;
  padding: 0 0 46px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 165px;
  width: 11px;
  height: 11px;
  border: 1px solid var(--white);
  border-radius: 50%;
  background: var(--black);
}
.timeline-item:last-child::before { background: var(--white); }
.timeline-year {
  padding-right: 30px;
  text-align: right;
  font-weight: 200;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.1;
  color: var(--white);
}
.timeline-body h3 {
  margin: 4px 0 10px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
}
.timeline-body p { margin: 0; font-size: 14px; }

@media (max-width: 560px) {
  .timeline::before { left: 5px; }
  .timeline-item { grid-template-columns: 1fr; padding-left: 32px; padding-bottom: 36px; }
  .timeline-item::before { left: 0; top: 10px; }
  .timeline-year { padding: 0 0 6px; text-align: left; font-size: 26px; }
}
