/*
Theme Name: AD-STOA Ingénierie
Theme URI: https://ad-stoa.fr
Author: AD-STOA Ingénierie
Description: Thème sur mesure du bureau d'études AD-STOA — fluides, GTB et Smart Building. Page d'accueil one-page, articles « Actualités & conseils », formulaire de contact intégré.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: Propriétaire
Text Domain: adstoa
*/

:root {
  --navy: #0D2240;
  --navy-deep: #0B1A2E;
  --navy-soft: #12305A;
  --cyan: #1A8FC4;
  --cyan-light: #6CC4EC;
  --accent: #146E9C;
  --ink: #0D2240;
  --ink-2: #34465A;
  --muted: #4A5B6E;
  --muted-on-dark: #C3D1DE;
  --faint-on-dark: #A9BACB;
  --bg: #F4F6F8;
  --white: #FFFFFF;
  --line: #DDE3EA;
  --line-strong: #C9D2DC;
  --display: "Archivo", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--display); margin: 0; color: inherit; }
/* Protection contre les styles globaux d'autres extensions (Elementor, etc.) */
body .hero h1, body .section--dark h2, body .contact-card h2, body .page-hero h1, body .article-cta h2, body .card--dark h3, body .steps .title { color: #FFFFFF; }
p { margin: 0; }
sup { line-height: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; padding: 12px 16px; background: var(--white); color: var(--navy); }

.wrap { max-width: var(--wrap); margin: 0 auto; }
.section { padding: 112px 24px; }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--navy); color: var(--white); }
.stack { display: flex; flex-direction: column; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.section--dark .eyebrow, .hero .eyebrow, .contact-card .eyebrow { color: var(--cyan-light); }
.h2 { font-weight: 800; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.015em; }
.lead { font-size: 18px; color: var(--muted); }
.section--dark .lead { color: var(--muted-on-dark); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.section-head--split { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-body { display: flex; flex-direction: column; gap: 48px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.btn--primary { background: #157AA8; color: var(--white); }
.btn--primary:hover { background: #11648C; color: var(--white); }
.btn--ghost { border: 1px solid rgba(255,255,255,0.45); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,26,46,0.97); border-bottom: 1px solid rgba(255,255,255,0.08); }
.site-header__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand img { width: 42px; height: auto; }
.brand__name { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name strong { font-family: var(--display); font-size: 18px; letter-spacing: 0.02em; }
.brand__name span { font-size: 12px; color: var(--faint-on-dark); letter-spacing: 0.08em; text-transform: uppercase; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.main-nav a { color: #DCE5EE; text-decoration: none; font-size: 15px; font-weight: 500; }
.main-nav a:hover { color: var(--white); }
.header-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 8px; background: var(--white); color: var(--navy); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.header-cta:hover { background: #E6EEF5; color: var(--navy); }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.3); color: var(--white); }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav ul { position: absolute; right: 0; top: 54px; list-style: none; margin: 0; padding: 12px; min-width: 240px; background: var(--navy-deep); border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; display: flex; flex-direction: column; }
.mobile-nav a { display: block; padding: 12px; color: var(--white); text-decoration: none; }
@media (max-width: 1020px) { .main-nav { display: none; } .mobile-nav { display: block; } }
@media (max-width: 560px) { .header-cta { display: none; } }

/* Hero */
.hero { color: var(--white); padding: 120px 24px 72px; background-color: var(--navy-deep); background-image: linear-gradient(90deg, rgba(11,26,46,0.92) 0%, rgba(11,26,46,0.55) 60%, rgba(11,26,46,0.2) 100%), var(--hero-image); background-size: cover; background-position: center right; }
.hero__inner { display: flex; flex-direction: column; gap: 72px; }
.hero__text { max-width: 760px; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-weight: 800; font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.02em; }
.hero__lead { font-size: 20px; color: #D3DEE8; max-width: 620px; }
.hero .eyebrow { letter-spacing: 0.16em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; }
.stat { border-top: 1px solid var(--cyan-light); padding-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1.1; }
.stat span { font-size: 15px; color: var(--muted-on-dark); }

.labels { background: var(--white); border-bottom: 1px solid var(--line); padding: 24px; }
.labels__inner { display: flex; flex-wrap: wrap; gap: 14px 48px; align-items: center; }
.label { display: flex; flex-direction: column; }
.label strong { font-family: var(--display); }
.label span, .labels__since { font-size: 14px; color: var(--muted); }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 21px; font-weight: 700; }
.card p, .card li { color: var(--muted); }
.card ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.card--soft { background: var(--bg); }
.card--dark { background: var(--navy); border-color: var(--navy); color: var(--white); }
.card--dark li, .card--dark p { color: var(--muted-on-dark); }
.card--dark a { color: var(--cyan-light); }
.card__link { margin-top: auto; font-weight: 600; text-decoration: none; }
.icon { width: 32px; height: 32px; stroke: var(--accent); }
.card--dark .icon { stroke: var(--cyan-light); }
.pill { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 13px; }

/* BACS steps */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.steps li { border-radius: 14px; background: var(--navy-soft); border: 1px solid rgba(255,255,255,0.12); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.steps li:last-child { background: #157AA8; border-color: #157AA8; }
.steps .num { font-family: var(--mono); font-size: 13px; color: var(--cyan-light); }
.steps li:last-child .num, .steps li:last-child .desc { color: var(--white); }
.steps .title { font-family: var(--display); font-weight: 700; font-size: 20px; }
.steps .desc { font-size: 15px; color: var(--muted-on-dark); }
.deployed { font-size: 17px; color: var(--muted-on-dark); max-width: 920px; }
.deployed strong { color: var(--white); }

/* Missions */
.mission h3 { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; font-size: 16px; font-family: var(--body); font-weight: 600; }
.mission h3 span { font-family: var(--display); font-weight: 800; font-size: 36px; color: var(--accent); }
.mission ul { font-size: 16px; gap: 8px; }
.phases { display: flex; flex-wrap: wrap; gap: 8px; }
.phases span { padding: 6px 12px; border-radius: 8px; background: var(--navy); color: var(--white); font-family: var(--mono); font-size: 13px; }

/* References */
.ref { background: var(--bg); padding: 26px; gap: 10px; }
.ref .eyebrow { font-size: 12px; letter-spacing: 0.08em; }
.ref__figure { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-family: var(--display); font-weight: 700; }
.sectors { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); border-top: 1px solid var(--line-strong); }
.sector { padding: 20px 18px 20px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; }
.sector b { font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--accent); min-width: 28px; line-height: 1.2; }
.sector strong { font-family: var(--display); display: block; }
.sector span { font-size: 14px; color: var(--muted); }
.clients { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.clients li { padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); font-family: var(--display); font-weight: 600; color: var(--ink-2); }

/* Posts */
.post-card { text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: border-color .15s, transform .15s; }
.post-card:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-2px); }
.post-card .eyebrow { font-size: 12px; letter-spacing: 0.08em; }
.post-card__title { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.25; }
.post-card__excerpt { font-size: 15px; color: var(--muted); }
.post-card__more { margin-top: auto; font-weight: 600; color: var(--accent); }

/* Contact */
.contact-section { padding: 0 24px 112px; }
.contact-card { border-radius: 24px; background: var(--navy); color: var(--white); padding: clamp(28px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 48px; }
.contact-card__info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.contact-card h2 { font-weight: 800; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.08; }
.contact-card__lead { font-size: 18px; color: var(--muted-on-dark); }
.contact-item { display: flex; flex-direction: column; }
.contact-item span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint-on-dark); }
.contact-item a { color: var(--white); }
.contact-form { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; background: var(--white); color: var(--ink); border-radius: 16px; padding: 28px; }
.contact-form .row { display: flex; flex-wrap: wrap; gap: 16px; }
.contact-form .row label { flex: 1 1 180px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea { min-height: 46px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 12px; font: inherit; font-weight: 400; background: var(--white); color: var(--ink); }
.contact-form textarea { padding: 12px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form .consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--muted); }
.contact-form .consent input { min-height: 0; margin-top: 4px; }
.notice { border-radius: 10px; padding: 14px 16px; font-weight: 500; }
.notice--ok { background: #E3F4EA; color: #14532D; }
.notice--err { background: #FCE8E6; color: #7F1D1D; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 24px; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.site-footer__brand { display: flex; align-items: center; gap: 14px; }
.site-footer__brand img { width: 64px; }
.site-footer__brand strong { font-family: var(--display); color: var(--navy); }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 24px; }

/* Articles */
.article { padding: 80px 24px 96px; }
.article__inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.article h1 { font-weight: 800; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -0.02em; }
.article__meta { font-size: 15px; color: var(--muted); }
.entry-content { font-size: 18px; line-height: 1.7; display: flex; flex-direction: column; gap: 22px; }
.entry-content > * { margin: 0; }
.entry-content .chapo { font-size: 21px; line-height: 1.6; color: var(--ink-2); }
.entry-content h2 { margin-top: 24px; font-weight: 700; font-size: 28px; line-height: 1.2; }
.entry-content ol, .entry-content ul { padding-left: 24px; display: flex; flex-direction: column; gap: 10px; }
.entry-content .box { border-radius: 14px; background: var(--white); border: 1px solid var(--line); padding: 24px 26px; }
.entry-content .box table { width: 100%; border-collapse: collapse; }
.entry-content .box td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry-content .box tr:last-child td { border-bottom: 0; }
.entry-content .box td:last-child { text-align: right; font-weight: 700; }
.entry-content .figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.entry-content .figures div { border-radius: 14px; background: var(--white); border: 1px solid var(--line); padding: 20px; }
.entry-content .figures strong { display: block; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.2; color: var(--accent); }
.entry-content .figures span { font-size: 15px; color: var(--muted); }
.entry-content .note { font-size: 14px; color: var(--muted); }
.article-cta { margin-top: 32px; border-radius: 20px; background: var(--navy); color: var(--white); padding: 36px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.article-cta h2 { font-weight: 700; font-size: 26px; line-height: 1.2; }
.article-cta p { color: var(--muted-on-dark); }
.back-link { font-weight: 600; text-decoration: none; }

.page-hero { background: var(--navy); color: var(--white); padding: 88px 24px 72px; }
.page-hero h1 { font-weight: 800; font-size: clamp(36px, 4.6vw, 56px); line-height: 1.06; }
.pagination { display: flex; gap: 12px; justify-content: center; margin-top: 40px; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; }
.pagination .current { background: var(--navy); color: var(--white); border-color: var(--navy); }

@media (max-width: 640px) {
  .section { padding: 80px 20px; }
  .hero { padding: 88px 20px 56px; }
  .stat strong { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .post-card { transition: none; } }
