/*
Theme Name: Néodis Équipements
Description: Thème vitrine léger avec en-têtes image ou vidéo pour Néodis Équipements.
Version: 1.0.0
Author: webEUROwb
Text Domain: neodis-equipements
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
:root {
    --ink: #101d2b;
    --navy: #0b1723;
    --muted: #4a5b6d;
    --accent: #ff8a45;
    --on-accent: #101820;
    --surface: #f1f4f6;
    --line: #dbe3e9;
    --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font: 1rem/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-underline-offset: .22em; }
:where(a, button, input, textarea, select):focus-visible { outline: 3px solid #3476be; outline-offset: 4px; }
[hidden] { display: none !important; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .65em; letter-spacing: -.035em; overflow-wrap: anywhere; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), calc(100% - clamp(2rem, 8vw, 7rem))); margin-inline: auto; }
.site-header { position: relative; z-index: 2; background: #fff; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: clamp(1rem, 2.5vw, 2.5rem); min-height: 86px; }
.brand { flex: 0 0 auto; }
.brand-name { display: flex; align-items: center; gap: .7rem; font-size: 1.35rem; line-height: .95; font-weight: 850; letter-spacing: -.045em; text-decoration: none; }
.brand-name small { display: block; font-size: .56rem; letter-spacing: .15em; margin-top: .45rem; }
.brand-mark { display: flex; align-items: end; gap: 3px; width: 32px; height: 31px; transform: skewX(-13deg); }
.brand-mark span { background: var(--accent); width: 8px; height: 55%; }
.brand-mark span:nth-child(2) { height: 77%; }
.brand-mark span:nth-child(3) { height: 100%; }
.custom-logo-link { display: inline-flex; }
.custom-logo { max-width: min(195px, 49vw); max-height: 65px; width: auto; height: auto; object-fit: contain; }
.main-menu, .site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem clamp(.5rem, 1.6vw, 1.6rem); }
.main-menu li { position: relative; }
.main-menu a { display: block; padding: .65rem .25rem; text-decoration: none; font-size: .92rem; font-weight: 650; overflow-wrap: anywhere; }
.main-menu a:hover, .main-menu .current-menu-item > a, .main-menu .current_page_item > a { text-decoration: underline; }
.main-menu ul { list-style: none; margin: 0; padding: .3rem .8rem; }
.menu-toggle, .button, .video-control, .wp-block-button__link, .woocommerce a.button, .woocommerce button.button, input[type="submit"] {
    min-height: 46px; border: 0; border-radius: 6px; padding: .75rem 1.12rem; font: inherit; font-size: .91rem; font-weight: 750; cursor: pointer; overflow-wrap: anywhere;
}
.button, .wp-block-button__link, .woocommerce a.button, .woocommerce button.button, input[type="submit"] {
    display: inline-flex; align-items: center; justify-content: center; gap: .9rem;
    background: var(--accent); color: var(--on-accent); text-align: center; text-decoration: none; max-width: 100%;
    transition: filter .18s ease;
}
.button:hover, .wp-block-button__link:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, input[type="submit"]:hover { filter: brightness(.94); }
.nav-contact { flex-shrink: 0; }
.menu-toggle { background: var(--surface); color: var(--ink); }
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; background: var(--navy); color: #fff; }
.hero-home { min-height: clamp(450px, 51vw, 650px); }
.hero-media::after { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(90deg, rgba(8,19,31,.96) 0%, rgba(8,19,31,.84) 34%, rgba(8,19,31,.47) 72%, rgba(8,19,31,.26) 100%); }
.hero-image, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; }
.hero-video { opacity: 0; }
.hero-video.is-playing { opacity: 1; }
.hero-body { padding-block: clamp(3rem, 7vw, 6.6rem); }
.eyebrow { color: #ffd9bf; font-size: .78rem; font-weight: 740; letter-spacing: .15em; margin-bottom: 1.3rem; }
.hero h1 { max-width: 20ch; font-size: clamp(2.3rem, 5.3vw, 4.85rem); line-height: 1.02; letter-spacing: -.054em; margin-bottom: .34em; }
.hero-home h1 { max-width: 17ch; }
.hero-description { color: #edf3f6; max-width: 47ch; font-size: clamp(1rem, 1.6vw, 1.2rem); }
.hero .button { margin-top: .6rem; }
.video-control { justify-self: end; position: absolute; bottom: .7rem; right: .7rem; color: white; background: #152332; font-size: .8rem; }
.solutions { background: var(--surface); padding-block: clamp(2.6rem, 5.5vw, 5rem); }
.section-heading { margin-bottom: 1.55rem; }
.section-heading h2, .listing > h2 { font-size: clamp(1.8rem, 3.3vw, 2.75rem); margin-bottom: .3em; }
.section-heading p { color: var(--muted); margin-bottom: 0; }
.solution-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.solution-card, .listing-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.solution-card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1rem, 2.4vw, 1.8rem); }
.solution-icon { border-radius: 8px; color: #923800; background: #ffede1; width: 51px; height: 51px; display: grid; place-items: center; margin-bottom: 1.2rem; }
.solution-card h3 { font-size: clamp(1.18rem, 2vw, 1.48rem); margin-bottom: .5em; }
.solution-card p, .listing-summary { color: var(--muted); }
.card-link { min-height: 44px; display: inline-flex; align-items: center; gap: .65rem; margin-top: auto; font-weight: 750; }
.entry, .listing { padding-block: clamp(2.25rem, 5.4vw, 5rem); }
.entry-date { color: var(--muted); max-width: 760px; margin-inline: auto; }
.entry-content > :where(:not(.alignwide):not(.alignfull)) { max-width: 760px; margin-inline: auto; }
.entry-content { overflow-wrap: anywhere; }
.entry-content h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.entry-content .alignfull { width: 100%; max-width: none; margin-inline: auto; }
.entry-content .alignleft { float: left; margin: 0 1rem 1rem 0; }
.entry-content .alignright { float: right; margin: 0 0 1rem 1rem; }
.entry-content .aligncenter { display: block; margin-inline: auto; text-align: center; }
.entry-content::after { display: table; clear: both; content: ""; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), .entry-content textarea, .comments input:not([type]), .comments textarea { max-width: 100%; }
.listing-cover { display: block; text-decoration: none; }
.listing-cover:hover { text-decoration: underline; }
.listing-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.listing-cover h2 { margin: 0; padding: 1rem 1rem .5rem; font-size: 1.35rem; }
.listing-summary { padding: 0 1rem 1rem; }
.listing-summary p:last-child { margin-bottom: 0; }
.pagination, .post-navigation, .comments { margin-top: 2rem; }
.post-navigation, .comments { max-width: 760px; margin-inline: auto; }
.site-footer { background: var(--navy); color: #e7edf2; }
.footer-inner { padding-block: 1.45rem; display: flex; justify-content: space-between; gap: .8rem 2rem; flex-wrap: wrap; font-size: .9rem; }
.footer-inner p { margin: 0; }
.screen-reader-text { clip-path: inset(50%); position: absolute; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.screen-reader-text:focus { clip-path: none; z-index: 10; background: #fff; color: var(--ink); width: auto; height: auto; padding: .7rem; top: .5rem; left: .5rem; }
@media (min-width: 801px) {
    .main-menu ul { display: none; position: absolute; min-width: 13rem; top: 100%; inset-inline-start: 0; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 10px 24px #0b17231f; }
    .main-menu ul ul { top: 0; inset-inline-start: auto; inset-inline-end: 100%; }
    .main-menu li:hover > ul, .main-menu li:focus-within > ul { display: block; }
}
@media (max-width: 800px) {
    .site-header-inner { min-height: 72px; flex-wrap: wrap; justify-content: space-between; gap: .35rem .75rem; padding-block: .55rem; }
    .site-nav { flex: 1 0 100%; order: 4; }
    .main-menu { display: block; padding-block: .35rem; }
    .main-menu a { min-height: 44px; }
    .nav-contact { min-height: 44px; }
    .hero-media::after { background: linear-gradient(95deg, #08131fe8, #08131f83); }
    .solution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .solution-grid { grid-template-columns: 1fr; }
    .hero-home { min-height: 430px; }
    .hero .button { width: 100%; }
    .nav-contact { order: 5; width: 100%; }
    .site-nav[hidden] + .nav-contact { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
