/*
Theme Name: Renau Theme
Theme URI: https://convoyeurs-renau.fr
Author: Tom
Description: Theme custom Renau Transportadors - blocs Gutenberg + SCF
Version: 1.0.1
License: GPL v2 or later
Text Domain: renau
*/

:root {
  --renau-blue: #0a3d5a;
  --renau-orange: #f47920;
  --font-body: 'Inter', sans-serif;
}

body { font-family: var(--font-body); }
/* ────────── Renau theme — templates CPT ────────── */

:root {
  --renau-blue: #0a3d5a;
  --renau-orange: #f47920;
  --gray-light: #f5f5f5;
}

/* ── Hero modèle ── */
.modele-hero {
  background: linear-gradient(135deg, var(--renau-blue) 0%, #0c4a6e 100%);
  color: #fff;
  padding: 4rem 2rem 3rem;
  text-align: center;
}
.modele-breadcrumb {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}
.modele-breadcrumb a {
  color: #fff;
  text-decoration: underline;
  margin-right: 0.25rem;
}
.modele-hero h1 {
  font-size: 2.5rem;
  margin: 0 0 1rem;
}
.modele-desc {
  font-size: 1.1rem;
  max-width: 50rem;
  margin: 0 auto 1.5rem;
}
.modele-ref {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1rem 0;
}
.modele-ref span {
  color: var(--renau-orange);
}
.btn-cta {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--renau-orange);
  color: #fff;
  text-decoration: none;
  border-radius: 0.25rem;
  font-weight: 600;
  transition: opacity 0.2s;
}
.btn-cta:hover { opacity: 0.9; }

/* ── Layout 2 colonnes ── */
.modele-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  max-width: 80rem;
  margin: 3rem auto;
  padding: 0 2rem;
}
@media (max-width: 56.25rem) {
  .modele-layout { grid-template-columns: 1fr; }
}

.fiche-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--gray-light);
  border-radius: 0.25rem;
  overflow: hidden;
}
.fiche-table tr { border-bottom: 0.0625rem solid #fff; }
.fiche-table th,
.fiche-table td {
  padding: 0.75rem 1rem;
  text-align: left;
}
.fiche-table th {
  width: 45%;
  font-weight: 600;
  color: #333;
  background: #ebebeb;
}
.fiche-notes {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}
.fiche-note { margin: 0.25rem 0; }

/* ── Documents + accessoires ── */
.modele-docs ul,
.accessoires-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.modele-docs a,
.accessoires-list li {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gray-light);
  border-radius: 0.25rem;
  text-decoration: none;
  color: var(--renau-blue);
  font-size: 0.875rem;
}

/* ── Configurateur (sticky right) ── */
.modele-config {
  position: sticky;
  top: 2rem;
  align-self: start;
  background: #fff;
  border: 0.0625rem solid #e5e5e5;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.05);
}
.config-section { margin-bottom: 1.5rem; }
.config-section h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}
.config-options {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.config-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background 0.15s;
}
.config-option:hover { background: var(--gray-light); }
.config-option input { accent-color: var(--renau-orange); }

/* ── CTA bas ── */
.modele-cta {
  background: var(--gray-light);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 3rem;
}

/* ── Archive familles ── */
.famille-archive { max-width: 80rem; margin: 0 auto; padding: 2rem; }
.famille-archive__hero { padding: 3rem 0; text-align: center; }
.famille-archive__hero h1 { color: var(--renau-blue); font-size: 2.5rem; }
.famille-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.5rem;
}
.famille-card {
  display: block;
  background: var(--gray-light);
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--renau-blue);
  transition: transform 0.2s, box-shadow 0.2s;
}
.famille-card:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.5rem 1.25rem rgba(0,0,0,0.1);
}
.famille-card img { width: 100%; height: auto; border-radius: 0.25rem; }

/* ── Single famille (liste modèles) ── */
.famille-single { max-width: 80rem; margin: 0 auto; padding: 2rem; }
.famille-hero { padding: 3rem 0; text-align: center; }
.famille-hero h1 { color: var(--renau-blue); font-size: 2.5rem; }
.famille-desc { color: #444; }
.famille-group { margin: 2rem 0; }
.modele-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  gap: 1rem;
}
.modele-list li {
  background: var(--gray-light);
  border-radius: 0.25rem;
}
.modele-list a {
  display: block;
  padding: 1rem;
  color: var(--renau-blue);
  text-decoration: none;
  font-weight: 500;
}
.modele-list a:hover { background: #e5e5e5; }

/* ── Hero avec image ── */
.modele-hero { background-size: cover; background-position: center; min-height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }

/* ── Image principale modèle ── */
.modele-image { margin: 2rem 0; text-align: center; }
.modele-image img { max-width: 100%; height: auto; border-radius: 0.5rem; box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.1); }

/* ── Docs icon ── */
.doc-icon { font-size: 1.25rem; margin-right: 0.25rem; }

/* ── Hero page ── */
.renau-hero-page { background-size: cover; background-position: center; color: #fff; min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 4rem 2rem; }
.renau-hero-page__inner { max-width: 56.25rem; text-align: center; }
.renau-hero-page__slogan { text-transform: uppercase; letter-spacing: 0.1875rem; font-size: 0.875rem; opacity: 0.9; margin-bottom: 1rem; color: var(--renau-orange); }
.renau-hero-page__title { font-size: 3rem; margin: 0 0 1rem; line-height: 1.15; }
.renau-hero-page__subtitle { font-size: 1.25rem; margin: 0 0 2rem; opacity: 0.95; }

/* ── Text section ── */
.renau-text-section { padding: 4rem 2rem; }
.renau-text-section--centered { text-align: center; }
.renau-text-section--gray { background: var(--gray-light); }
.renau-text-section__inner { max-width: 68.75rem; margin: 0 auto; }
.renau-text-section__title { color: var(--renau-blue); font-size: 2rem; margin: 0 0 1.5rem; }
.renau-text-section__content { font-size: 1.05rem; line-height: 1.7; }

/* ── Numbers ── */
.renau-numbers { color: #fff; padding: 4rem 2rem; }
.renau-numbers__grid { max-width: 75rem; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(11.25rem, 1fr)); gap: 2rem; text-align: center; }
.renau-numbers__num { font-size: 3rem; font-weight: 700; color: var(--renau-orange); line-height: 1; }
.renau-numbers__label { margin-top: 0.5rem; font-size: 0.95rem; }

/* ── Cards grid ── */
.renau-cards-grid { padding: 4rem 2rem; max-width: 80rem; margin: 0 auto; }
.renau-cards-grid__title { color: var(--renau-blue); font-size: 2rem; text-align: center; margin-bottom: 3rem; }
.renau-cards-grid__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 2rem; }
.renau-card { background: #fff; border-radius: 0.5rem; padding: 1.5rem; box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.06); transition: transform 0.2s; }
.renau-card:hover { transform: translateY(-0.25rem); }
.renau-card img { width: 100%; height: 11.25rem; object-fit: cover; border-radius: 0.25rem; margin-bottom: 1rem; }
.renau-card__title { color: var(--renau-blue); margin: 0 0 0.5rem; font-size: 1.15rem; }
.renau-card__desc { color: #444; line-height: 1.6; margin: 0; }

/* ─────────── Renau Header (pixel-perfect prod) ─────────── */
:root { --Renau: #D30000; }

#MainHeader {
    display: flex;
    justify-content: center;
    width: 100vw;
    height: 6.25rem;
    z-index: 1000;
    font-family: Inter, system-ui, -apple-system, sans-serif;
}
#MainHeader nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    width: 100vw;
    height: 6.25rem;
    border-bottom: 0.0625rem solid rgba(22, 22, 22, 0.05);
    background: #FFF;
    box-shadow: 0 0 2.5rem -0.375rem rgba(0, 0, 0, 0.25);
    z-index: 1000;
}
body.admin-bar #MainHeader nav { top: 2rem; }
@media (max-width: 48.875rem) { body.admin-bar #MainHeader nav { top: 2.875rem; } }

#MainHeader nav .container {
    width: 74.5rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#MainHeader nav .container > a img { height: 2rem; width: auto; display: block; }

#MainHeader nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}
#MainHeader nav ul li { display: flex; align-items: center; }
#MainHeader nav a {
    display: flex;
    color: #161616;
    text-decoration: none;
    font-family: Inter, system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.25rem;
}
#MainHeader nav a:hover { color: var(--Renau); }

/* Bouton Contacter */
.btn-small {
    padding: 0.75rem 1rem;
    border-radius: 6.25rem;
    border: 0;
    cursor: pointer;
    font-family: Inter, system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.25rem;
    color: #FFF;
}
button.btn-red, .btn-red, .btn-medium.btn-red, button.btn-medium.btn-red {
    background: var(--Renau);
    color: #FFF;
}
button.btn-red:hover, .btn-red:hover, .btn-medium.btn-red:hover, button.btn-medium.btn-red:hover { background: #a40e26; }

/* Flags dropdown */
.NavFlag { align-items: flex-start !important;
    display: flex;
    justify-content: center;
    width: 1.5rem;
    height: 1rem;
    overflow: hidden;
}
.NavFlag:hover { overflow: initial; }
.containerFlag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background-color: #FFF;
    height: fit-content;
    width: 100%;
    border-radius: 0.125rem;
    padding-bottom: 0.25rem;
}
.NavFlag a { padding: 0; display: block; }
.NavFlag img { height: 1rem !important;
    cursor: pointer;
    width: 1rem;
    height: auto;
    display: block;
}

/* Responsive menu (burger + flags) */
.NavFlag-responsive { display: none !important; }
.responsive-menu {
    display: none !important;
    gap: 1rem;
    align-items: center;
}
.responsive-menu li { list-style: none; display: flex; align-items: center; }
.responsive-menu .burger { cursor: pointer; z-index: 10000; }
.burger { display: none; }

.responsive-nav {
    position: fixed;
    right: 0;
    display: flex;
    flex-direction: column;
    width: 100vw;
    top: 6.25rem;
    height: calc(100vh - 6.25rem);
    background-color: #FFF;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 500ms ease-in-out;
}
.responsive-nav.open { transform: translateX(0); }
.responsive-nav ul {
    width: 100%;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}
.responsive-nav li {
    display: flex;
    width: 100%;
    height: 20%;
    background-color: #FFF;
    cursor: pointer;
    transition: all 300ms ease-in;
}
.responsive-nav li a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: #161616;
    text-decoration: none;
}
.responsive-nav li:hover { background-color: var(--Renau); }
.responsive-nav li:hover a { color: #FFF; transition: all 300ms ease-in; }

@media (max-width: 74.5rem) {
    #MainHeader nav .container { width: 100%; padding: 0 1.5rem; }
}
@media (max-width: 70.5rem) {
    #MainHeader nav ul { display: none !important; }
    .NavFlag-responsive { display: flex !important; }
    .burger { display: block; }
    .responsive-menu { display: flex !important; }
}

.container { width: 74.5rem; max-width: 100%; margin: 0 auto; }
@media (max-width: 74.5rem) { .container { width: 100%; padding-left: 1.5rem; padding-right: 1.5rem; box-sizing: border-box; } }

/* ─────────── Renau Footer (pixel-perfect prod) ─────────── */
footer.container {
    padding-top: 4rem;
    border-top: 0.0625rem solid rgba(22, 22, 22, 0.05);
    font-family: Inter, system-ui, sans-serif;
    color: #161616;
    background: #FFF;
    margin-top: 0;
}
footer.container a {
    color: #161616;
    text-decoration: none;
    font-family: Inter, system-ui, sans-serif;
}
footer.container a:hover { color: var(--Renau, #D30000); }

footer.container > span {
    display: block;
    height: 0.0625rem;
    width: 100%;
    background: rgba(22, 22, 22, 0.05);
    margin-top: 4rem !important;
}

.FooterCoorLink {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}
.FooterCoor {
    display: flex;
    flex-direction: column;
}
.FooterCoor > a img { height: 2rem; width: auto; display: block; }
.FooterCoor > a.mt-32 { margin-top: 2rem; line-height: 1.5; }

#InfoContact { display: flex; }
#InfoContact > div { width: 100%; }
#InfoContact ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}
#InfoContact li {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
}
#InfoContact li.mt-16 p {
    margin: 0 0 0.5rem;
    font-weight: bold;
}
#InfoContact li a {
    width: fit-content;
    line-height: 1.5;
}

.FooterLink {
    display: flex;
    gap: 7.75rem;
}
.FooterLink ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.FooterLink ul p {
    margin: 0;
}
.FooterLink ul p strong { font-weight: 700; }
.FooterLink .actualite a {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 15rem;
}

.mt-4  { margin-top: 0.25rem; }
.mt-16 { margin-top: 1rem; }
.mt-32 { margin-top: 2rem; }
.mt-64 { margin-top: 4rem !important; }

.CopyrightDroit {
    display: flex;
    justify-content: space-between;
    padding: 2rem 0;
}
.CopyrightDroit p {
    color: #161616;
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
}
.CopyrightDroit ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.CopyrightDroit a {
    color: #161616;
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
}

@media (max-width: 74.5rem) {
    footer.container { width: 100%; padding-left: 1.5rem; padding-right: 1.5rem; box-sizing: border-box; }
    .FooterLink { gap: 4rem; }
}
@media (max-width: 56.25rem) {
    .FooterCoorLink { flex-direction: column; }
    .FooterLink { flex-wrap: wrap; gap: 2rem; }
}
@media (max-width: 37.5rem) {
    .CopyrightDroit { flex-direction: column-reverse; align-items: center; gap: 1rem; padding: 1rem 0; }
    .CopyrightDroit p, .CopyrightDroit ul { width: fit-content; }
}

/* === Global utilities ported from Next prod === */
.mt-4 { margin-top: 0.25rem; }
.mt-8 { margin-top: 0.5rem; }
.mt-12 { margin-top: 0.75rem; }
.mt-16 { margin-top: 1rem; }
.mt-20 { margin-top: 1.25rem; }
.mt-24 { margin-top: 1.5rem; }
.mt-32 { margin-top: 2rem; }
.mt-40 { margin-top: 2.5rem; }
.mt-64 { margin-top: 4rem; }
.mt-96 { margin-top: 6rem; }
.mt-124 { margin-top: 7.75rem !important; }
.mb-16 { margin-bottom: 1rem; }
.mb-32 { margin-bottom: 2rem; }
.mb-64 { margin-bottom: 4rem !important; }
.mb-124 { margin-bottom: 7.75rem !important; }
.my-64 { margin-top: 4rem; margin-bottom: 4rem; }
.text-color-white { color: #fff !important; }

button.btn-medium, .btn-medium {
    color: #fff;
    font-family: Inter;
    font-size: 1rem;
    line-height: 1.25rem;
    border: 0;
    border-radius: 6.25rem;
    cursor: pointer;
    padding: 1rem 2rem;
    background: none;
}
button.btn-small, .btn-small { padding: 0.75rem 1rem; border-radius: 6.25rem; cursor: pointer; border: 0; font-family: Inter; font-size: 1rem; line-height: 1.25rem; }
.btn-whiteborder {
    background: none !important;
    border: solid 0.0625rem #fff !important;
    color: #fff !important;
}
/* ────────── Famille archive — pixel-perfect prod ────────── */
#FamilleHeroBanner{
    display: flex;
    align-items: center;
    height: 50vh;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
#FamilleHeroBanner h1,
#FamilleHeroBanner h2,
#FamilleHeroBanner h3{ color: #FFF; }
#FamilleHeroBanner h1{
    font-family: Inter;
    font-size: 3rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0;
}
#FamilleHeroBanner > .container{ position: static; z-index: 2; }
#FamilleHeroBanner p{
    color: #FFF;
    font-family: Inter;
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.5rem;
    max-width: 36.25rem;
}
#FamilleHeroBanner .navigation{
    display: flex;
    position: absolute;
    top: 3.4375rem;
    gap: 0.5rem;
}
#FamilleHeroBanner .navigation a,
#FamilleHeroBanner .navigation p{
    color: #FFF;
    font-family: Inter;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
    margin: 0;
}
#FamilleHeroBanner .cards{
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}
#FamilleHeroBanner .card{
    padding: 0.5rem 1.125rem;
    display: flex;
    gap: 0.5rem;
    font-size: 1rem;
    border: solid 0.0625rem white;
    background: #D30000;
    border-radius: 6.25rem;
    text-decoration: none;
    align-items: center;
}
#FamilleHeroBanner .card img{
    position: unset;
    z-index: 1;
    width: 1.25rem;
    height: 1.25rem;
}
#FamilleHeroBanner .card p{
    color: white;
    margin: 0;
}

/* ── ListFamille ── */
#ListFamille .cards{
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}
#ListFamille .card{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: calc(25% - 0.9375rem);
    object-fit: cover;
    overflow: hidden;
    min-width: 15.625rem;
    border-radius: 1rem;
    aspect-ratio: 1 / 1;
    text-decoration: none;
}
#ListFamille .card p {
    position: absolute;
    color: #FFF;
    font-family: Inter;
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    bottom: 1rem;
    width: 100%;
    text-align: center;
    margin: 0;
    z-index: 2;
}
#ListFamille .card img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all ease-in 300ms;
}
#ListFamille .card:hover img{
    width: 120%;
}

/* ── Responsive ── */
@media (max-width: 64rem){
    #ListFamille .card{ width: calc(33.3333333% - 0.875rem); }
}
@media (max-width: 53.75rem){
    #ListFamille .card{ width: calc(50% - 0.625rem); }
}
@media (max-width: 48rem){
    #FamilleHeroBanner p{ max-width: 100%; }
    #FamilleHeroBanner > div > div:nth-child(2){ width: 100%; }
    #FamilleHeroBanner a{ font-size: 0.875rem; }
}
@media (max-width: 30rem){
    #ListFamille .card{ width: 100%; }
}
@media (max-height: 46.875rem){
    #FamilleHeroBanner{
        height: auto;
        padding: 6rem 0;
    }
}

/* ── Single famille — ProductList groupings ── */
#ListFamille h3{
    font-size: 1.5rem;
    font-family: Inter;
    font-weight: 600;
    color: #161616;
    margin-bottom: 1rem;
}
#ListFamille h5{
    font-size: 1.125rem;
    font-family: Inter;
    font-weight: 500;
    color: #D30000;
}
#FamilleHeroBanner .famille-desc{
    color: #FFF;
    font-family: Inter;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5rem;
    max-width: 36.25rem;
}
#FamilleHeroBanner .famille-desc p{
    color: #FFF;
    font-family: Inter;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5rem;
    max-width: 36.25rem;
    margin: 0;
}

/* ── Single modele hero — full viewport variant ── */
#FamilleHeroBanner.productSheet-hero{
    height: calc(100vh - 6.25rem);
}
#FamilleHeroBanner .modele-ref{
    color: #FFF;
    font-family: Inter;
    font-size: 1rem;
    font-weight: 500;
}
#FamilleHeroBanner .modele-ref span{
    color: #FFF;
    font-weight: 700;
}

/* ── Single modele — Technical + Sticky-Selection ── */
#Technical-Conveyor ul,
#Technical-Conveyor ol,
#Technical-Conveyor li{
    margin: 0;
    padding: 0;
    list-style: none;
}
#Technical-Conveyor{
    display: flex;
    gap: 1.6875rem;
    align-items: flex-start;
}
#Technical-Conveyor > div:first-child{
    width: 55.5rem;
    max-width: 55.5rem;
    flex: 0 0 auto;
}
#Product-Visual{
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
}
#Product-Visual #MainScene{
    width: 100%;
    height: 31.375rem;
    max-height: 31.375rem;
}
#Product-Visual #MainScene img{
    border-radius: 0.5rem;
    object-fit: cover;
    width: 100% !important;
    height: 31.375rem !important;
}
#Container-Selection{
    display: flex;
    flex-direction: column;
    width: 25%;
    align-self: stretch;
    overflow: visible !important;
    position: relative;
}
#Sticky-Selection{
    background-color: #f9eded;
    border-radius: 0.5rem;
    gap: 1.5rem;
    min-height: 6.25rem;
    min-width: 15.625rem;
    padding: 1rem;
    position: -webkit-sticky;
    position: sticky;
    top: 8.75rem;
}
#Sticky-Selection,
#Sticky-Selection > div{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
#Sticky-Selection > div > p{
    color: #D30000;
    font-family: Inter;
    font-size: 1rem;
    font-weight: 600;
    line-height: normal;
    margin: 0;
}
#Sticky-Selection ul{
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 0;
    width: 100%;
    list-style: none;
    padding: 0;
}
#Sticky-Selection li{
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0.5rem 0;
    background: white;
    border-radius: 0.25rem;
    cursor: pointer;
    font-family: Inter;
    font-size: 0.875rem;
}
#Sticky-Selection li.active{
    background: #D30000;
    color: white;
}
#Sticky-Selection li p{
    pointer-events: none;
    margin: 0;
    font-family: Inter;
    font-size: 1rem;
    font-weight: 400;
    line-height: normal;
}

#Container-technique ul{
    list-style: none;
    padding: 0;
}
#Container-technique ul li{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem 0;
    margin-top: 0;
}
#Container-technique table{
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
    margin-top: 1rem;
}
#Container-technique tbody td{
    border: 0.0625rem solid #ddd;
    font-size: 0.875rem;
    padding: 1rem;
    font-weight: 500;
}
#Container-technique tbody td:nth-child(odd){
    background: #f8f8f8;
    font-weight: 400;
}
#Container-technique td::first-letter{
    text-transform: capitalize;
}
.text-color-red{ color: #D30000; }

#Files-List ul{
    list-style: none;
    padding: 0;
}
#Files-List li a{
    color: #D30000;
    text-decoration: none;
    font-family: Inter;
    font-size: 0.875rem;
}

@media (max-width: 64rem){
    #Technical-Conveyor{ flex-direction: column; }
    #Container-Selection{ width: 100%; }
    #Sticky-Selection{ position: relative; top: 0; }
}

/* ── Company hero — nav position fix (sibling to container) ── */
#FamilleHeroBanner.compagny .navigation{
    position: absolute;
    top: 3.4375rem;
    left: 50%;
    transform: translateX(-50%);
    width: 74.5rem;
    max-width: calc(100% - 2rem);
    z-index: 3;
}

/* ────────── Blog single — pixel-perfect prod ────────── */
#FamilleHeroBanner.blog-single-hero > .container{ position: static; }
#FamilleHeroBanner.blog-single-hero h1{
    color: #fff;
    font-family: Inter;
    font-weight: 700;
    font-size: 3rem;
    line-height: normal;
    margin: 0;
}
#FamilleHeroBanner.blog-single-hero p{
    color: #fff;
    font-family: Inter;
    font-size: 1rem;
    font-weight: 500;
}

/* Article body + aside layout */
#Article{
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}
#Article .contenu p{
    font-family: Inter;
    font-size: 1rem;
    font-weight: 400;
    color: #161616;
    line-height: 1.6;
    margin-top: 1rem;
}
#Article .contenu .btn-red,
#Article .contenu button{
    display: inline-block;
    margin-top: 2.5rem;
    background: #D30000;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6.25rem;
    font-family: Inter;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

/* Aside listing */
#Article aside{
    position: sticky;
    top: 8.75rem;
    background: #f9eded;
    border-radius: 0.5rem;
    padding: 1.5rem;
}
#Article aside ul{
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}
#Article aside li{
    padding: 0.75rem 0;
    border-bottom: 0.0625rem solid rgba(0,0,0,0.08);
}
#Article aside li:last-child{ border-bottom: none; }
#Article aside li a{
    color: #161616;
    text-decoration: none;
    font-family: Inter;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    transition: color 200ms ease;
}
#Article aside li a:hover{ color: #D30000; }

@media (max-width: 64rem){
    #Article{ grid-template-columns: 1fr; gap: 2.5rem; }
    #Article aside{ position: relative; top: 0; }
}
@media (max-width: 48rem){
    #FamilleHeroBanner.blog-single-hero h1{ font-size: 1.75rem; }
}

/* ────────── Blog archive (home.php) — pixel-perfect prod ────────── */
#FamilleHeroBanner.blog-archive-hero > .container{ position: static; }
#FamilleHeroBanner.blog-archive-hero .container > div:last-child{
    max-width: 45rem;
}
#FamilleHeroBanner.blog-archive-hero h1{
    color: #fff;
    font-family: Inter;
    font-weight: 700;
    font-size: 3rem;
    line-height: normal;
    margin: 0;
}
#FamilleHeroBanner.blog-archive-hero p{
    color: #fff;
    font-family: Inter;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5rem;
}

#Blog-List .blog-divider{
    border: none;
    border-top: 0.0625rem solid #e0e0e0;
    margin: 0 0 2rem;
}
.blog-cards{
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.blog-card{
    display: grid;
    grid-template-columns: 13.75rem 1fr;
    gap: 2rem;
    text-decoration: none;
    color: inherit;
    align-items: center;
}
.blog-card__img{
    width: 13.75rem;
    height: 8.75rem;
    background-size: cover;
    background-position: center;
    border-radius: 0.5rem;
}
.blog-card__body h3{
    font-family: Inter;
    font-size: 1.125rem;
    font-weight: 700;
    color: #161616;
    margin: 0 0 0.5rem;
}
.blog-card__desc{
    font-family: Inter;
    font-size: 0.9375rem;
    color: #161616;
    line-height: 1.4;
    margin: 0 0 0.75rem;
}
.blog-card__meta{
    font-family: Inter;
    font-size: 0.8125rem;
    color: #D30000;
    font-weight: 500;
    margin: 0;
}
.blog-card:hover h3{ color: #D30000; }

@media (max-width: 48rem){
    .blog-card{ grid-template-columns: 1fr; }
    .blog-card__img{ width: 100%; }
    #FamilleHeroBanner.blog-archive-hero h1{ font-size: 2rem; }
}

/* Smooth scroll global */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Gutenberg button block — pixel-perfect prod red */
.wp-block-button{ background: transparent !important; padding: 0 !important; border-radius: 0 !important; }
.wp-block-button .wp-block-button__link{
    background: var(--Renau) !important;
    color: #FFF !important;
    border-radius: 62.4375rem;
    padding: 1rem 2rem;
    font-family: Inter;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}
.wp-block-button .wp-block-button__link:hover{ background: #a40e26 !important; }

/* Global h2 style (Configuration baseline) */
h2{
    color: #161616;
    font-family: Inter;
    font-size: 2rem;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin: 0;
}
h3{
    margin: 0;
    padding: 0;
}
section{
    width: 100%;
    box-sizing: border-box;
}
#Container-Selection{ align-items: flex-start; align-self: stretch; }
#Sticky-Selection{ position: sticky; top: 8.75rem; align-self: flex-start; }
#Sticky-Selection{ box-sizing: border-box; }

/* File download buttons (single modele) */
.files-list-buttons{
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}
.file-download-btn{
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--Renau);
    color: #FFF;
    border-radius: 62.4375rem;
    text-decoration: none;
    font-family: Inter;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: normal;
    transition: background .2s;
}
.file-download-btn:hover{ background: #a40e26; color: #FFF; }
.file-download-btn svg{ flex: 0 0 1rem; }
#Files-List h3{
    color: #161616;
    font-family: Inter;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

/* === Conveyor-Option (accessoires) === */
#Conveyor-Option {
    width: 100%;
}
#Conveyor-Option .Wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
#Conveyor-Option .Wrapper li {
    display: flex;
    justify-content: center;
    position: relative;
    width: calc(33.3333333% - 0.875rem);
    overflow: hidden;
    border-radius: 0.25rem;
}
#Conveyor-Option .Wrapper a {
    display: block;
    width: 100%;
    text-decoration: none;
}
#Conveyor-Option .Wrapper p {
    position: absolute;
    color: #FFF;
    font-family: Inter;
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-align: center;
    bottom: 1rem;
    width: 100%;
    margin: 0;
}
#Conveyor-Option .Wrapper img {
    width: 100%;
    display: block;
}

/* === FormProduit (devis) === */
#FormProduit form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
#FormProduit .ContainerProduit {
    display: flex;
    gap: 2rem;
}
#FormProduit .ContainerProduit > div {
    width: 50%;
}
#FormProduit .ContainerProduit .information {
    display: flex;
    flex-direction: column;
}
#FormProduit .information p {
    color: #161616;
    font-family: Inter;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5rem;
}
#FormProduit .information li.mt-16 {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
}
#FormProduit .information li.mt-16 p {
    font-weight: 600;
}
#FormProduit .information li.mt-16 a {
    color: #161616;
    text-decoration: none;
    font-family: Inter;
    font-size: 1rem;
    line-height: 1.5rem;
}
#FormProduit form div {
    display: flex;
    gap: 1.25rem;
}
#FormProduit form input,
#FormProduit form textarea {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    border: 0.0625rem solid #161616;
    width: 100%;
    resize: none;
    font-family: Inter;
    font-size: 1rem;
    background: transparent;
}
#FormProduit form textarea {
    height: 8.125rem;
}
#FormProduit form button {
    margin-left: auto;
}

@media (max-width: 48rem) {
    #FormProduit .ContainerProduit { flex-direction: column; }
    #FormProduit .ContainerProduit > div { width: 100%; }
    #Conveyor-Option .Wrapper li { width: calc(50% - 0.625rem); }
}

/* === DevisAsk === */
#DevisAsk {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
#DevisAsk p {
    font-family: Inter;
    font-size: 1rem;
    line-height: 1.5rem;
    max-width: 36.25rem;
    color: #161616;
    text-align: center;
}
#DevisAsk a {
    display: block;
    text-decoration: none;
}

/* === DevisAsk full-width pink bg === */
#DevisAsk {
    background: #f9eded;
    width: 100%;
    padding: 5rem 1.5rem;
    margin: 4rem 0 0;
}
#DevisAsk h2,
#DevisAsk p,
#DevisAsk a {
    width: 100%;
    max-width: 36.25rem;
}
#DevisAsk a {
    width: auto;
}

/* === #fiche-technique download cards (prod parity) === */
#fiche-technique .cards {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
}
#fiche-technique .card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6.25rem;
    background: #D30000;
    color: #FFF;
    text-decoration: none;
    font-family: Inter;
    font-size: 1rem;
    font-weight: 600;
    line-height: normal;
}
#fiche-technique .card:hover {
    background: #a40e26;
}
#fiche-technique .card img {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
}
#fiche-technique .card p {
    margin: 0;
    color: #FFF;
    font-family: Inter;
    font-size: 1rem;
    font-weight: 600;
}

/* override Conveyor-Option when inside Technical-Conveyor (no .container needed) */
#Technical-Conveyor #Conveyor-Option {
    width: 100%;
}

/* === Product-Visual prod parity === */
#Product-Visual {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
}
#Product-Visual #MainScene {
    width: 100%;
    height: 31.375rem;
    max-height: 31.375rem;
    position: relative;
}
#Product-Visual #MainScene img,
#Product-Visual #MainScene video,
#Product-Visual #MainScene > div {
    border-radius: 0.5rem;
    object-fit: cover;
    width: 100% !important;
    height: 31.375rem !important;
}
#Product-Visual #MainScene canvas {
    border-radius: 0.5rem;
    max-width: 100%;
}
#Product-Visual #MainScene svg {
    position: absolute;
}

#Product-Visual #D3-Suggest,
#Product-Visual #Video-Suggest {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 1rem;
}
#Product-Visual #D3-Suggest .d3-item {
    position: relative;
    background: none;
    padding: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
#Product-Visual #D3-Suggest svg {
    position: absolute;
    pointer-events: none;
    z-index: 1000;
}
#Product-Visual #D3-Suggest .d3-item img {
    width: 8.75rem;
    height: 4.875rem;
    object-fit: cover;
    border-radius: 0.25rem;
    cursor: pointer;
}
#Product-Visual #Video-Suggest video {
    width: 8.75rem;
    height: 4.875rem;
    object-fit: cover;
    border-radius: 0.25rem;
    cursor: pointer;
}
#Video-Suggest::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.2);
    pointer-events: none;
    border-radius: 0.25rem;
}

#Product-Visual #Image-Suggest {
    display: flex;
    gap: 1rem;
}
#Product-Visual #Image-Suggest img {
    width: 8.75rem;
    height: 4.875rem;
    object-fit: cover;
    border-radius: 0.25rem;
    cursor: pointer;
    border: none;
}
#Product-Visual #Image-Suggest img:hover {
    border: none;
}

/* === Coulissant wrapper (médias inline same row) === */
#Product-Visual .container-coulissant {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    height: 4.875rem;
    overflow: hidden;
}
#Product-Visual .Coulissant {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    width: max-content;
    position: relative;
    transition: all ease-in-out 400ms;
}

/* === Global: no horizontal scroll === */
body {
    max-width: 100vw;
    overflow-x: clip;
}
