/* ==========================================================
   Vulin SA — feuille de styles
   ========================================================== */

:root {
    --rouge: #c8161d;
    --rouge-fonce: #a20f15;
    --rouge-pale: #fdf0f0;
    --encre: #1d2329;
    --texte: #3d4650;
    --gris: #6b7580;
    --ligne: #e3e6ea;
    --fond: #ffffff;
    --fond-alt: #f5f6f8;
    --sombre: #4a5562;          /* gris ardoise : bandeau haut, titres de pages, pied de page */
    --sombre-texte: #e8ecef;    /* texte courant sur fond ardoise */

    --rayon: 10px;
    --ombre: 0 1px 2px rgba(16, 24, 32, .06), 0 6px 20px rgba(16, 24, 32, .06);
    --max: 1180px;
    --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--police);
    font-size: 17px;
    line-height: 1.6;
    color: var(--texte);
    background: var(--fond);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rouge); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--encre); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }
.muted { color: var(--gris); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: var(--fond-alt); }
.section__head { max-width: 680px; margin-bottom: 40px; }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.eyebrow {
    display: inline-block;
    font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--rouge); margin-bottom: .7em;
}
.lead { font-size: 1.15rem; color: var(--texte); }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .8em 1.4em; border-radius: 8px; border: 2px solid transparent;
    font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
    cursor: pointer; transition: background .15s, color .15s, border-color .15s;
    text-decoration: none !important;
}
.btn--primary { background: var(--rouge); color: #fff; }
.btn--primary:hover { background: var(--rouge-fonce); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--encre); }
.btn--outline { border-color: var(--ligne); color: var(--encre); background: #fff; }
.btn--outline:hover { border-color: var(--encre); }
.btn--sm { padding: .55em 1em; font-size: .95rem; }

/* ---------- Bandeau supérieur ---------- */
.topline { background: var(--sombre); color: var(--sombre-texte); font-size: .88rem; }
.topline__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topline a { color: #fff; }
.topline__contacts { display: flex; gap: 20px; }
.topline__urgence { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ccf6e; box-shadow: 0 0 0 3px rgba(60,207,110,.25); }

/* ---------- En-tête ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--ligne);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--encre); text-decoration: none !important; }
.brand__logo { height: 50px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 1.3rem; letter-spacing: -.01em; }
.brand__text small { color: var(--gris); font-size: .82rem; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
    display: block; padding: .55em .9em; border-radius: 6px;
    color: var(--encre); font-weight: 500; text-decoration: none;
}
.nav a:not(.btn):hover { background: var(--fond-alt); }
.nav a.is-active:not(.btn) { color: var(--rouge); box-shadow: inset 0 -2px 0 var(--rouge); border-radius: 0; }
.nav li:last-child { margin-left: 10px; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--encre); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background:
        linear-gradient(90deg, rgba(20,24,28,.94) 0%, rgba(20,24,28,.80) 38%, rgba(20,24,28,.25) 70%, rgba(20,24,28,.10) 100%),
        var(--hero-img, url("../../images/demo/hero.jpg")) 65% 70% / cover no-repeat,
        #22282e;
}
.hero__inner { padding: clamp(72px, 12vw, 140px) 0 clamp(88px, 10vw, 120px); max-width: 680px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #ff5a5f; }
.hero p { font-size: 1.2rem; color: #dfe3e7; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; font-size: .95rem; color: #c9cfd5; }
.hero__badges span::before { content: "✓"; color: #ff5a5f; font-weight: 700; margin-right: 6px; }

.page-hero { background: var(--sombre); color: #fff; padding: 56px 0 48px; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: var(--sombre-texte); margin: 0; max-width: 640px; font-size: 1.1rem; }

/* ---------- Chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); margin-top: -48px; position: relative; z-index: 2; }
.stat { padding: 26px 20px; text-align: center; border-right: 1px solid var(--ligne); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 2rem; color: var(--encre); line-height: 1.1; }
.stat span { color: var(--gris); font-size: .92rem; }

/* ---------- Cartes services ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon);
    overflow: hidden; display: flex; flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--ombre); transform: translateY(-2px); }
.card__img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--fond-alt); }
.card__body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card__body p { flex: 1; }
.card__link { font-weight: 600; }
.card__icon {
    width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center;
    background: var(--rouge-pale); color: var(--rouge); margin-bottom: 16px;
}
.card__icon svg { width: 26px; height: 26px; }

/* ---------- Bloc à propos / équipe ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split__img { border-radius: var(--rayon); box-shadow: var(--ombre); width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.team__col { background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 18px; }
.team__col h4 { font-size: .95rem; margin-bottom: .6em; color: var(--rouge); text-transform: uppercase; letter-spacing: .06em; }
.team__col ul { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.team__col li { padding: 4px 0; }
.team__col li b { color: var(--encre); display: inline-block; min-width: 1.6em; }

/* ---------- Bande appel ---------- */
.cta {
    background: var(--rouge); color: #fff; border-radius: var(--rayon);
    padding: clamp(32px, 5vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: .2em; }
.cta p { margin: 0; color: #ffe1e2; }
.cta .btn--ghost:hover { color: var(--rouge); }
.cta__tel { font-size: 1.5rem; font-weight: 700; color: #fff; }

.partner { display: flex; align-items: center; gap: 24px; padding: 24px; border: 1px solid var(--ligne); border-radius: var(--rayon); background: #fff; }
.partner img { width: 120px; height: auto; flex-shrink: 0; }
.partner p { margin: 0; }

/* ---------- Galerie ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
    padding: .55em 1.1em; border-radius: 999px; border: 1px solid var(--ligne); background: #fff;
    font: inherit; font-size: .95rem; font-weight: 500; color: var(--encre); cursor: pointer;
}
.filter:hover { border-color: var(--encre); }
.filter.is-active { background: var(--encre); color: #fff; border-color: var(--encre); }
.filter small { color: var(--gris); margin-left: 4px; }
.filter.is-active small { color: #aeb6be; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gallery__item {
    position: relative; margin: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in;
    background: var(--fond-alt); aspect-ratio: 4 / 3; border: 0; padding: 0; display: block; width: 100%;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__cap {
    position: absolute; inset: auto 0 0 0; padding: 28px 14px 12px; text-align: left;
    background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; font-size: .9rem;
}
.gallery__cap small { display: block; color: #ffb3b5; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.gallery__item[hidden] { display: none; }

.empty { text-align: center; padding: 64px 20px; border: 2px dashed var(--ligne); border-radius: var(--rayon); color: var(--gris); }

.lightbox {
    position: fixed; inset: 0; z-index: 100; background: rgba(10,12,14,.94);
    display: none; align-items: center; justify-content: center; padding: 60px 70px;
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 4px; }
.lightbox figcaption { color: #e6e9ec; margin-top: 14px; text-align: center; }
.lightbox__counter { color: #8c959e; font-size: .85rem; margin-left: 10px; }
.lightbox button {
    position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer;
    width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 1; display: grid; place-items: center;
}
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Nous trouver ---------- */
.info-list { list-style: none; padding: 0; margin: 0 0 24px; }
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--ligne); }
.info-list li:last-child { border-bottom: 0; }
.info-list .card__icon { margin: 0; flex-shrink: 0; width: 42px; height: 42px; }
.info-list .card__icon svg { width: 22px; height: 22px; }
.info-list strong { display: block; color: var(--encre); }
.map { width: 100%; height: 100%; min-height: 420px; border: 0; border-radius: var(--rayon); box-shadow: var(--ombre); }

/* ---------- Emploi ---------- */
.job { border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 24px; background: #fff; margin-bottom: 16px; }
.job__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag { font-size: .8rem; font-weight: 600; padding: .25em .7em; border-radius: 999px; background: var(--fond-alt); color: var(--encre); }
.tag--rouge { background: var(--rouge-pale); color: var(--rouge); }

/* ---------- Formulaire ---------- */
.form { background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: clamp(22px, 4vw, 36px); box-shadow: var(--ombre); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--encre); margin-bottom: 6px; font-size: .95rem; }
.field label .opt { color: var(--gris); font-weight: 400; }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--encre);
    padding: .75em .9em; border: 1px solid #cfd4da; border-radius: 8px; background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--rouge); box-shadow: 0 0 0 3px rgba(200,22,29,.15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--rouge); background: var(--rouge-pale); }
.field__error { color: var(--rouge); font-size: .88rem; margin-top: 4px; }
.field__hint { color: var(--gris); font-size: .85rem; margin-top: 4px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 16px 18px; border-radius: 8px; margin-bottom: 22px; }
.alert--ok { background: #ebf8ef; color: #17602f; border: 1px solid #bfe6cb; }
.alert--err { background: var(--rouge-pale); color: var(--rouge-fonce); border: 1px solid #f3c4c6; }

.contact-aside .card { padding: 22px; margin-bottom: 16px; }
.contact-aside .urgent { background: var(--sombre); color: var(--sombre-texte); border: 0; }
.contact-aside .urgent h3 { color: #fff; }
.contact-aside .urgent a { color: #fff; font-size: 1.4rem; font-weight: 700; }

.layout-contact { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--sombre); color: var(--sombre-texte); font-size: .95rem; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer h3 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer__brand { color: #fff; font-weight: 700; font-size: 1.3rem; margin-bottom: .5em; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.22); padding-top: 20px; padding-bottom: 24px; font-size: .88rem; }
.site-footer .muted { color: #d6dce2; }
.page-hero .eyebrow { color: #ffc2c4 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .split, .layout-contact { grid-template-columns: 1fr; gap: 32px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--ligne); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav {
        position: absolute; top: 100%; left: 0; right: 0; background: #fff;
        border-bottom: 1px solid var(--ligne); box-shadow: 0 12px 24px rgba(0,0,0,.08);
        display: none;
    }
    .nav.is-open { display: block; }
    .nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 20px; gap: 2px; }
    .nav a:not(.btn) { padding: .8em .4em; border-bottom: 1px solid var(--ligne); border-radius: 0; }
    .nav a.is-active:not(.btn) { box-shadow: none; }
    .nav li:last-child { margin: 14px 0 0; }
    .nav .btn { width: 100%; padding: .85em; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .hero { background:
        linear-gradient(180deg, rgba(20,24,28,.82) 0%, rgba(20,24,28,.88) 60%, rgba(20,24,28,.95) 100%),
        url("../../images/demo/hero.jpg") 55% 80% / cover no-repeat, #22282e; }
    .topline__urgence { font-size: .82rem; }
    .topline__contacts a[href^="mailto"] { display: none; }
    .grid--3, .grid--2, .team, .form__row { grid-template-columns: 1fr; }
    .form__row { gap: 0; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .partner { flex-direction: column; align-items: flex-start; }
    .lightbox { padding: 60px 8px; }
    .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
    .brand__logo { height: 40px; }
    .site-header__inner { min-height: 66px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}

/* Logo dans la section entreprise */
.logo-card { background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: clamp(32px, 6vw, 64px); display: grid; place-items: center; box-shadow: var(--ombre); }
.logo-card img { width: min(100%, 360px); }
.logo-card p { margin: 24px 0 0; text-align: center; color: var(--gris); }
