/* ===== Polices auto-hébergées (aucun appel à Google) ===== */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 200 700; font-display: swap;
    src: url("../fonts/oswald-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 200 700; font-display: swap;
    src: url("../fonts/oswald-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url("../fonts/work-sans-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url("../fonts/work-sans-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ===== Variables (les couleurs de marque sont surchargées par theme.css.php) ===== */
:root {
    --accent: #25b3e1;     /* bleu ciel : hero, accents */
    --accent-2: #e31c79;   /* rose : bouton Contact, pastilles */
    --accent-3: #fab909;   /* jaune : boutons d'action */
    --navy: #1f2937;
    --blue-deep: color-mix(in srgb, var(--accent) 35%, #00264d);
    --soft-accent: color-mix(in srgb, var(--accent) 22%, #fff);
    --soft-accent-2: color-mix(in srgb, var(--accent-2) 12%, #fff);
    --soft-accent-3: color-mix(in srgb, var(--accent-3) 18%, #fff);
    --green: #02a51d;
    --bg: #fafafa;
    --white: #fff;
    --muted: #5b6472;
    --line: #e7e9ee;
    --font-head: "Oswald", "Arial Narrow", Impact, sans-serif;
    --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --shadow: 0 8px 28px rgba(31, 41, 55, .10);
    --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font-family: var(--font-body); color: var(--navy); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent-3); outline-offset: 3px; border-radius: 6px; }
.ico { width: 1em; height: 1em; flex: none; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== Boutons et pastilles ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.6em; border-radius: 8px; border: 0; background: var(--navy); color: var(--white); font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, filter .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 0, 0, .18); filter: brightness(1.05); }
.btn--yellow { background: var(--accent-3); }
.btn--pink { background: var(--accent-2); }
.btn--blue { background: var(--blue-deep); }
.btn--small { padding: .65em 1.3em; font-size: .95rem; }
.btn--light { background: var(--white); color: var(--navy); border: 1.5px solid var(--line); }

.pill { display: inline-block; font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; text-transform: uppercase; line-height: 1; padding: .6em 1.4em; border-radius: 999px; letter-spacing: .01em; }
.pill--blue { background: var(--soft-accent); color: var(--blue-deep); }
.pill--yellow { background: var(--soft-accent-3); color: var(--accent-3); }
.pill--pink { background: var(--soft-accent-2); color: var(--accent-2); }
.pill--solid-yellow { background: var(--accent-3); color: #fff; }

/* ===== Barre de navigation flottante ===== */
.navbar { position: fixed; top: 16px; left: 0; right: 0; z-index: 100; }
.navbar__inner { background: var(--white); border-radius: 999px; box-shadow: 0 8px 26px rgba(0, 0, 0, .14); display: flex; align-items: center; gap: 18px; padding: 10px 16px 10px 40px; min-height: 74px; position: relative; }
.brand { display: flex; align-items: center; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; text-transform: uppercase; color: var(--accent); margin-right: auto; }
.brand__logo { height: 54px; width: auto; max-width: 240px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .98rem; padding: .5em .8em; border-radius: 8px; line-height: 1.25; }
.nav a:not(.btn):hover { color: var(--accent-2); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; border-radius: 50%; padding: 0; }
.nav-toggle span { display: block; width: 22px; height: 2.5px; background: var(--navy); margin: 5px auto; border-radius: 2px; transition: transform .2s, opacity .2s; }
.navbar.is-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.navbar.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.navbar.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: 150px 0 190px; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 76%, 0 100%); z-index: 0; }
.hero > .container { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr); gap: 56px; align-items: start; }
.hero__pills { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0 26px; }
.hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); font-weight: 600; text-shadow: 0 6px 18px rgba(0, 0, 0, .22); margin-bottom: .7em; }
.hero__text p { font-size: 1.05rem; max-width: 600px; margin-bottom: 1.6em; }
.hero__text .btn { margin-top: .6em; padding: 1em 2.2em; }

/* Carte formulaire */
.callback { background: var(--white); color: var(--navy); border-radius: 16px; padding: 30px 26px 26px; box-shadow: 0 18px 44px rgba(0, 0, 0, .18); }
.callback h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--blue-deep); text-align: center; margin: 14px 0 22px; }
.field { margin-bottom: 14px; }
.callback input:not([type="checkbox"]), .callback textarea { display: block; width: 100%; padding: .9em 1em; border: 1.5px solid #ecedf0; border-radius: 10px; font: 400 .95rem var(--font-body); color: var(--navy); background: #fff; }
.callback textarea { min-height: 130px; resize: vertical; }
.callback input:focus, .callback textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.callback ::placeholder { color: #1b1b1b; opacity: .85; }
.field-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; margin-bottom: 14px; }
.field-row .field { margin: 0; }
.callback__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; line-height: 1.35; }
.check input { margin-top: 3px; flex: none; }
.callback__foot .btn { padding: .9em 1.6em; }
.notice { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: .92rem; }
.notice--success { background: #e6f7ee; color: #14633a; }
.notice--error { background: #fdeceb; color: #9a2a22; }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section--gray { background: var(--bg); }
.section__head { text-align: center; max-width: 820px; margin: 0 auto 46px; }
.section__head .pill { margin-bottom: 20px; }
.section__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); color: var(--navy); margin-bottom: .4em; }
.section__head p { color: var(--muted); font-size: 1.05rem; }

/* Clients */
.logos { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.logos li { background: var(--white); border-radius: 14px; box-shadow: var(--shadow); min-height: 112px; display: grid; place-items: center; padding: 18px; }
.logos img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.logos a { display: grid; place-items: center; width: 100%; height: 100%; }
.logos__name { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; color: var(--muted); text-align: center; }

/* Services */
.services { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 54px; align-items: center; }
.services__art img { width: 100%; border-radius: 24px; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.svc { background: var(--white); border-radius: 16px; padding: 24px 22px; box-shadow: var(--shadow); }
.svc__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 16px; color: var(--accent); background: var(--soft-accent); }
.svc:nth-child(4n+2) .svc__icon { color: var(--accent-2); background: var(--soft-accent-2); }
.svc:nth-child(4n+3) .svc__icon { color: #b88500; background: var(--soft-accent-3); }
.svc:nth-child(4n+4) .svc__icon { color: var(--green); background: color-mix(in srgb, var(--green) 12%, #fff); }
.svc h3 { font-size: 1.3rem; margin-bottom: .4em; color: var(--navy); }
.svc p { color: var(--muted); font-size: .95rem; margin: 0 0 .8em; }
.svc a { font-weight: 700; color: var(--blue-deep); text-decoration: none; font-size: .95rem; }
.svc a:hover { text-decoration: underline; }
.services__cta { text-align: center; margin-top: 40px; }

/* Blocs image + texte */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 34px 0; }
.feature--left .feature__media { order: -1; }
.feature__media img { width: 100%; border-radius: 22px; }
.feature .pill { margin-bottom: 18px; }
.feature h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.feature p { color: #3b4350; }
.feature .btn { margin-top: .6em; }

/* Réalisations */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.work { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.work__media { aspect-ratio: 16 / 10; background: var(--soft-accent); overflow: hidden; }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.work:hover .work__media img { transform: scale(1.04); }
.work__ph { width: 100%; height: 100%; display: grid; place-items: center; font: 600 4rem var(--font-head); color: #fff; background: linear-gradient(135deg, var(--accent), var(--blue-deep)); }
.work__ph.ph-1 { background: linear-gradient(135deg, var(--accent-2), #8b1048); }
.work__ph.ph-2 { background: linear-gradient(135deg, var(--accent-3), #c98a00); }
.work__ph.ph-3 { background: linear-gradient(135deg, #2c3a4d, var(--navy)); }
.work__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.work h3 { font-size: 1.45rem; color: var(--navy); margin: 0; }
.work__sub { text-transform: uppercase; font-size: .86rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
span.tag { font-size: .8rem; font-weight: 600; padding: .35em .9em; border-radius: 999px; background: var(--soft-accent); color: var(--blue-deep); }
span.tag:nth-child(3n+2) { background: var(--soft-accent-2); color: var(--accent-2); }
span.tag:nth-child(3n+3) { background: var(--soft-accent-3); color: #9a6f00; }
.work__link { font-weight: 700; text-decoration: none; color: var(--blue-deep); font-size: .92rem; }
.works__cta { text-align: center; margin-top: 40px; }

/* Équipe : carrousel */
.team-wrap { position: relative; }
.team { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 4px 18px; scrollbar-width: none; }
.team::-webkit-scrollbar { display: none; }
.member { flex: 0 0 min(260px, 72%); scroll-snap-align: start; text-align: center; }
.member__photo { aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--soft-accent); margin-bottom: 14px; display: grid; place-items: center; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .3s; }
.member:hover .member__photo img { filter: none; }
.member__initials { font: 600 4rem var(--font-head); color: var(--accent); }
.member h3 { font-size: 1.25rem; margin: 0 0 .15em; }
.member__role { color: var(--accent-2); font-weight: 600; font-size: .92rem; margin: 0; }
.member__bio { color: var(--muted); font-size: .9rem; margin: .4em 0 0; }
.carousel__nav { display: flex; justify-content: center; gap: 14px; margin-top: 10px; }
.carousel__btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--blue-deep); color: #fff; font-size: 1.5rem; display: grid; place-items: center; cursor: pointer; transition: transform .2s, filter .2s; }
.carousel__btn:hover { transform: scale(1.06); filter: brightness(1.15); }
.team-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 34px; }
.team-intro h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 18px 0 0; }
.team-intro p { color: #3b4350; margin: 0 0 .8em; }

/* Blog */
.news { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.news-card { background: var(--white); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-columns: 42% 1fr; min-height: 230px; }
.news-card__media { display: block; background: var(--soft-accent); overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__ph { display: block; width: 100%; height: 100%; min-height: 160px; background: linear-gradient(135deg, var(--accent), var(--blue-deep)); }
.news-card__ph.ph-1 { background: linear-gradient(135deg, var(--accent-2), #8b1048); }
.news-card__ph.ph-2 { background: linear-gradient(135deg, var(--accent-3), #c98a00); }
.news-card__ph.ph-3 { background: linear-gradient(135deg, #2c3a4d, var(--navy)); }
.news-card__body { padding: 20px 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.news-card__tag { font-size: .78rem; font-weight: 600; padding: .25em .9em; border: 1.5px solid var(--navy); border-radius: 999px; }
.news-card h3 { font-size: 1.15rem; margin: 6px 0 0; line-height: 1.2; }
.news-card h3 a { text-decoration: none; }
.news-card p { color: var(--muted); font-size: .9rem; margin: 0; }
.news-card__date { color: var(--muted); font-size: .82rem; }
.news-card .btn { margin-top: auto; }
.blog__cta { text-align: center; margin-top: 38px; }

/* ===== Pied de page ===== */
.site-footer { background: #000; color: #fff; padding: 80px 0 0; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.15fr 1.25fr .9fr; gap: 48px; align-items: start; }
.footer__logo { display: inline-block; margin-bottom: 18px; font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; text-transform: uppercase; text-decoration: none; }
.footer__logo img { height: 54px; width: auto; filter: brightness(0) invert(1); }
.footer__logo img.is-native { filter: none; }
.footer__brand p { color: rgba(255, 255, 255, .75); max-width: 360px; }
.footer__hours { margin-top: 18px; color: rgba(255, 255, 255, .85); font-size: .95rem; }
.site-footer h2 { font-size: 1.5rem; color: #fff; margin-bottom: 18px; }
.tiles { list-style: none; display: grid; gap: 12px; }
.tile { display: flex; align-items: center; gap: 14px; background: #191b1c; border-radius: 12px; padding: 14px 18px; text-decoration: none; }
.tile__icon { font-size: 1.5rem; flex: none; }
.tile--phone .tile__icon { color: var(--accent-2); }
.tile--mail .tile__icon { color: #34d058; }
.tile--pin .tile__icon { color: var(--accent); }
.tile small { display: block; color: rgba(255, 255, 255, .55); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.tile span { font-weight: 600; word-break: break-word; }
.footer__services { list-style: none; display: grid; gap: 10px; }
.footer__services a { text-decoration: none; color: rgba(255, 255, 255, .85); }
.footer__services a:hover { color: var(--accent-3); }
.footer__bottom { margin-top: 64px; border-top: 1px solid #22262a; padding: 22px 0; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.footer__bottom-inner { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.footer__bottom p { margin: 0; }
.footer__bottom a { text-decoration: none; margin-right: 18px; }
.footer__bottom a:hover { color: var(--accent-3); }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: #191b1c; display: grid; place-items: center; font-size: 1.15rem; margin: 0; }
.social a:hover { background: var(--accent-2); color: #fff; }

/* ===== Pages internes (actualités, article, légal) ===== */
.page__head { position: relative; padding: 150px 0 120px; color: #fff; }
.page__head::before { content: ""; position: absolute; inset: 0; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); }
.page__head .container { position: relative; }
.page__head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 900px; text-shadow: 0 6px 18px rgba(0, 0, 0, .2); margin: 16px 0 .3em; }
.page__head p { max-width: 700px; margin: 0; }
.page__head a { text-decoration: none; }
.article__container { max-width: 820px; }
.article__date { color: rgba(255, 255, 255, .9); font-size: .95rem; }
.article__body { padding-top: 24px; padding-bottom: 90px; }
.article__image { width: 100%; border-radius: 18px; margin-bottom: 30px; }
.article__lead { font-size: 1.22rem; color: var(--muted); font-weight: 500; }
.prose { font-size: 1.06rem; }
.prose h2 { font-size: 1.7rem; margin: 1.6em 0 .5em; color: var(--blue-deep); }
.prose h3 { font-size: 1.3rem; margin: 1.4em 0 .4em; }
.prose p, .prose li { color: #323a47; }
.prose ul { padding-left: 1.3em; margin-bottom: 1em; }
.cta-box { margin-top: 48px; background: var(--soft-accent); border-radius: 18px; padding: 34px; }
.cta-box h2 { font-size: 1.7rem; color: var(--blue-deep); }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 44px; color: var(--muted); }
.legal { padding: 0 0 96px; }
.legal__inner { max-width: 800px; }
.legal p { color: #323a47; }

/* ===== Animations ===== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .work__media img, .carousel__btn { transition: none; }
}

/* ===== Tablette / mobile ===== */
@media (max-width: 1100px) {
    .nav a:not(.btn) { padding: .5em .55em; font-size: .92rem; }
    .navbar__inner { padding-left: 28px; }
    .logos { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .nav { position: absolute; top: calc(100% + 10px); left: 0; right: 0; background: var(--white); border-radius: 20px; box-shadow: 0 16px 36px rgba(0, 0, 0, .18); flex-direction: column; align-items: stretch; padding: 14px; display: none; }
    .navbar.is-open .nav { display: flex; }
    .nav a:not(.btn) { padding: .8em 1em; }
    .nav .btn { margin: 6px 0 0; }
    .hero { padding: 130px 0 140px; }
    .hero::before { clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); }
    .hero__grid, .services, .feature, .team-intro { grid-template-columns: 1fr; gap: 34px; }
    .feature--left .feature__media { order: 0; }
    .works { grid-template-columns: repeat(2, 1fr); }
    .news { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 38px; }
    .logos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .navbar__inner { padding: 8px 10px 8px 22px; min-height: 64px; }
    .brand__logo { height: 38px; }
    .section { padding: 60px 0; }
    .svc-grid, .works { grid-template-columns: 1fr; }
    .logos { grid-template-columns: repeat(2, 1fr); }
    .field-row { grid-template-columns: 1fr; }
    .callback__foot { flex-direction: column; align-items: stretch; }
    .news-card { grid-template-columns: 1fr; }
    .news-card__media { aspect-ratio: 16 / 9; }
    .hero__pills .pill { font-size: .95rem; }
}

.pill--white { background: #fff; color: var(--blue-deep); }
.legal__inner { padding-top: 10px; }
.pill--green { background: color-mix(in srgb, var(--green) 14%, #fff); color: var(--green); }

/* ===== Ajustements : fidélité à la maquette ===== */
.btn { border-radius: 5px; }
.btn--blue { background: var(--accent); }
.btn--green { background: var(--green); font-family: var(--font-head); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; }
.btn--head { font-family: var(--font-head); font-weight: 400; text-transform: uppercase; }
.pill { font-weight: 400; font-size: 1rem; }
.hero { padding: 148px 0 26px; }
.hero::before { clip-path: polygon(0 0, 100% 0, 100% 74%, 0 100%); }
.hero__text p { color: #fff; }
.hero__pills { margin-top: 18px; }

/* Bandeau défilant */
.strip { padding: 34px 0 6px; overflow: hidden; position: relative; z-index: 2; }
.strip__track { display: flex; gap: 40px; width: max-content; animation: strip-scroll 46s linear infinite; padding: 8px 20px 26px; }
.strip:hover .strip__track { animation-play-state: paused; }
.strip__card { display: flex; align-items: center; gap: 22px; flex: none; width: 420px; background: #f8fafc; border-radius: 18px; box-shadow: 0 10px 24px rgba(31, 41, 55, .10); padding: 26px 30px; }
.strip__card strong { display: block; font: 500 1.55rem/1.15 var(--font-head); }
.strip__card span { display: block; color: #4b5563; font-size: 1.05rem; margin-top: 4px; }
.strip__card--0 strong { color: var(--accent-3); }
.strip__card--1 strong { color: var(--blue-deep); }
.strip__card--2 strong { color: var(--green); }
.strip__card--3 strong { color: var(--accent); }
.strip__ico { width: 48px; height: 48px; flex: none; object-fit: contain; border-radius: 50%; }
svg.strip__ico { color: var(--green); border-radius: 0; }
@keyframes strip-scroll { to { transform: translateX(calc(-50% - 20px)); } }
@media (prefers-reduced-motion: reduce) { .strip { overflow-x: auto; } .strip__track { animation: none; } }

/* Clients */
.section__head p { color: #1f2937; }
.logos { max-width: 1030px; margin-inline: auto; gap: 32px 34px; }
.logos li { border-radius: 8px; min-height: 98px; padding: 14px 16px; box-shadow: 0 3px 14px rgba(31, 41, 55, .07); }
.logos img { max-height: 60px; }

/* Services : visuel à gauche, texte et 4 offres à droite */
.services { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.services__main .pill { margin-bottom: 20px; }
.services__main h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: 1.3em; }
.services__art img { width: 100%; height: auto; border-radius: 0; }
.svc-grid { gap: 36px 34px; margin-bottom: 40px; }
.svc { background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
.svc__icon { width: auto; height: auto; background: none !important; border-radius: 0; font-size: 2.3rem; margin-bottom: 14px; display: block; color: var(--accent); }
.svc:nth-child(4n+2) .svc__icon { color: var(--accent-3); }
.svc:nth-child(4n+3) .svc__icon { color: var(--accent-2); }
.svc:nth-child(4n+4) .svc__icon { color: var(--blue-deep); }
.svc h3 { font: 700 1.08rem/1.3 var(--font-body); text-transform: none; color: var(--navy); margin-bottom: .6em; }
.svc p { color: #4b5563; font-size: 1.02rem; line-height: 1.75; }

/* Blocs image + texte */
.feature { gap: 68px; padding: 20px 0; }
.feature__text p { color: #111; }
.feature__media img { border-radius: 20px; }
.feature .btn { margin-top: .8em; }
.feature h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }

/* Réalisations */
.works { gap: 34px; }
.work { border: 1px solid #f0f1f3; border-radius: 8px; padding: 26px; box-shadow: 0 4px 16px rgba(31, 41, 55, .06); }
.work__media { aspect-ratio: auto; background: none; border-radius: 3px; }
.work__media img { height: auto; border-radius: 3px; }
.work:hover .work__media img { transform: none; }
.work__body { padding: 28px 0 0; gap: 14px; }
.work h3 { font-size: 2rem; line-height: 1.15; }
.work__sub { font-size: 1.02rem; font-weight: 400; color: #374151; letter-spacing: .04em; }
.tags { padding-top: 6px; }
span.tag { font: 400 .98rem var(--font-head); text-transform: uppercase; padding: .35em 1.05em; }

/* Équipe */
.team-intro { display: block; max-width: 1020px; margin-bottom: 40px; }
.team-intro h2 { margin: 20px 0 22px; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.team-intro p { color: #111; font-size: 1.04rem; }
.team-wrap { padding: 0 50px; }
.team { gap: 26px; }
.member { flex: 0 0 264px; text-align: left; }
.member__photo { aspect-ratio: 264 / 370; border-radius: 8px; margin-bottom: 18px; background: #e5e7eb; }
.member__photo img { filter: grayscale(1); }
.member:hover .member__photo img { filter: grayscale(1); }
.member h3 { font-size: 1.45rem; margin: 0; }
.member__role { color: #111; font-weight: 400; font-size: 1.02rem; }
.carousel__btn { position: absolute; top: 170px; width: 42px; height: 42px; background: #fff; color: var(--accent); border: 1.5px solid var(--accent); font-size: 1.1rem; box-shadow: 0 3px 10px rgba(0, 0, 0, .12); z-index: 3; }
.carousel__btn--prev { left: 0; }
.carousel__btn--next { right: 0; }
.carousel__btn:hover { background: var(--accent); color: #fff; filter: none; }

/* Blog */
.news { gap: 34px; max-width: 1030px; margin-inline: auto; }
.news-card { grid-template-columns: 132px 1fr; gap: 26px; padding: 26px; border-radius: 20px; min-height: 0; align-items: start; box-shadow: 0 8px 26px rgba(31, 41, 55, .13); }
.news-card__media { aspect-ratio: 1; border-radius: 10px; }
.news-card__ph { min-height: 0; }
.news-card__body { padding: 0; gap: 14px; }
.news-card h3 { font-size: 1.3rem; margin: 0; line-height: 1.2; }
.news-card__tag { font: 400 1rem/1 var(--font-head); text-transform: none; padding: .4em 1em; border: 2px solid var(--blue-deep); color: #000; }
.news-card p { color: #4b5563; font-size: 1.02rem; line-height: 1.6; }
.news-card .btn { margin-top: 6px; padding: .55em 1em; font-size: .95rem; }

/* Pied de page */
.site-footer { padding-top: 96px; }
.footer__grid { grid-template-columns: 220px minmax(0, 1fr) 120px 230px; gap: 48px; }
.footer__logo img { height: auto; width: 100%; max-width: 212px; }
.footer__col h2, .footer__contact h2 { font-size: 1.25rem; margin-bottom: 20px; }
.tiles { grid-template-columns: 1fr 1fr; gap: 14px; }
.tile--wide { grid-column: 1 / -1; }
.tile { align-items: center; padding: 16px 18px; border-radius: 8px; font-size: .92rem; line-height: 1.5; gap: 14px; }
.tile .ico { font-size: 1.4rem; }
.tile b { font-weight: 700; }
.tile--phone b, .tile--phone .ico { color: var(--accent-2); }
.tile--mail b, .tile--mail .ico { color: #19b836; }
.tile--pin b, .tile--pin .ico { color: var(--accent); }
.tile--pin-2 b, .tile--pin-2 .ico { color: var(--accent-3); }
.footer__services { gap: 18px; font-size: .88rem; }
.footer__services a { color: rgba(255, 255, 255, .78); }
.footer__hours p { color: rgba(255, 255, 255, .78); font-size: .88rem; line-height: 1.9; }
.footer__badge { width: 144px; border-radius: 8px; margin-top: 18px; background: #fff; }
.footer__bottom p { color: rgba(255, 255, 255, .7); }
.heart { color: var(--accent); }
.footer__bottom { margin-top: 48px; }

@media (max-width: 960px) {
    .hero { padding: 130px 0 130px; }
    .hero::before { clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }
    .services { grid-template-columns: 1fr; gap: 34px; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__brand, .footer__contact { grid-column: 1 / -1; }
    .team-wrap { padding: 0 6px; }
    .carousel__btn { display: none; }
}
@media (max-width: 640px) {
    .strip__card { width: 320px; padding: 20px 22px; }
    .svc-grid { gap: 28px; }
    .tiles { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .work { padding: 18px; }
    .news-card { grid-template-columns: 1fr; }
    .news-card__media { aspect-ratio: 16 / 9; }
}

/* Menu : fidélité à la référence */
.nav a:not(.btn) { display: inline-flex; align-items: center; gap: 6px; color: #000; max-width: 118px; }
.nav a:not(.btn) span { display: block; }
.nav a.nav__ai:not(.btn) { color: #0b5aa6; }
.nav a.nav__eco:not(.btn) { color: var(--green, #02a51d); }
.nav .nav__ico { width: 14px; height: 14px; flex: none; }
@media (max-width: 960px) { .nav a:not(.btn) { max-width: none; } }
.nav a:not(.btn) { padding: .5em .7em; }

/* Pied de page : cases téléphone / e-mail alignées, e-mail sur une seule ligne */
.tiles { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.tiles > li { flex: 1 1 auto; display: flex; }
.tiles > li > .tile { flex: 1 1 auto; }
.tiles > li.tile--wide { flex: 1 1 100%; }
.tile--phone span, .tile--mail span { white-space: nowrap; word-break: normal; }
.tile { padding: 14px 16px; gap: 12px; }
@media (min-width: 961px) { .footer__grid { grid-template-columns: auto minmax(0, 1fr) 220px; gap: 40px; align-items: stretch; } }
@media (max-width: 1100px) { .tile--mail span { white-space: normal; overflow-wrap: anywhere; } }
@media (max-width: 640px) { .tiles > li { flex: 1 1 100%; } }

.footer__brand { display: flex; }
.footer__logo { display: block; height: 100%; }
.footer__logo img.is-native { height: 100%; width: auto; aspect-ratio: 1 / 1; max-width: none; border-radius: 28px; display: block; }
@media (max-width: 960px) { .footer__logo { height: auto; } .footer__logo img.is-native { height: auto; width: 160px; } }
.work__media { display: block; }

/* Réalisations : 4 cartes visibles, flèches aux extrémités */
.carousel { position: relative; padding: 0 58px; }
.carousel .carousel__btn { top: 50%; transform: translateY(-50%); }
.carousel .carousel__btn:hover { transform: translateY(-50%) scale(1.06); }
.works--track { display: flex; grid-template-columns: none; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 4px 18px; scrollbar-width: none; }
.works--track::-webkit-scrollbar { display: none; }
.works--track .work { flex: 0 0 calc((100% - 72px) / 4); scroll-snap-align: start; padding: 16px; }
.works--track .work__body { padding: 18px 0 0; gap: 10px; }
.works--track .work h3 { font-size: 1.3rem; }
.works--track .work h3 a { text-decoration: none; color: inherit; }
.works--track .work__sub { font-size: .8rem; }
.works--track span.tag { font-size: .8rem; padding: 3px 10px; }
@media (max-width: 1100px) { .works--track .work { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 640px) {
    .carousel { padding: 0 6px; }
    .carousel .carousel__btn { display: grid; width: 36px; height: 36px; }
    .carousel__btn--prev { left: -4px; } .carousel__btn--next { right: -4px; }
    .works--track .work { flex-basis: 84%; }
}

/* Sliders d'articles : espacement resserré entre les deux sections */
#realisations { padding-bottom: 24px; }
#actualites { padding-top: 24px; }
#realisations .works__cta, #actualites .works__cta { margin-top: 18px; }
.works--track { padding-bottom: 8px; }

/* Fenêtre au premier plan */
html.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, .68); backdrop-filter: blur(3px); animation: edFade .2s ease; }
.modal__panel { position: relative; width: min(860px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; background: #fff; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: edPop .25s ease; outline: none; }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: var(--navy); font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: 0 3px 12px rgba(0, 0, 0, .25); }
.modal__close:hover { background: var(--accent-2); color: #fff; }
.modal__loading { padding: 80px 24px; text-align: center; color: var(--muted); }
.modal-article__img { display: block; width: 100%; max-height: 380px; object-fit: cover; }
.modal-article__body { padding: 30px 36px 34px; }
.modal-article__body h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 6px 0 14px; color: var(--navy); }
.modal-article__body .tags { margin: 6px 0 4px; }
.modal-article__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
@keyframes edFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes edPop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .modal { padding: 10px; } .modal__panel { max-height: calc(100vh - 20px); } .modal-article__body { padding: 22px 20px 26px; } }
@media (prefers-reduced-motion: reduce) { .modal__backdrop, .modal__panel { animation: none; } }

/* En-tête des sliders : titre à gauche, bouton « voir tous » en face */
.slider-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.slider-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0; }
.slider-head p { color: #3b4350; margin: 12px 0 0; max-width: 720px; }
.slider-head__btn { flex: none; }
@media (max-width: 640px) { .slider-head { flex-direction: column; align-items: flex-start; } }

/* Page « tous les projets / toutes les actus » : grille de carrés */
.works--grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.works--grid .work { padding: 14px; }
.works--grid .work__media { aspect-ratio: 1 / 1; overflow: hidden; }
.works--grid .work__media img, .works--grid .work__ph { width: 100%; height: 100%; object-fit: cover; }
.works--grid .work__body { padding: 16px 0 0; gap: 8px; }
.works--grid .work h3 { font-size: 1.25rem; }
.works--grid .work h3 a { text-decoration: none; color: inherit; }
.works--grid .work__sub { font-size: .78rem; }
@media (max-width: 1100px) { .works--grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .works--grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .works--grid { grid-template-columns: 1fr; } }

/* Pagination numérotée */
.pager--num { gap: 8px; flex-wrap: wrap; }
.pager--num .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid #dfe5ec; background: #fff; color: var(--navy, #1f2937); font-weight: 600; text-decoration: none; transition: .2s; }
.pager--num a.page-numbers:hover { border-color: var(--accent, #25b3e1); color: var(--accent, #25b3e1); }
.pager--num .page-numbers.current { background: var(--accent, #25b3e1); border-color: var(--accent, #25b3e1); color: #fff; }
.pager--num .dots { border: 0; background: none; }
@media (min-width: 1101px) { .works--grid { grid-template-columns: repeat(4, 1fr); } }

/* Compteurs */
.count { display: inline-block; font-variant-numeric: tabular-nums; text-align: right; }

/* Bandeau : cartes cliquables */
a.strip__card { text-decoration: none; color: inherit; cursor: pointer; transition: transform .2s, box-shadow .2s; }
a.strip__card:hover, a.strip__card:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(31, 41, 55, .16); }
.modal-article--text .modal-article__body { padding-top: 44px; }

/* Fenêtre du bandeau : logo, points forts, logos */
.modal-article__head { display: flex; align-items: center; gap: 20px; margin-bottom: 10px; padding-right: 52px; }
.modal-article__head h2 { margin: 0 0 4px; }
.modal-article__head .article__lead { margin: 0; }
.modal-article__logo { width: 72px; height: 72px; flex: none; object-fit: contain; border-radius: 16px; background: #f8fafc; padding: 8px; box-shadow: 0 6px 16px rgba(31, 41, 55, .12); }
.checklist { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 32px; font-weight: 500; color: var(--navy); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .1em; width: 22px; height: 22px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.modal-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid #e5e9ef; }
.modal-logos img { max-height: 44px; width: auto; object-fit: contain; }
.modal-article--text .modal-article__body { padding-top: 34px; }

.feature__media img { height: auto; }

/* Services : même proportions que le modèle (image large, textes resserrés) */
.svc__icon { line-height: 1; }
.svc-grid { gap: 30px 34px; }
.services__main h2 { margin-bottom: 1em; }
@media (min-width: 961px) { .services__art { align-self: center; } }

/* Menu sur une seule ligne */
.nav a:not(.btn) { max-width: none; white-space: nowrap; }
.nav { gap: 2px; }
.nav a:not(.btn) { padding: .5em .62em; font-size: .95rem; }
.brand__logo { max-width: 210px; }
@media (min-width: 961px) and (max-width: 1240px) {
    .nav a:not(.btn) { padding: .5em .45em; font-size: .88rem; }
    .brand__logo { height: 46px; max-width: 170px; }
    .navbar__inner { padding-left: 24px; gap: 10px; }
}

/* Menu replié (bouton burger) dès 1050 px pour éviter qu'il passe sur deux lignes */
@media (max-width: 1050px) {
    .nav-toggle { display: block; }
    .nav { position: absolute; top: calc(100% + 10px); left: 0; right: 0; background: var(--white); border-radius: 20px; box-shadow: 0 16px 36px rgba(0, 0, 0, .18); flex-direction: column; align-items: stretch; padding: 14px; display: none; }
    .navbar.is-open .nav { display: flex; }
    .nav a:not(.btn) { padding: .8em 1em; font-size: 1rem; }
    .nav .btn { margin: 6px 0 0; }
}

/* Images et légendes dans les articles */
.prose figure { margin: 30px 0; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 10px 28px rgba(31, 41, 55, .14); }
.prose figcaption { margin-top: 10px; font-size: .88rem; color: #6b7280; text-align: center; }
.prose h3 { margin-top: 1.8em; }
