/* Agency Webmarketing - feuille de styles unique, sans dépendance */

:root {
	--ink: #10233a;
	--ink-2: #1d3a5c;
	--text: #2a3441;
	--muted: #5b6676;
	--accent: #c2410c;
	--accent-dark: #9a330a;
	--soft: #f5f3ee;
	--line: #e3e0d8;
	--white: #fff;
	--radius: 10px;
	--shadow: 0 1px 2px rgba(16, 35, 58, .06), 0 8px 24px rgba(16, 35, 58, .06);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--container: 1140px;
	--content: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--font); color: var(--text); background: var(--white); }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 1.6em 0 .55em; font-weight: 750; letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p, ul, ol { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }

.sr-only, .skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: var(--white); padding: 10px 14px; border-radius: 6px; }

/* Boutons */
.btn, .wp-block-button__link {
	display: inline-flex; align-items: center; gap: .5em; justify-content: center;
	padding: .8em 1.35em; border-radius: 8px; border: 2px solid transparent;
	font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn--accent, .wp-block-button__link { background: var(--accent); color: var(--white); }
.btn--accent:hover, .wp-block-button__link:hover { background: var(--accent-dark); color: var(--white); }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, .08); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--soft); color: var(--ink); }
.btn--outline-light { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.btn--outline-light:hover { border-color: var(--white); color: var(--white); }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.15; }
.brand:hover { color: var(--ink); }
.brand-name { font-size: 1.25rem; font-weight: 500; }
.brand-name strong { font-weight: 800; color: var(--accent); }
.brand-logo { max-height: 44px; width: auto; }
.brand-tag { font-size: .78rem; color: var(--muted); }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; }
.nav-open .site-nav { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; max-height: calc(100vh - 72px); overflow-y: auto; box-shadow: var(--shadow); }
.site-nav .menu { list-style: none; margin: 0 0 12px; padding: 0; }
.site-nav .menu a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.site-nav .menu a:hover, .site-nav .current-menu-item > a { color: var(--accent); }
.site-nav .sub-menu { list-style: none; margin: 0 0 6px; padding: 0 0 0 14px; border-left: 2px solid var(--line); }
.site-nav .sub-menu a { font-weight: 500; padding: 7px 0; }
.header-cta { width: 100%; }

@media (min-width: 1024px) {
	.nav-toggle { display: none; }
	.site-nav, .nav-open .site-nav { display: flex; align-items: center; gap: 20px; position: static; padding: 0; box-shadow: none; border: 0; max-height: none; overflow: visible; }
	.site-nav .menu { display: flex; gap: 4px; margin: 0; }
	.site-nav .menu > li { position: relative; }
	.site-nav .menu > li > a { padding: 24px 10px; font-size: .97rem; }
	.site-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
	.site-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 300px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; }
	.site-nav .menu > li:hover > .sub-menu, .site-nav .menu > li:focus-within > .sub-menu { display: block; }
	.site-nav .sub-menu a { padding: 9px 12px; border-radius: 6px; }
	.site-nav .sub-menu a:hover { background: var(--soft); }
	.header-cta { width: auto; }
}

/* Hero */
.hero { background: var(--ink); color: #d5deea; padding: 48px 0 44px; }
.hero--home { padding: 72px 0 64px; background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%); }
.hero-inner { max-width: 900px; }
.hero-eyebrow { display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #ffb48a; margin-bottom: .8em; }
.hero-title { color: var(--white); font-size: clamp(1.85rem, 4.6vw, 3rem); margin: 0 0 .45em; }
.hero-intro { font-size: clamp(1.05rem, 1.8vw, 1.2rem); max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-proofs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; }
.hero-proofs li::before { content: "✓"; color: #ffb48a; font-weight: 800; margin-right: .45em; }

/* Fil d'Ariane */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 14px 0 0; margin: 0; font-size: .88rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin: 0 6px 0 2px; color: var(--line); }
.breadcrumbs a { color: var(--muted); }

/* Contenu */
.entry-content { max-width: var(--content); margin: 0 auto; padding: 36px 0 24px; }
.entry-content > :first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .35em; }
.entry-content .alignwide { max-width: var(--container); margin-left: auto; margin-right: auto; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .97rem; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--soft); color: var(--ink); }

.aw-faq, .aw-case, .aw-steps, .aw-cta-inline { margin: 2.2em 0; }
.aw-case { background: var(--soft); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 4px 24px 8px; }
.aw-case h2 { margin-top: 1em; }
.aw-steps ol { counter-reset: s; list-style: none; padding: 0; }
.aw-steps ol li { counter-increment: s; position: relative; padding: 4px 0 14px 52px; }
.aw-steps ol li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--white); font-weight: 700; display: grid; place-items: center; }
.aw-faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.aw-faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 12px 28px 12px 0; position: relative; list-style: none; }
.aw-faq summary::-webkit-details-marker { display: none; }
.aw-faq summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font-size: 1.4rem; color: var(--accent); }
.aw-faq details[open] summary::after { content: "−"; }
.aw-cta-inline { background: var(--ink); color: #d5deea; border-radius: var(--radius); padding: 8px 26px 26px; }
.aw-cta-inline h2 { color: var(--white); margin-top: 1em; }
.aw-features { gap: 20px; margin: 2em 0; }
.aw-features .wp-block-column { background: var(--soft); border-radius: var(--radius); padding: 4px 20px 8px; }
.aw-features h3 { margin-top: 1em; }
.wp-block-columns { display: flex; flex-wrap: wrap; }
.wp-block-column { flex: 1 1 220px; }

/* Sections et cartes */
.section { padding: 48px 0; }
.section--soft { background: var(--soft); }
.section-title { margin-top: 0; }
.section-intro { color: var(--muted); max-width: 680px; }
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.card-title { font-size: 1.12rem; margin: 0 0 .5em; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-text { color: var(--muted); font-size: .97rem; flex: 1; }
.card-more { font-weight: 700; color: var(--accent-dark); font-size: .95rem; }
.card-more::after { content: " →"; }
.chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); background: var(--white); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.chips a:hover { border-color: var(--accent); color: var(--accent-dark); }
.post-list { display: grid; gap: 16px; padding: 36px 0; }

/* Bandeau CTA */
.cta-band { background: var(--accent); color: #ffe9dd; padding: 36px 0; }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band-title { color: var(--white); font-size: 1.4rem; font-weight: 750; margin: 0 0 .2em; }
.cta-band p { margin: 0; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Pied de page */
.site-footer { background: var(--ink); color: #b9c5d4; font-size: .95rem; padding-top: 48px; }
.site-footer a { color: #e3e9f1; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand { font-size: 1.2rem; color: var(--white); margin-bottom: .4em; }
.footer-brand strong { color: #ffb48a; }
.footer-title { color: var(--white); font-weight: 700; margin-bottom: .6em; }
.site-footer address { font-style: normal; line-height: 1.75; }
.footer-links, .footer-menu { list-style: none; padding: 0; margin: 0 0 .6em; }
.footer-links li { margin-bottom: .35em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 18px; padding-bottom: 18px; font-size: .86rem; }
.footer-bottom p { margin: 0; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }

/* Formulaire */
.aw-form-wrap { background: var(--soft); border-radius: var(--radius); padding: 22px; margin: 1.5em 0; }
@media (min-width: 640px) { .aw-form-wrap { padding: 30px; } }
.form-grid { display: grid; gap: 0 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.aw-form label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.aw-form input[type="text"], .aw-form input[type="tel"], .aw-form input[type="email"], .aw-form select, .aw-form textarea {
	width: 100%; font: inherit; font-size: 1rem; padding: 11px 12px; border: 1px solid #c9c4b8; border-radius: 8px; background: var(--white); color: var(--text);
}
.aw-form input:focus, .aw-form select:focus, .aw-form textarea:focus { border-color: var(--accent); outline: 2px solid rgba(194, 65, 12, .2); }
.form-rgpd label { font-weight: 400; font-size: .88rem; color: var(--muted); }
.form-rgpd input { margin-right: 6px; }
.aw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: 8px; font-weight: 600; }
.notice--ok { background: #e3f4e8; color: #17542b; }
.notice--err { background: #fde8e1; color: #8a2a0a; }

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