/*
Theme Name:   Guillaume Adam
Theme URI:    https://guillaume-adam.com/
Description:  Thème enfant GeneratePress pour guillaume-adam.com : léger, sans constructeur de pages, optimisé pour la vitesse et le SEO.
Author:       Guillaume Adam
Author URI:   https://guillaume-adam.com/
Template:     generatepress
Version:      1.0.9
Text Domain:  guillaume-adam
*/

:root {
	--ga-green: #33e8a6;
	--ga-green-dark: #0b7a52;
	--ga-ink: #0c0c0c;
	--ga-text: #2b2b2b;
	--ga-muted: #5c5c5c;
	--ga-soft: #f4f7f5;
	--ga-line: #e3e8e5;
	--ga-radius: 8px;
	--ga-wrap: 1120px;
	--ga-read: 760px;
}

/* ---------- Base ---------- */
body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 18px;
	line-height: 1.65;
	color: var(--ga-text);
	background: #fff;
}
h1, h2, h3, h4 { color: var(--ga-ink); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(30px, 4.2vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 1.6em; }
h3 { font-size: 21px; margin-top: 1.3em; }
a { color: var(--ga-green-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--ga-ink); }
img { height: auto; }
blockquote { border-left: 4px solid var(--ga-green); background: var(--ga-soft); padding: 16px 20px; font-style: normal; margin: 1.5em 0; }
blockquote p:last-child { margin-bottom: 0; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--ga-line); }
.site-logo img, .site-header .header-image { height: 64px; max-height: none; width: auto; }
@media (max-width: 768px) { .site-logo img, .site-header .header-image { height: 46px; } }
.main-navigation .main-nav ul li a { font-weight: 600; font-size: 16px; color: var(--ga-ink); }
.main-navigation .main-nav ul li[class*="current-menu-"] > a,
.main-navigation .main-nav ul li a:hover { color: var(--ga-green-dark); }

/* ---------- Boutons ---------- */
.wp-block-button__link, .wp-element-button, button, input[type="submit"] {
	background: var(--ga-green);
	color: var(--ga-ink);
	font-weight: 700;
	border-radius: 6px;
	padding: 12px 22px;
	text-decoration: none;
	border: 2px solid var(--ga-green);
}
.wp-block-button__link:hover, .wp-element-button:hover { background: var(--ga-ink); border-color: var(--ga-ink); color: #fff; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: #fff; border-color: #fff; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--ga-ink); }

/* ---------- Pages de contenu : largeur de lecture ---------- */
.page:not(.home) .inside-article,
.single-post .entry-content { max-width: var(--ga-read); }
.page:not(.home) .inside-article { margin-left: auto; margin-right: auto; }
.separate-containers .inside-article { padding: 40px 0; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { border: 1px solid var(--ga-line); padding: 8px 12px; }

/* ---------- Accueil pleine largeur ---------- */
.home .site.grid-container { max-width: none; }
.home .site-content { display: block; padding: 0; }
.home .content-area { width: 100%; float: none; }
.home.separate-containers .inside-article,
.home .inside-article { padding: 0; background: transparent; }
.home .entry-content > * { margin-top: 0; margin-bottom: 0; }
.home .site-main { margin: 0; }

.ga-section { padding: 72px 20px; }
.ga-section.ga-soft { background: var(--ga-soft); }
.ga-section.ga-green { background: var(--ga-green); padding: 40px 20px; }
.ga-inner { max-width: var(--ga-wrap); margin: 0 auto; }
.ga-center { text-align: center; }
.ga-intro { max-width: 720px; margin-left: auto; margin-right: auto; }
.ga-section h2 { margin-top: 0; }

/* Hero */
.ga-hero.wp-block-cover { min-height: 78vh; padding: 60px 20px; }
.ga-hero .wp-block-cover__inner-container { max-width: var(--ga-wrap); width: 100%; margin: 0 auto; }
.ga-hero h1 { color: #fff; font-size: clamp(34px, 5.2vw, 56px); max-width: 720px; margin-bottom: 16px; }
.ga-hero p { color: #fff; font-size: clamp(17px, 1.8vw, 21px); max-width: 640px; }

/* Bandeau de preuves */
.ga-chiffre { font-size: 34px; font-weight: 800; line-height: 1.1; margin: 0 0 4px; color: var(--ga-ink); }
.ga-green p { color: var(--ga-ink); margin-bottom: 0; }

/* Cartes */
.ga-card { background: #fff; border: 1px solid var(--ga-line); border-radius: var(--ga-radius); padding: 24px; height: 100%; }
.ga-card h3 { margin-top: 0; }
.ga-more { font-weight: 700; text-decoration: none; }
.ga-section .wp-block-image img { border-radius: var(--ga-radius); }

/* Derniers articles */
.ga-posts.wp-block-latest-posts.is-grid li { margin-bottom: 24px; }
.ga-posts .wp-block-latest-posts__featured-image img { border-radius: var(--ga-radius); aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.ga-posts .wp-block-latest-posts__post-title { font-weight: 700; color: var(--ga-ink); text-decoration: none; font-size: 19px; line-height: 1.35; display: block; margin-top: 10px; }
.ga-posts .wp-block-latest-posts__post-excerpt { color: var(--ga-muted); font-size: 16px; }

/* ---------- Colonne de droite ---------- */
.sidebar .widget { background: transparent; padding: 0 0 32px; font-size: 16px; }
.sidebar .widget-title { font-size: 17px; text-transform: none; letter-spacing: 0; }
.ga-author { text-align: center; }
.ga-author img { border-radius: var(--ga-radius); margin-bottom: 10px; }
.ga-cta { background: var(--ga-green); padding: 20px; border-radius: var(--ga-radius); color: var(--ga-ink); }
.ga-cta a.ga-cta-btn { display: inline-block; background: var(--ga-ink); color: #fff; padding: 9px 16px; border-radius: 6px; text-decoration: none; font-weight: 700; }

/* ---------- Pied de page ---------- */
.site-info { font-size: 14px; }

@media (max-width: 768px) {
	body { font-size: 17px; }
	.ga-section { padding: 52px 18px; }
	.ga-hero.wp-block-cover { min-height: 70vh; }
}

/* ---------- Correctifs 1.0.1 ---------- */
/* Le logo porte déjà le nom : titre texte masqué visuellement, gardé pour l'accessibilité. */
.site-logo + .site-branding, .site-branding .main-title, .site-branding .site-description {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link,
.wp-block-cover .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background-color: var(--ga-green); color: var(--ga-ink); border-color: var(--ga-green);
}
.entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background-color: #fff; color: var(--ga-ink); border-color: #fff;
}
.single-post .entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.page:not(.home) .entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background-color: var(--ga-ink); color: #fff; border-color: var(--ga-ink);
}
.home .wp-block-social-links { margin-top: 16px; }

/* ---------- Mobile 1.0.3 ---------- */
@media (max-width: 768px) {
	.separate-containers .inside-article, .page:not(.home) .inside-article { padding: 28px 20px; }
	.inside-header { padding: 14px 20px; }
	h1 { font-size: 30px; }
	h2 { font-size: 24px; }
	.ga-section { padding: 48px 20px; }
	.ga-section.ga-green { padding: 32px 20px; }
	.ga-hero.wp-block-cover { min-height: auto; padding: 72px 20px 56px; }
	.ga-hero h1 { font-size: 32px; }
	.ga-hero p { font-size: 17px; }
	.ga-hero .wp-block-buttons { flex-direction: column; align-items: stretch; gap: 12px; }
	.ga-hero .wp-block-button, .ga-hero .wp-block-button__link { width: 100%; text-align: center; }
	.ga-green .wp-block-columns { display: grid !important; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
	.ga-green .wp-block-column { margin: 0 !important; }
	.ga-chiffre { font-size: 26px; }
	.ga-green p { font-size: 15px; line-height: 1.35; }
	.ga-card { padding: 20px; }
	.ga-card ul, .entry-content ul { margin-left: 1.2em; }
	.wp-block-columns { gap: 20px; }
	.entry-content table { font-size: 15px; }
	.entry-content th, .entry-content td { padding: 8px; }
	.wp-block-table { overflow-x: auto; }
	.ga-posts.wp-block-latest-posts.is-grid li { width: 100%; margin-right: 0; }
	.sidebar { padding: 0 20px; }
	.wp-block-image img { border-radius: var(--ga-radius); }
}
