/* Gérard MALLAH – thème enfant GeneratePress. Mobile-first. */
:root {
	--gm-navy: #1B2A4A;
	--gm-navy-2: #243660;
	--gm-gold: #D4A843;
	--gm-gold-d: #b98f2f;
	--gm-bg: #FFFFFF;
	--gm-bg-alt: #F5F5F5;
	--gm-surface: #FFFFFF;
	--gm-text: #333333;
	--gm-muted: #5f6673;
	--gm-border: #e3e6ec;
	--gm-heading: #1B2A4A;
	--gm-radius: 10px;
	--gm-shadow: 0 6px 24px rgba(27, 42, 74, .08);
	--gm-font-h: "Montserrat", "Poppins", system-ui, sans-serif;
	--gm-font-b: "Inter", "Open Sans", system-ui, sans-serif;
}
:root[data-theme="dark"] {
	--gm-bg: #0f1829;
	--gm-bg-alt: #141f35;
	--gm-surface: #1a2744;
	--gm-text: #e4e8f0;
	--gm-muted: #a4adbf;
	--gm-border: #2b3a5c;
	--gm-heading: #ffffff;
	--gm-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--gm-bg: #0f1829;
		--gm-bg-alt: #141f35;
		--gm-surface: #1a2744;
		--gm-text: #e4e8f0;
		--gm-muted: #a4adbf;
		--gm-border: #2b3a5c;
		--gm-heading: #ffffff;
		--gm-shadow: 0 6px 24px rgba(0, 0, 0, .35);
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body.gm-site {
	margin: 0;
	background: var(--gm-bg);
	color: var(--gm-text);
	font-family: var(--gm-font-b);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
.gm-site h1, .gm-site h2, .gm-site h3 {
	font-family: var(--gm-font-h);
	color: var(--gm-heading);
	line-height: 1.2;
	margin: 0 0 .6em;
	font-weight: 700;
}
.gm-site h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.gm-site h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
.gm-site h3 { font-size: 1.15rem; }
.gm-site p { margin: 0 0 1em; }
.gm-site a { color: inherit; }
.gm-site img { max-width: 100%; height: auto; display: block; }
.gm-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.gm-center { text-align: center; }
.gm-mt { margin-top: 2rem; }
.gm-skip { position: absolute; left: -9999px; top: 0; background: var(--gm-gold); color: #000; padding: .5rem 1rem; z-index: 200; }
.gm-skip:focus { left: 8px; top: 8px; }
.gm-icon { width: 20px; height: 20px; flex: none; }
.gm-icon--lg { width: 32px; height: 32px; }
:focus-visible { outline: 3px solid var(--gm-gold); outline-offset: 2px; }

/* Boutons */
.gm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .85rem 1.5rem; border-radius: 8px; border: 2px solid transparent;
	font: 600 .95rem var(--gm-font-b); text-decoration: none !important; cursor: pointer;
	transition: transform .15s, background .2s, color .2s, border-color .2s;
}
.gm-btn:hover { transform: translateY(-2px); }
.gm-btn--gold { background: var(--gm-gold); color: #1B2A4A !important; }
.gm-btn--gold:hover { background: var(--gm-gold-d); }
.gm-btn--navy { background: var(--gm-navy); color: #fff !important; }
.gm-btn--navy:hover { background: var(--gm-navy-2); }
:root[data-theme="dark"] .gm-btn--navy { background: var(--gm-gold); color: #1B2A4A !important; }
.gm-btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff !important; }
.gm-btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.gm-btn--sm { padding: .55rem 1.1rem; font-size: .85rem; }
.gm-btn--block { display: flex; width: 100%; margin-top: 1.25rem; }

/* En-tête sticky */
.gm-header { position: sticky; top: 0; z-index: 100; background: var(--gm-navy); color: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .18); }
.admin-bar .gm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .gm-header { top: 46px; } }
.gm-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 12px; }
.gm-brand { text-decoration: none !important; color: #fff !important; display: flex; flex-direction: column; line-height: 1.15; }
.gm-brand__name { font: 500 1.25rem var(--gm-font-h); }
.gm-brand__name strong { color: var(--gm-gold); font-weight: 800; }
.gm-brand__tag { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.gm-header__tools { display: flex; gap: 6px; align-items: center; order: 3; }
.gm-iconbtn { background: transparent; border: 1px solid rgba(255, 255, 255, .25); color: #fff; width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.gm-iconbtn:hover { background: rgba(255, 255, 255, .1); }
.gm-theme-icon--sun { display: none; }
:root[data-theme="dark"] .gm-theme-icon--sun { display: block; }
:root[data-theme="dark"] .gm-theme-icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .gm-theme-icon--sun { display: block; }
	:root:not([data-theme="light"]) .gm-theme-icon--moon { display: none; }
}
.gm-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--gm-navy); padding: 12px 16px 20px; border-top: 1px solid rgba(255, 255, 255, .12); }
.gm-nav.is-open { display: block; }
.gm-menu { list-style: none; margin: 0 0 12px; padding: 0; }
.gm-menu a { display: block; padding: .7rem 0; color: #fff !important; text-decoration: none !important; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.gm-menu a:hover, .gm-menu .current-menu-item > a { color: var(--gm-gold) !important; }
.gm-nav__cta { width: 100%; }
@media (min-width: 900px) {
	.gm-burger { display: none; }
	.gm-header__tools { order: 0; }
	.gm-nav { display: flex; position: static; background: none; padding: 0; border: 0; align-items: center; gap: 20px; margin-left: auto; margin-right: 12px; }
	.gm-menu { display: flex; gap: 22px; margin: 0; }
	.gm-menu a { border: 0; padding: .4rem 0; font-size: .95rem; }
	.gm-nav__cta { width: auto; }
}

/* Hero */
.gm-hero { background: linear-gradient(135deg, var(--gm-navy) 0%, #12203b 100%); color: #fff; padding: 56px 0 0; overflow: hidden; }
.gm-hero__inner { display: grid; gap: 32px; align-items: end; }
.gm-hero__text { padding-bottom: 40px; }
.gm-hero h1 { color: #fff; }
.gm-hero__sub { font-size: 1.05rem; opacity: .88; max-width: 620px; }
.gm-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.gm-hero__photo { max-width: 340px; margin: 0 auto; }
.gm-hero__photo img { border-radius: 14px 14px 0 0; border-bottom: 4px solid var(--gm-gold); width: 100%; }
.gm-eyebrow { font: 600 .78rem var(--gm-font-b); letter-spacing: .14em; text-transform: uppercase; color: var(--gm-gold-d); margin: 0 0 .8rem; }
.gm-eyebrow a { text-decoration: none; }
.gm-eyebrow--light { color: var(--gm-gold); }
@media (min-width: 900px) {
	.gm-hero { padding-top: 80px; }
	.gm-hero__inner { grid-template-columns: 1.3fr .7fr; }
	.gm-hero__text { padding-bottom: 80px; }
	.gm-hero__photo { margin: 0; max-width: none; }
}

/* Chiffres clés */
.gm-stats { background: var(--gm-gold); color: #1B2A4A; }
.gm-stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-top: 28px; padding-bottom: 28px; text-align: center; }
.gm-stat__num { font: 800 clamp(2rem, 6vw, 3rem) var(--gm-font-h); margin: 0; line-height: 1; }
.gm-stat__label { margin: .3rem 0 0; font-weight: 600; }
.gm-stat__sub { margin: .1rem 0 0; font-size: .78rem; opacity: .8; }
@media (min-width: 800px) { .gm-stats__grid { grid-template-columns: repeat(4, 1fr); } }

/* Sections */
.gm-section { padding: 56px 0; background: var(--gm-bg); }
.gm-section--white { background: var(--gm-bg-alt); }
.gm-section__title { margin-bottom: 1.6rem; position: relative; }
.gm-section__title::after { content: ""; display: block; width: 56px; height: 4px; background: var(--gm-gold); margin-top: .6rem; border-radius: 2px; }
.gm-center.gm-section__title::after { margin-left: auto; margin-right: auto; }
.gm-pagehead { background: var(--gm-navy); color: #fff; padding: 48px 0; }
.gm-pagehead h1 { color: #fff; margin-bottom: .4em; }
.gm-pagehead .gm-eyebrow, .gm-pagehead .gm-eyebrow a { color: var(--gm-gold); }
.gm-lead { max-width: 720px; opacity: .9; font-size: 1.05rem; margin: 0; }

/* Grilles & cartes */
.gm-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gm-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .gm-grid { grid-template-columns: repeat(3, 1fr); } .gm-grid--2 { grid-template-columns: repeat(2, 1fr); } }
.gm-card, .gm-service, .gm-edu, .gm-skill, .gm-ref, .gm-panel, .gm-quote {
	background: var(--gm-surface); border: 1px solid var(--gm-border); border-radius: var(--gm-radius); box-shadow: var(--gm-shadow);
}
.gm-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .2s; }
.gm-card:hover { transform: translateY(-4px); }
.gm-card[hidden] { display: none; }
.gm-card__media { display: block; background: var(--gm-bg-alt); aspect-ratio: 16 / 10; overflow: hidden; }
.gm-card__img { width: 100%; height: 100%; object-fit: cover; }
.gm-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.gm-card__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: .6rem; }
.gm-card__year { font-size: .85rem; color: var(--gm-muted); font-weight: 600; }
.gm-card__title { font-size: 1.05rem; margin: 0 0 .6rem; }
.gm-card__title a { text-decoration: none; }
.gm-card .gm-link { margin-top: auto; padding-top: 12px; }
.gm-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--gm-navy) !important; text-decoration: none; }
:root[data-theme="dark"] .gm-link { color: var(--gm-gold) !important; }
.gm-link .gm-icon { width: 16px; height: 16px; transition: transform .2s; }
.gm-link:hover .gm-icon { transform: translateX(4px); }

/* Badges secteurs */
.gm-badge { display: inline-block; font: 600 .72rem var(--gm-font-b); padding: .25rem .65rem; border-radius: 999px; color: #fff; background: var(--gm-navy); }
.gm-badge--sante { background: #1b7f6b; }
.gm-badge--banque { background: #2b5fb4; }
.gm-badge--finances-publiques { background: #7a4aa6; }
.gm-badge--enseignement { background: #c0662b; }
.gm-badge--multimedia { background: #b83a64; }
.gm-badge--parlement { background: #8a6d1d; }

/* Tags */
.gm-tags { list-style: none; margin: 0 0 .6rem; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gm-tags li { font-size: .78rem; padding: .2rem .6rem; border-radius: 6px; background: var(--gm-bg-alt); border: 1px solid var(--gm-border); color: var(--gm-text); }
.gm-tags--lg li { font-size: .88rem; padding: .3rem .8rem; background: rgba(212, 168, 67, .14); border-color: rgba(212, 168, 67, .5); }

/* Filtres */
.gm-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.8rem; }
.gm-filter { font: 600 .88rem var(--gm-font-b); padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--gm-border); background: var(--gm-surface); color: var(--gm-text); cursor: pointer; transition: all .2s; }
.gm-filter:hover { border-color: var(--gm-gold); }
.gm-filter.is-active { background: var(--gm-navy); border-color: var(--gm-navy); color: #fff; }
:root[data-theme="dark"] .gm-filter.is-active { background: var(--gm-gold); border-color: var(--gm-gold); color: #1B2A4A; }

/* Services */
.gm-service { padding: 26px 24px; display: flex; flex-direction: column; gap: 4px; }
.gm-service h2, .gm-service h3 { font-size: 1.1rem; }
.gm-service p { color: var(--gm-muted); flex: 1; }
.gm-service__icon { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; background: rgba(212, 168, 67, .16); color: var(--gm-gold-d); margin-bottom: 12px; }

/* Logos (carrousel gris) */
.gm-logos { overflow: hidden; margin-top: 1rem; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.gm-logos__track { display: flex; gap: 48px; width: max-content; animation: gm-scroll 32s linear infinite; align-items: center; }
.gm-logos:hover .gm-logos__track { animation-play-state: paused; }
.gm-logos img { height: 64px; width: auto; filter: grayscale(1); opacity: .7; transition: opacity .2s; }
.gm-logos img:hover { opacity: 1; }
:root[data-theme="dark"] .gm-logos img { filter: grayscale(1) invert(.85); }
@keyframes gm-scroll { to { transform: translateX(-50%); } }

/* Témoignage */
.gm-quote { max-width: 780px; margin: 0 auto; padding: 32px 28px; border-left: 5px solid var(--gm-gold); }
.gm-quote blockquote { margin: 0; font: italic 500 1.2rem/1.6 var(--gm-font-h); color: var(--gm-heading); }
.gm-quote figcaption { color: var(--gm-muted); font-size: .92rem; }

/* CTA */
.gm-cta { background: var(--gm-navy); color: #fff; padding: 44px 0; }
.gm-cta__inner { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.gm-cta h2 { color: #fff; margin-bottom: .3em; }
.gm-cta p { margin: 0; opacity: .85; }
@media (min-width: 800px) { .gm-cta__inner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* À propos */
.gm-about { display: grid; gap: 32px; }
.gm-about__photo { max-width: 320px; }
.gm-about__photo img { border-radius: var(--gm-radius); border-bottom: 4px solid var(--gm-gold); }
@media (min-width: 900px) { .gm-about { grid-template-columns: 1.6fr .6fr; align-items: start; } }
.gm-prose { max-width: 70ch; }

/* Timeline */
.gm-timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.gm-timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--gm-border); }
.gm-timeline__item { position: relative; margin-bottom: 18px; }
.gm-timeline__dot { position: absolute; left: -28px; top: 18px; width: 16px; height: 16px; border-radius: 50%; background: var(--gm-gold); border: 3px solid var(--gm-bg-alt); box-shadow: 0 0 0 2px var(--gm-gold); }
.gm-timeline__head { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; background: var(--gm-surface); border: 1px solid var(--gm-border); border-radius: var(--gm-radius); cursor: pointer; font: inherit; color: inherit; box-shadow: var(--gm-shadow); position: relative; }
.gm-timeline__head::after { content: "+"; position: absolute; right: 18px; top: 14px; font-size: 1.4rem; color: var(--gm-gold-d); line-height: 1; }
.gm-timeline__head[aria-expanded="true"]::after { content: "–"; }
.gm-timeline__period { font: 700 .82rem var(--gm-font-b); color: var(--gm-gold-d); letter-spacing: .04em; }
.gm-timeline__role { font: 700 1.05rem var(--gm-font-h); color: var(--gm-heading); padding-right: 28px; }
.gm-timeline__org { color: var(--gm-muted); font-size: .92rem; }
.gm-timeline__body { margin: 6px 0 0; padding: 14px 18px 14px 36px; background: var(--gm-surface); border: 1px dashed var(--gm-border); border-radius: var(--gm-radius); }
.gm-timeline__body[hidden] { display: none; }

/* Formation / compétences / refs */
.gm-edu, .gm-skill, .gm-ref { padding: 22px 24px; }
.gm-edu__years { color: var(--gm-gold-d); font-weight: 700; margin-bottom: .3rem; }
.gm-ref__name { font: 700 1.05rem var(--gm-font-h); color: var(--gm-heading); margin-bottom: .2rem; }
.gm-ref p:last-child { margin: 0; color: var(--gm-muted); }

/* Projet détail */
.gm-project { display: grid; gap: 32px; }
.gm-project h2 { margin-top: 1.6rem; }
.gm-project h2:first-child { margin-top: 0; }
.gm-project__hero img { border-radius: var(--gm-radius); margin-bottom: 1.5rem; }
.gm-panel { padding: 24px; }
.gm-panel h2 { margin-top: 0; font-size: 1.15rem; }
.gm-panel h3 { margin-top: 1.2rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gm-muted); }
.gm-dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.gm-dl dt { font-weight: 600; color: var(--gm-muted); }
.gm-dl dd { margin: 0; }
.gm-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gm-checklist li { display: flex; gap: 10px; align-items: flex-start; }
.gm-checklist .gm-icon { width: 20px; height: 20px; color: #1b7f6b; margin-top: 2px; stroke-width: 2.2; }
.gm-checklist--gold .gm-icon { color: var(--gm-gold-d); }
@media (min-width: 980px) { .gm-project { grid-template-columns: 1.7fr .9fr; align-items: start; } .gm-project__side { position: sticky; top: 92px; } }

/* Contact */
.gm-contact { display: grid; gap: 32px; }
@media (min-width: 900px) { .gm-contact { grid-template-columns: 1.4fr 1fr; } }
.gm-form p { margin: 0 0 16px; }
.gm-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--gm-heading); }
.gm-form input, .gm-form select, .gm-form textarea { width: 100%; padding: .75rem .9rem; font: inherit; color: var(--gm-text); background: var(--gm-surface); border: 1px solid var(--gm-border); border-radius: 8px; }
.gm-form input:focus, .gm-form select:focus, .gm-form textarea:focus { border-color: var(--gm-gold); outline: 2px solid rgba(212, 168, 67, .4); }
.gm-form__row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .gm-form__row { grid-template-columns: 1fr 1fr; } }
.gm-hp { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }
.gm-alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-weight: 500; }
.gm-alert--ok { background: #e3f4ec; color: #14573f; border: 1px solid #a7d9c3; }
.gm-alert--err { background: #fde8e8; color: #8a1f1f; border: 1px solid #f1b4b4; }
.gm-contactlist { margin: 0; }
.gm-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gm-footer__list--icons li { display: flex; gap: 10px; align-items: flex-start; }
.gm-footer__list--icons .gm-icon { margin-top: 3px; color: var(--gm-gold); }
.gm-map { margin-top: 20px; border-radius: var(--gm-radius); overflow: hidden; border: 1px solid var(--gm-border); }
.gm-map iframe { width: 100%; height: 300px; border: 0; display: block; }

/* Footer */
.gm-footer { background: #101b33; color: #cfd6e4; padding-top: 48px; }
.gm-footer a { color: #cfd6e4; text-decoration: none; }
.gm-footer a:hover { color: var(--gm-gold); }
.gm-footer__grid { display: grid; gap: 28px; padding-bottom: 36px; }
@media (min-width: 800px) { .gm-footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.gm-footer__brand { font: 500 1.3rem var(--gm-font-h); color: #fff; margin-bottom: .5rem; }
.gm-footer__brand strong { color: var(--gm-gold); }
.gm-footer__muted { opacity: .8; font-size: .92rem; }
.gm-footer__title { color: #fff !important; font-size: 1rem !important; text-transform: uppercase; letter-spacing: .08em; }
.gm-social { display: flex; gap: 10px; margin-top: 12px; }
.gm-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); }
.gm-social a:hover { border-color: var(--gm-gold); }
.gm-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0; font-size: .85rem; opacity: .8; }

/* WhatsApp flottant */
.gm-whatsapp { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff !important; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); z-index: 90; transition: transform .2s; }
.gm-whatsapp:hover { transform: scale(1.08); }

/* Animations d'apparition */
.js .gm-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .gm-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .gm-reveal { opacity: 1; transform: none; transition: none; }
	.gm-logos__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
	.gm-btn, .gm-card { transition: none; }
}
