/*
Theme Name: GUIDE
Theme URI: https://guide.td/
Author: GUIDE
Description: Thème sur mesure pour GUIDE – Groupe d'Union des Initiatives pour le Développement Économique. Page d'accueil en une page (services, démarche, réalisations, blog, demande de devis), responsive avec menu hamburger. Coordonnées, réseaux sociaux et couleur d'accent modifiables dans Apparence › Personnaliser › GUIDE.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: guide
*/

:root {
  --ink: #0E1B26;
  --navy: #13314A;
  --muted: #4A5865;
  --muted-light: #C9D4DE;
  --ground: #F3F5F7;
  --line: #E3E8ED;
  --label: #8A6A00;
  --accent: #F2B705;
  --display: 'Archivo', sans-serif;
  --body: 'IBM Plex Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #FFFFFF; color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
a:hover { color: var(--ink); }
input, select, textarea, button { font: inherit; }
.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: 1000; width: auto; height: auto; clip: auto; background: #FFFFFF; padding: 12px 16px; }

.container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: clamp(56px, 10vw, 96px); padding-bottom: clamp(56px, 10vw, 96px); }
.bg-ground { background: var(--ground); }
.bg-navy { background: var(--navy); color: #FFFFFF; }

.eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--label); }
.bg-navy .eyebrow { color: var(--accent); }
.h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 6vw, 42px); line-height: 1.1; letter-spacing: -1px; }
.section-head { display: flex; flex-wrap: wrap; gap: 16px 48px; justify-content: space-between; align-items: flex-end; margin-bottom: clamp(28px, 5vw, 48px); }
.section-head .lead { flex: 1 1 340px; margin: 0; color: var(--muted); font-size: 17px; }
.section-head > div { flex: 1 1 480px; }
.more-link { font-weight: 600; color: var(--navy); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 22px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { color: var(--ink); filter: brightness(0.95); }
.btn-outline { border: 2px solid #FFFFFF; color: #FFFFFF; }
.btn-outline:hover { background: #FFFFFF; color: var(--navy); }
.btn-lg { padding: 16px 28px; font-size: 17px; }

/* En-tête */
.site-header { background: #FFFFFF; border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.header-inner { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img, .brand .custom-logo { height: 60px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: 1px; }
.brand-tagline { font-size: 12px; color: var(--muted); max-width: 230px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 32px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--navy); text-decoration: underline; text-underline-offset: 6px; }
.burger { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid #CBD5DF; background: #FFFFFF; color: var(--ink); cursor: pointer; padding: 0; }
.burger .icon-close { display: none; }
.burger[aria-expanded="true"] .icon-open { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 4px 24px 24px; background: #FFFFFF; }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 18px; }
.mobile-nav .btn { display: flex; width: 100%; margin-top: 20px; border-bottom: 0; font-weight: 600; }
.mobile-nav .call { text-align: center; border-bottom: 0; color: var(--navy); }

@media (max-width: 960px) {
  .desk-only { display: none !important; }
  .burger { display: inline-flex; }
}
@media (min-width: 961px) { .mobile-nav { display: none !important; } }
@media (max-width: 560px) { .hide-sm { display: none !important; } }

/* Accroche */
.hero-inner { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 56px); align-items: center; padding-top: clamp(48px, 9vw, 88px); padding-bottom: clamp(56px, 10vw, 96px); }
.hero-text { flex: 1 1 480px; min-width: 0; }
.hero-text .eyebrow { margin-bottom: 20px; }
.hero h1 { margin: 0 0 24px; font-family: var(--display); font-weight: 800; font-size: clamp(38px, 8vw, 60px); line-height: 1.05; letter-spacing: -1.5px; }
.hero p.intro { margin: 0 0 36px; font-size: 19px; color: var(--muted-light); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-media { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hero-media img { width: 100%; height: clamp(220px, 45vw, 380px); object-fit: cover; display: block; }
.hero-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; font-size: 14px; }
.hero-steps div { border-top: 3px solid var(--accent); padding-top: 10px; }
.hero-steps strong { display: block; font-size: 15px; }
.hero-steps span { color: var(--muted-light); }

/* Services */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card { background: #FFFFFF; padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { margin: 0; font-family: var(--display); font-size: 21px; font-weight: 700; }
.card p { margin: 0; color: var(--muted); }

/* Démarche */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.steps .num { font-family: var(--display); font-weight: 800; font-size: 48px; line-height: 1; color: var(--navy); }
.steps h3 { margin: 0; font-size: 19px; font-weight: 600; }
.steps p { margin: 0; color: var(--muted); }
#apropos .h2 { max-width: 720px; margin-bottom: clamp(28px, 5vw, 48px); }

/* Réalisations */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.project { background: #FFFFFF; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.project:hover { color: var(--ink); }
.project img { width: 100%; height: 240px; object-fit: cover; display: block; }
.project-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 8px; }
.tag { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.project h3 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 700; }
.project .meta { color: var(--muted); font-size: 15px; }

/* Blog */
.blog-grid { display: flex; flex-wrap: wrap; gap: 32px; }
.post-featured { flex: 1.3 1 420px; min-width: 0; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 18px; }
.post-featured:hover { color: var(--ink); }
.post-featured img { width: 100%; height: clamp(200px, 45vw, 320px); object-fit: cover; display: block; }
.badge { align-self: flex-start; background: var(--accent); color: var(--ink); font-size: 13px; font-weight: 600; padding: 4px 10px; }
.post-featured h3 { margin: 0; font-family: var(--display); font-size: 30px; font-weight: 800; line-height: 1.15; }
.post-featured p { margin: 0; color: var(--muted); font-size: 17px; }
.post-list { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; }
.post-item { text-decoration: none; color: var(--ink); display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center; }
.post-item:hover { color: var(--navy); }
.post-item img { width: 120px; height: 90px; flex: 0 0 120px; object-fit: cover; display: block; }
.post-item div { display: flex; flex-direction: column; gap: 6px; }
.post-item h3 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.35; }

/* Contact */
.contact-inner { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-info { flex: 1 1 380px; min-width: 0; }
.contact-info .h2 { margin-bottom: 20px; }
.contact-info > p { margin: 0 0 36px; color: var(--muted-light); font-size: 17px; }
.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-list span { display: block; font-size: 13px; color: var(--muted-light); text-transform: uppercase; letter-spacing: 1px; }
.contact-list strong, .contact-list a { font-size: 18px; font-weight: 600; color: #FFFFFF; overflow-wrap: anywhere; }
.quote-form { flex: 1.2 1 440px; min-width: 0; background: #FFFFFF; color: var(--ink); padding: clamp(20px, 5vw, 40px); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.quote-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 15px; }
.quote-form input, .quote-form select, .quote-form textarea { border: 1px solid #A9B6C2; padding: 12px 14px; min-height: 48px; background: #FFFFFF; color: var(--ink); width: 100%; }
.quote-form textarea { resize: vertical; }
.quote-form .full { grid-column: 1 / -1; }
.quote-form .btn { min-height: 52px; font-size: 17px; }
.hp { position: absolute; left: -9999px; }
.notice { grid-column: 1 / -1; padding: 12px 14px; font-weight: 500; }
.notice-ok { background: #E6F4EA; color: #1E5631; }
.notice-err { background: #FDECEA; color: #8A1C12; }

/* Pied de page */
.site-footer { background: var(--ink); color: var(--muted-light); font-size: 15px; }
.footer-top { padding-top: 64px; padding-bottom: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-top > div { display: flex; flex-direction: column; gap: 10px; }
.footer-top .brand-name { color: #FFFFFF; }
.footer-top p { margin: 0; }
.footer-top strong { color: #FFFFFF; }
.site-footer a { color: var(--muted-light); text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; }
.footer-bottom { padding-top: 20px; padding-bottom: 32px; border-top: 1px solid #24384A; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Pages et articles */
.content-area { max-width: 780px; margin: 0 auto; padding: clamp(40px, 8vw, 80px) 24px; }
.content-area h1 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 6vw, 48px); line-height: 1.1; margin: 0 0 16px; }
.content-area .post-meta { color: var(--muted); margin-bottom: 24px; }
.content-area .wp-post-image { width: 100%; height: auto; margin-bottom: 32px; }
.entry-content { font-size: 18px; }
.entry-content img { height: auto; }
.archive-list { list-style: none; padding: 0; margin: 0; }
.archive-list li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.archive-list h2 { margin: 0 0 8px; font-family: var(--display); font-size: 24px; }
.archive-list h2 a { text-decoration: none; color: var(--ink); }
.pagination { margin-top: 32px; display: flex; gap: 16px; }
