/* Accueil Gabriel Millon — charte : Noir Encre, Ivoire, Or Laiton, Pierre · Italiana + Manrope */

html { scroll-behavior: smooth; }
body.gma-body { margin: 0; background: #0B0B0B; }

.gma {
	--encre: #0B0B0B;
	--encre-2: #141312;
	--ivoire: #F4F1EA;
	--ivoire-2: #EBE6DB;
	--or: #B8955A;
	--or-fonce: #7A5E30;
	--pierre: #8A8580;
	--pierre-fonce: #5E5A55;
	--ligne: #2A2826;
	--ligne-claire: #D9D0BE;
	--doux: #C9C4BB;
	--texte-clair: #2B2925;
	background: var(--encre);
	color: var(--ivoire);
	font-family: Manrope, "Segoe UI", system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
.gma *, .gma *::before, .gma *::after { box-sizing: border-box; }
.gma h1, .gma h2, .gma h3, .gma p, .gma ul, .gma figure, .gma blockquote { margin: 0; padding: 0; }
.gma ul { list-style: none; }
.gma img { display: block; max-width: 100%; height: auto; }
.gma a { color: inherit; text-decoration: none; }
.gma :focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }
.gma svg { flex: none; }

.gma-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.gma-serif { font-family: Italiana, "Didot", Georgia, serif; font-weight: 400; letter-spacing: .02em; }
.gma-kicker {
	display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
	font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--or);
}
.gma-h1 { font-size: clamp(56px, 9vw, 116px); line-height: .98; margin-top: 26px; }
.gma-h2 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.1; margin-top: 18px; text-wrap: balance; }
.gma-h3 { font-size: 34px; line-height: 1.15; }
.gma-h4 { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--pierre-fonce); }
.gma-lead { font-size: clamp(17px, 1.6vw, 20px); font-weight: 300; line-height: 1.6; color: var(--doux); max-width: 34em; text-wrap: pretty; }

.gma-skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--or); color: var(--encre); padding: 10px 16px; }
.gma-skip:focus { left: 16px; }

/* Boutons */
.gma-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.gma-ctas-center { justify-content: center; }
.gma-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px;
	font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
	border: 1px solid var(--or); transition: background .2s, color .2s, border-color .2s;
}
.gma-btn-or { background: var(--or); color: var(--encre); }
.gma-btn-or:hover { background: var(--ivoire); border-color: var(--ivoire); }
.gma-btn-ligne { color: var(--ivoire); }
.gma-btn-ligne:hover { background: var(--ivoire); color: var(--encre); border-color: var(--ivoire); }

/* En-tête */
.gma-top { position: sticky; top: 0; z-index: 20; background: rgba(11, 11, 11, .94); border-bottom: 1px solid var(--ligne); }
.admin-bar .gma-top { top: 32px; }
@media (max-width: 782px) { .admin-bar .gma-top { top: 46px; } }
@media (max-width: 600px) { .admin-bar .gma-top { top: 0; } }
.gma-top-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.gma-brand { display: inline-flex; align-items: center; gap: 14px; font-size: 24px; }
.gma-nav { display: flex; align-items: center; gap: 30px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.gma-nav a { padding: 12px 0; color: var(--doux); transition: color .2s; }
.gma-nav a:hover { color: var(--or); }
.gma-nav .gma-nav-cta { padding: 11px 20px; border: 1px solid var(--or); color: var(--ivoire); }
.gma-nav .gma-nav-cta:hover { background: var(--or); color: var(--encre); }

/* Accroche */
.gma-hero { position: relative; padding: clamp(64px, 10vw, 128px) 0 clamp(72px, 10vw, 120px); }
.gma-hero::before {
	content: ""; position: absolute; inset: 28px; border: 1px solid #3A3328; pointer-events: none;
}
.gma-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.gma-roles { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.gma-roles li {
	display: flex; align-items: center; gap: 16px;
	font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ivoire);
}
.gma-roles li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--or); transform: rotate(45deg); }
.gma-roles + .gma-lead { margin-top: 30px; }
.gma-hero-mark { display: flex; justify-content: center; }
.gma-hero-mark .gma-mono { width: min(100%, 420px); height: auto; }

/* Photos */
.gma-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: var(--encre); }
.gma-photo-grid figure { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--encre-2); }
.gma-photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gma-photo-grid li:hover img { transform: scale(1.04); }
.gma-photo-grid figcaption {
	position: absolute; left: 16px; bottom: 16px; padding: 7px 12px;
	background: rgba(11, 11, 11, .86); color: var(--ivoire);
	font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
}

/* Sections claires */
.gma-light { background: var(--ivoire); color: var(--encre); }
.gma-light .gma-kicker { color: var(--or-fonce); }
.gma-section { padding: clamp(72px, 10vw, 128px) 0; }
.gma-section-suite { padding-top: 0; }
.gma-section-suite .gma-wrap { border-top: 1px solid var(--ligne-claire); padding-top: clamp(64px, 8vw, 104px); }
.gma-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.gma-prose { display: flex; flex-direction: column; gap: 20px; color: var(--texte-clair); padding-top: 8px; text-wrap: pretty; }
.gma-list { display: flex; flex-direction: column; border-top: 1px solid var(--ligne-claire); }
.gma-list li { display: flex; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--ligne-claire); color: var(--encre); font-weight: 500; }

.gma-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.gma-piliers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gma-pilier {
	display: flex; flex-direction: column; gap: 16px; padding: 36px 32px 32px;
	background: #FBF9F4; border: 1px solid var(--ligne-claire); border-top: 2px solid var(--or);
}
.gma-num { font-size: 12px; font-weight: 600; letter-spacing: .3em; color: var(--or-fonce); }
.gma-pilier p { color: var(--texte-clair); font-size: 16px; }
.gma-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.gma-tags li { font-size: 12px; font-weight: 600; letter-spacing: .06em; padding: 6px 10px; background: var(--ivoire-2); color: var(--texte-clair); }

/* Citation */
.gma-quote { padding: clamp(80px, 11vw, 140px) 0; background: var(--encre); }
.gma-quote-in { display: flex; flex-direction: column; align-items: center; gap: 34px; text-align: center; }
.gma-quote blockquote { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.2; max-width: 22em; text-wrap: balance; }

/* Compétences */
.gma-skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.gma-skill-group { display: flex; flex-direction: column; gap: 18px; padding-top: 22px; border-top: 1px solid var(--encre); }
.gma-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.gma-chips li { font-size: 14px; font-weight: 500; padding: 9px 14px; border: 1px solid var(--ligne-claire); background: #FBF9F4; color: var(--encre); }

/* Contact */
.gma-contact { padding: clamp(88px, 12vw, 152px) 0; background: var(--encre); text-align: center; }
.gma-contact-in { display: flex; flex-direction: column; align-items: center; }
.gma-contact .gma-kicker { justify-content: center; }
.gma-contact .gma-h2 { max-width: 16em; }
.gma-contact .gma-lead { margin-top: 18px; }

/* Pied de page */
.gma-foot { border-top: 1px solid var(--ligne); background: var(--encre); color: var(--pierre); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.gma-foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 28px; padding-bottom: 28px; }
.gma-foot a:hover { color: var(--or); }

/* Tablette */
@media (max-width: 960px) {
	.gma-hero-in { grid-template-columns: minmax(0, 1fr); }
	.gma-hero-mark { order: -1; justify-content: flex-start; }
	.gma-hero-mark .gma-mono { width: 140px; }
	.gma-split { grid-template-columns: minmax(0, 1fr); }
	.gma-piliers, .gma-skills { grid-template-columns: minmax(0, 1fr); }
	.gma-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Téléphone */
@media (max-width: 640px) {
	.gma { font-size: 16px; }
	.gma-wrap { padding: 0 20px; }
	.gma-nav a:not(.gma-nav-cta) { display: none; }
	.gma-brand { font-size: 20px; }
	.gma-hero::before { inset: 12px; }
	.gma-hero-mark .gma-mono { width: 104px; }
	.gma-roles li { font-size: 12px; letter-spacing: .12em; }
	.gma-btn { flex: 1 1 100%; }
	.gma-pilier { padding: 28px 22px 24px; }
	.gma-photo-grid figcaption { left: 10px; bottom: 10px; font-size: 10px; letter-spacing: .2em; }
	.gma-foot-in { flex-direction: column; text-align: center; align-items: center; }
}

/* Bouton Statistiques : visible uniquement par l'administrateur connecté */
.gma-admin-stats {
	position: fixed; right: 20px; bottom: 20px; z-index: 30;
	display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px;
	background: var(--or); color: var(--encre); border: 1px solid var(--or);
	font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}
.gma .gma-admin-stats { color: var(--encre); }
.gma-admin-stats:hover { background: var(--ivoire); border-color: var(--ivoire); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.gma-photo-grid img { transition: none; }
}
