/*
Theme Name: SCCR Astra Factory
Description: Présentation industrielle et catalogue SCCR Remorques sur Astra.
Template: astra
Version: 1.0.0
Text Domain: sccr-astra-factory
*/
@font-face {
    font-family: 'Barlow Condensed SCCR';
    src: url('assets/fonts/barlow-condensed-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

.sccr-factory-site {
    --factory-ink: #17211f;
    --factory-muted: #4e5a54;
    --factory-paper: #f5f0e7;
    --factory-surface: #fffdf9;
    --factory-bright: #ff976d;
    --factory-accent: #e76b3e;
    --factory-line: #ded7cb;
    --factory-display: 'Barlow Condensed SCCR', 'Arial Narrow', sans-serif;
    color: var(--factory-ink);
    background: var(--factory-paper);
}
.sccr-factory-site :focus-visible { outline: 2px solid var(--factory-accent); outline-offset: 4px; }
.factory-frame { width: min(1280px, calc(100% - clamp(2rem, 8vw, 8rem))); margin-inline: auto; }
.factory-header { background: #192321; color: white; border-bottom: 1px solid #ffffff25; position: relative; z-index: 6; }
.factory-header__inner { display: flex; min-height: 5rem; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .7rem; }
.factory-brand { display: inline-flex; align-items: center; gap: .7rem; color: #fffdf9; text-decoration: none; }
.factory-brand:hover, .factory-brand:focus { color: #fffdf9; }
.factory-brand__symbol { display: flex; align-items: center; justify-content: center; gap: 3px; width: 2.35rem; height: 2.35rem; border: 1px solid var(--factory-bright); }
.factory-brand__symbol i { display: block; transform: skewX(-23deg); width: 3px; height: 14px; background: var(--factory-bright); }
.factory-brand__symbol i:nth-child(2) { height: 10px; }
.factory-brand__symbol i:nth-child(3) { height: 6px; }
.factory-brand__words { line-height: .95; display: grid; gap: .35rem; }
.factory-brand__words strong { font-size: 1.65rem; letter-spacing: -.08em; }
.factory-brand__words strong sup { font-size: .45em; margin-inline-start: .18rem; vertical-align: super; letter-spacing: 0; }
.factory-brand__words small { font-size: .68rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; color: #d2d8d1; }
.factory-nav { display: flex; align-items: center; gap: clamp(1rem, 4vw, 3.1rem); }
.factory-nav[hidden], .factory-menu-toggle[hidden] { display: none; }
.factory-menu { display: flex; flex-wrap: wrap; gap: clamp(1rem, 3.1vw, 2.35rem); list-style: none; margin: 0; padding: 0; }
.factory-menu a, .factory-footer a { color: #eff0ec; text-decoration: none; }
.factory-menu a { font-size: .93rem; font-weight: 650; }
.factory-menu a:hover, .factory-menu a[aria-current] { color: var(--factory-bright); }
.factory-button {
    display: inline-flex; align-items: center; justify-content: center; column-gap: .7rem; min-height: 2.9rem;
    padding: .66rem 1rem; border: 1px solid transparent; border-radius: .18rem;
    font-weight: 760; font-size: .9rem; text-align: center; text-decoration: none;
    transition: background .2s ease, color .2s ease;
}
.factory-button--accent { background: var(--factory-bright); color: #241911; }
.factory-button--accent:hover { background: #ffb18f; color: #241911; }
.factory-menu-toggle {
    border: 1px solid #ffffff5c; background: transparent; color: white; border-radius: .18rem;
    padding: .55rem .65rem; align-items: center; gap: .45rem;
}
.factory-menu-toggle span { display: inline-block; width: .95rem; height: .48rem; border-block: 1px solid currentColor; }
.factory-menu-toggle:hover, .factory-menu-toggle:focus { background: #26332e; color: #fff; }

.sccr-factory-site.home #content > .ast-container { display: block; max-width: none; padding: 0; }
.sccr-factory-site .factory-home__additional { padding-block: 3rem; }
.sccr-factory-site:not(.home) .site-content { background: var(--factory-paper); }
.sccr-factory-site:not(.home) #primary { margin-block: clamp(1.4rem, 4vw, 3rem); }
.sccr-factory-site .entry-content { overflow-wrap: anywhere; }
.sccr-factory-site #content :is(h1,h2,h3) { color: inherit; }
.sccr-factory-site:not(.home) #content :is(h1,h2) {
    font-family: var(--factory-display);
    font-weight: 800;
    line-height: 1.05;
}
.sccr-factory-site:not(.home) #content :is(h1,.entry-title) { color: var(--factory-ink); }
.factory-text-link { color: #863719; text-decoration-thickness: .085em; text-underline-offset: .25em; font-weight: 720; }
.sccr-fr-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px,100%),1fr));
    gap: 1.1rem; margin: 1.6rem 0 2.1rem;
}
.factory-catalog-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--factory-line); background: var(--factory-surface); }
.factory-catalog-card__image { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #d7d8d1; }
.factory-catalog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .32s ease; }
.factory-catalog-card:hover img { transform: scale(1.025); }
.factory-catalog-card__body { flex: 1; display: flex; flex-direction: column; padding: clamp(.95rem, 2vw, 1.35rem); }
.sccr-factory-site .factory-catalog-card__body h3 { font-size: clamp(1.08rem,1.9vw,1.35rem); line-height: 1.2; margin: .48rem 0 .65rem; }
.factory-catalog-card__body h3 a { text-decoration: none; color: inherit; }
.factory-catalog-card__body p { font-size: .92rem; line-height: 1.55; color: var(--factory-muted); margin-bottom: .9rem; }
.factory-catalog-card__body small { font-size: .76rem; color: var(--factory-muted); }
.factory-catalog-card__body > a { margin-top: auto; }

.factory-model { width: 100%; }
.factory-model__lead {
    display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); align-items: center;
    gap: clamp(1.2rem, 5vw, 4rem); padding: clamp(1.2rem, 4vw, 3.5rem); background: var(--factory-surface);
}
.sccr-factory-site .factory-model__lead h1 { margin: .55rem 0 .95rem; font-size: clamp(2.4rem, 5vw, 4.55rem); }
.factory-model__lead p { color: var(--factory-muted); margin: 0 0 1.4rem; }
.factory-model__crumb { font-weight: 680; font-size: .82rem; margin-bottom: 1rem; }
.factory-model figure { margin: 0; }
.factory-model figure img { display: block; width: 100%; height: auto; }
.factory-model figcaption { color: var(--factory-muted); font-size: .84rem; margin-top: .55rem; }
.factory-model__gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px,100%),1fr)); gap: 1.2rem; margin: 1.5rem 0; }
.factory-model__gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.factory-model__details { max-width: 53rem; padding: clamp(1rem,3vw,2rem) 0; margin-inline: auto; }

.sccr-fr-form { display: grid; gap: .92rem; max-width: 49rem; border: 1px solid var(--factory-line); background: var(--factory-surface); padding: clamp(1rem, 4vw, 2rem); }
.sccr-fr-form p { margin: 0; }
.sccr-fr-form-field { display: grid; gap: .3rem; }
.sccr-fr-form-field label { font-weight: 700; }
.sccr-fr-form-field input, .sccr-fr-form-field textarea { width: 100%; background: #fff; }
.sccr-fr-form-field small { color: var(--factory-muted); }
.sccr-factory-site .sccr-fr-form button[type=submit] {
    justify-self: start; margin-top: .25rem; min-height: 2.8rem; padding: .6rem 1rem;
    border: 1px solid transparent; border-radius: .18rem; background: var(--factory-bright); color: #241911; font-weight: 760;
}
.sccr-factory-site .sccr-fr-form button[type=submit]:hover { background: #ffb18f; }

.factory-footer { color: #f5f0e7; background: #192321; }
.factory-footer__grid { display: grid; grid-template-columns: minmax(0,1.3fr) 1fr 1fr; gap: clamp(1rem,4vw,4rem); padding-block: clamp(2.4rem,6vw,4.3rem); }
.factory-footer__grid h2 { color: #fffdf9; margin: .1rem 0 .8rem; font-size: 1.08rem; font-weight: 780; }
.factory-footer__grid p { color: #d7dbd3; margin: 1rem 0 0; max-width: 17rem; }
.factory-footer__grid ul { list-style: none; margin: 0; padding: 0; }
.factory-footer__grid li + li { margin-top: .35rem; }
.factory-footer a:hover { color: var(--factory-bright); }
.factory-footer__legal { color: #d7dbd3; border-top: 1px solid #ffffff2b; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: .9rem; font-size: .83rem; }
.factory-section--entered { animation: sccr-factory-enter .65s cubic-bezier(.2,.7,.25,1) both; }
@keyframes sccr-factory-enter { from { transform: translateY(22px); opacity: .58; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 780px) {
    .factory-header__inner { flex-wrap: wrap; column-gap: 1rem; row-gap: .65rem; min-height: 4.25rem; }
    .factory-menu-toggle { display: inline-flex; }
    .factory-nav { flex: 1 1 100%; flex-direction: column; align-items: start; gap: .85rem; padding: .5rem 0 .6rem; }
    .factory-menu { gap: .72rem 1.12rem; }
    .factory-model__lead, .factory-footer__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .factory-section--entered { animation: none; }
    .factory-catalog-card__image img { transition: none; }
}

.sccr-factory-site .sccr-fr-field-error { color: #9e352b; font-weight: 700; }
.sccr-factory-site .sccr-fr-form [aria-invalid="true"] { border-color: #9e352b; scroll-margin-top: 1.25rem; }
.sccr-factory-site .entry-content .wp-block-table { max-width: 100%; overflow-x: auto; }
.sccr-factory-site .entry-content .wp-block-table caption { padding-block: .55rem; text-align: left; font-weight: 680; }
.sccr-factory-site .sccr-fr-guide .sccr-fr-guide__heading { margin-bottom: 1.5rem; }
.sccr-factory-site .sccr-fr-guide .sccr-fr-byline { margin-top: .85rem; color: var(--factory-muted); }
.sccr-factory-site .sccr-fr-guide figcaption { margin-top: .45rem; color: var(--factory-muted); font-size: .88rem; }
