/*
Theme Name: Clinova Theme
Theme URI: https://clinova-health-ai.example
Author: Clinova Health & AI
Description: Theme WordPress sur mesure pour Clinova Health & AI, codé à la main sans page builder. Palette bleu pétrole / vert émeraude sur fond clair, conçu pour être géré entièrement depuis l'administration WordPress.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clinova-theme
*/

/* =========================================================
   1. Fonts (self-hosted, no external CDN — GDPR-friendly for a
   health-sector site, and no build step needed)
   ========================================================= */

/* Michroma: squared, extended geometric display face — closest free
   match to Eurostile, used for headings and branding to mirror the logo. */
@font-face {
	font-family: 'Michroma';
	src: url('assets/fonts/michroma-regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* Jura: same geometric/technical family spirit as Eurostile, but with a
   full weight range that stays legible in body copy. Variable font, so
   font-weight: 300-700 works directly without extra @font-face rules. */
@font-face {
	font-family: 'Jura';
	src: url('assets/fonts/jura-variable.woff2') format('woff2-variations');
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

/* =========================================================
   2. CSS Custom Properties (brand palette)
   ========================================================= */
:root {
	--color-primary: #0E3B43;       /* Petrol blue - brand color */
	--color-accent: #1CD9A0;        /* Emerald green - accent */
	--color-text-on-dark: #FFFFFF;  /* Text on petrol blue background */
	--color-bg-light: #FFFFFF;      /* Main site background */
	--color-text-dark: #1A1A1A;     /* Main text on light background */

	/* Derived tones used for subtle depth without leaving the light theme */
	--color-primary-light: #164e59;
	--color-primary-lighter: #eef4f5;
	--color-accent-dark: #14a87e;
	--color-border: #e2e8ea;
	--color-bg-alt: #f7fafa;
	--color-text-muted: #5b6b6e;

	--font-heading: 'Michroma', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--font-body: 'Jura', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

	--container-width: 1160px;
	--radius-md: 0;
	--radius-lg: 0;
	--shadow-sm: 0 2px 8px rgba(14, 59, 67, 0.08);
	--shadow-md: 0 8px 24px rgba(14, 59, 67, 0.12);
}

/* =========================================================
   3. Reset / base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background-color: var(--color-bg-light);
	color: var(--color-text-dark);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent-dark); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	color: var(--color-primary);
	line-height: 1.35;
	margin: 0 0 0.6em;
	font-weight: 400; /* Michroma only ships a single (regular) weight */
	letter-spacing: 0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.2em; }

ul, ol { padding-inline-start: 1.3em; }

button, input, textarea, select { font-family: inherit; font-size: inherit; }

.container {
	width: 100%;
	max-width: var(--container-width);
	margin-inline: auto;
	padding-inline: 20px;
}

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* =========================================================
   4. Buttons & links
   ========================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.85em 1.6em;
	border-radius: 0;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-accent {
	background-color: var(--color-accent);
	color: var(--color-primary);
}
.btn-accent:hover { background-color: var(--color-accent-dark); color: var(--color-text-on-dark); }

.btn-outline {
	background-color: transparent;
	border-color: var(--color-text-on-dark);
	color: var(--color-text-on-dark);
}
.btn-outline:hover { background-color: var(--color-text-on-dark); color: var(--color-primary); }

.btn-primary-outline {
	background-color: transparent;
	border-color: var(--color-primary);
	color: var(--color-primary);
}
.btn-primary-outline:hover { background-color: var(--color-primary); color: var(--color-text-on-dark); }

/* =========================================================
   5. Site header
   ========================================================= */
.site-header {
	background-color: var(--color-primary);
	color: var(--color-text-on-dark);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: var(--shadow-sm);
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: 14px;
	gap: 20px;
}

.site-header-actions { display: flex; align-items: center; gap: 14px; }

.site-branding { display: flex; align-items: center; gap: 12px; }

.site-branding a { color: var(--color-text-on-dark); display: flex; align-items: center; gap: 10px; }

.site-branding .custom-logo { max-height: 44px; width: auto; }

/* Header logo: height drives the size, width follows the ~5.2:1 ratio. */
.site-logo-link { display: block; line-height: 0; flex-shrink: 0; }
.site-logo-img { display: block; height: 40px; width: auto; max-width: 100%; }
@media (max-width: 600px) {
	.site-logo-img { height: 30px; }
}

.site-title {
	font-family: var(--font-heading);
	font-size: 1.1rem;
	font-weight: 400; /* Michroma only ships a single (regular) weight */
	color: var(--color-text-on-dark);
	margin: 0;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.site-description {
	display: block;
	font-size: 0.7rem;
	font-weight: 400;
	color: var(--color-accent);
	margin-top: 2px;
}

.menu-toggle {
	display: none;
	background: transparent;
	border: 2px solid var(--color-text-on-dark);
	color: var(--color-text-on-dark);
	border-radius: 0;
	padding: 8px 10px;
	cursor: pointer;
}

.primary-navigation ul {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
}

.primary-navigation li { position: relative; }

.primary-navigation a {
	display: inline-block;
	color: var(--color-text-on-dark);
	padding: 10px 14px;
	border-radius: 0;
	font-weight: 600;
	font-size: 0.95rem;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a {
	background-color: rgba(28, 217, 160, 0.16);
	color: var(--color-accent);
}

/* Language switcher (Polylang) */
.language-switcher {
	position: relative;
}

.language-switcher-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background-color: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	cursor: pointer;
}

.language-switcher-toggle svg {
	width: 27px;
	height: 27px;
	display: block;
}

.icon-language-bubble { fill: var(--color-accent); }
.icon-language-glyph {
	fill: var(--color-primary);
	font-family: var(--font-body);
	font-size: 8.5px;
	font-weight: 700;
}

.language-switcher-toggle:hover .icon-language-bubble,
.language-switcher.is-open .icon-language-bubble {
	fill: var(--color-text-on-dark);
}

.language-switcher-list {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	top: calc(100% + 6px);
	inset-inline-end: 0;
	list-style: none;
	margin: 0;
	padding: 6px 0;
	min-width: 170px;
	background-color: var(--color-primary);
	border: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: var(--shadow-md);
	z-index: 110;
	transition: opacity 0.12s ease;
}
.language-switcher.is-open .language-switcher-list {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.language-switcher-list a {
	display: block;
	padding: 9px 16px;
	color: var(--color-text-on-dark);
	font-size: 0.9rem;
}
.language-switcher-list a:hover,
.language-switcher-list a[aria-current="true"] {
	background-color: var(--color-accent);
	color: var(--color-primary);
}

/* =========================================================
   6. Hero (front page)
   ========================================================= */
.hero {
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
	color: var(--color-text-on-dark);
	padding: 90px 0;
}

.hero .container {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 40px;
	align-items: center;
}

.hero h1 { color: var(--color-text-on-dark); }

.hero .eyebrow {
	display: inline-block;
	color: var(--color-accent);
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	font-size: 0.8rem;
	margin-bottom: 14px;
}

.hero p.lead {
	font-size: 1.15rem;
	color: rgba(255, 255, 255, 0.88);
	max-width: 46ch;
}

.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.hero-visual {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--radius-lg);
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.9rem;
	text-align: center;
	padding: 20px;
	overflow: hidden;
}
/* Real image chosen in Personnaliser: fills the 4:3 frame edge to edge. */
.hero-visual:has(.hero-visual-img) { padding: 0; }
.hero-visual-img { display: block; width: 100%; height: 100%; }
.hero-visual-img.is-cover { object-fit: cover; }
.hero-visual-img.is-contain { object-fit: contain; }

/* Positioning context of the hero decor. */
.hero { position: relative; }

/* =========================================================
   7. Sections (generic)
   ========================================================= */
.section { padding: 72px 0; }
.section-alt { background-color: var(--color-bg-alt); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-header .eyebrow {
	display: inline-block;
	color: var(--color-accent-dark);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 0.78rem;
	margin-bottom: 10px;
}
.section-header p { color: var(--color-text-muted); }

.section-footer-cta { text-align: center; margin-top: 40px; }

/* =========================================================
   8. Card grids (services, team, clients, partners)
   ========================================================= */
.grid {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(3, 1fr);
}

.card {
	background-color: var(--color-bg-light);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 30px;
	box-shadow: var(--shadow-sm);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.card-icon {
	width: 52px;
	height: 52px;
	border-radius: 0;
	background-color: var(--color-primary-lighter);
	color: var(--color-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	margin-bottom: 18px;
}

.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; color: var(--color-text-muted); }

.grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-4 .card { padding: 26px 22px; }
.grid-4 .card h3 { font-size: 1.02rem; }

a.service-card { display: block; color: inherit; }
a.service-card:hover { color: inherit; }
a.service-card:hover h3 { color: var(--color-accent-dark); }

/* =========================================================
   8b. Content sections (wp-admin > Sections) — the company
   presentation: title + optional image on one side, points on the other
   ========================================================= */
.content-section { position: relative; scroll-margin-top: 90px; }
.content-section .eyebrow,
.content-section-head .eyebrow {
	display: inline-block;
	color: var(--color-accent-dark);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 0.78rem;
	margin-bottom: 10px;
}
.content-section-grid {
	display: grid;
	grid-template-columns: 5fr 6fr;
	gap: 56px;
	align-items: start;
}
.content-section.is-reversed .content-section-head { order: 2; }
.content-section-head h2 { margin-bottom: 16px; }
.content-section-intro { color: var(--color-text-muted); font-size: 1.05rem; }
.content-section-figure { margin: 28px 0 0; }
.content-section-figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.content-section-figure.is-banner { margin: 0 0 40px; }
.content-section-figure.is-banner img { aspect-ratio: 21 / 9; }
.content-section.no-image .content-section-head { position: sticky; top: 110px; }

.content-section-points { display: grid; gap: 0; }
.content-point {
	padding-block: 22px;
	padding-inline: 22px 0;
	border-inline-start: 3px solid var(--color-accent);
	border-bottom: 1px solid var(--color-border);
}
.content-point:last-child { border-bottom: none; }
.content-point h3 { font-size: 1.05rem; margin-bottom: 8px; }
.content-point p { margin: 0; color: var(--color-text-muted); }

.page-intro { padding-bottom: 0; }
.page-intro .entry-content { font-size: 1.12rem; text-align: center; }


.logo-card { position: relative; }

/* Team cards */
.team-card {
	display: block;
	background-color: var(--color-bg-light);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	color: inherit;
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }

.team-card-photo {
	aspect-ratio: 1 / 1;
	background-color: var(--color-primary-lighter);
	overflow: hidden;
}
.team-card-photo img { width: 100%; height: 100%; object-fit: cover; }

.team-card-body { padding: 20px; text-align: center; }
.team-card-body h3 { margin-bottom: 4px; font-size: 1.1rem; }
.team-card-body .job-title { color: var(--color-accent-dark); font-weight: 600; font-size: 0.92rem; }

/* Logo cards (clients / partners) */
.logo-card {
	background-color: var(--color-bg-light);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 28px;
	text-align: center;
	box-shadow: var(--shadow-sm);
}
.logo-card-logo {
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}
.logo-card-logo img { max-height: 70px; width: auto; object-fit: contain; }
.logo-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.logo-card blockquote {
	margin: 0;
	color: var(--color-text-muted);
	font-style: italic;
	font-size: 0.94rem;
}

/* Logo strip (front page "ils nous font confiance") */
.logo-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 40px;
}
.logo-strip img { max-height: 48px; width: auto; opacity: 0.85; filter: grayscale(15%); }

/* =========================================================
   9. Single team member
   ========================================================= */
.team-single {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 50px;
	align-items: start;
}
.team-single-photo {
	border-radius: var(--radius-lg);
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background-color: var(--color-primary-lighter);
	box-shadow: var(--shadow-sm);
}
.team-single-photo img { width: 100%; height: 100%; object-fit: cover; }

.team-single .job-title {
	color: var(--color-accent-dark);
	font-weight: 700;
	font-size: 1.1rem;
	margin-bottom: 24px;
}
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid var(--color-border);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .label { color: var(--color-text-muted); min-width: 90px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-list .contact-type-textarea,
.contact-list .contact-type-address { align-items: flex-start; }
.contact-list .contact-type-textarea .label,
.contact-list .contact-type-address .label { padding-top: 3px; }

.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 0;
	background-color: var(--color-primary-lighter);
	color: var(--color-primary);
	font-size: 0.85rem;
	font-weight: 700;
}
.social-links a:hover { background-color: var(--color-accent); color: var(--color-primary); }
.social-links .social-icon { width: 18px; height: 18px; object-fit: contain; }

.back-link { display: inline-block; margin-bottom: 30px; font-weight: 600; }

/* =========================================================
   10. Page header banner (interior pages)
   ========================================================= */
.page-banner {
	background-color: var(--color-primary);
	color: var(--color-text-on-dark);
	padding: 56px 0;
	text-align: center;
}
.page-banner h1 { color: var(--color-text-on-dark); margin-bottom: 10px; }
.page-banner p { color: rgba(255, 255, 255, 0.85); max-width: 620px; margin: 0 auto; }

/* =========================================================
   11. Entry content (Gutenberg core blocks on editable pages)
   ========================================================= */
.entry-content { max-width: 780px; margin-inline: auto; }
.entry-content.is-wide { max-width: var(--container-width); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { margin-top: 1.4em; }
.entry-content ul li, .entry-content ol li { margin-bottom: 0.4em; }
.entry-content blockquote {
	border-inline-start: 4px solid var(--color-accent);
	margin: 1.6em 0;
	padding: 0.4em 1.4em;
	color: var(--color-text-muted);
	font-style: italic;
}
.entry-content .wp-block-columns { gap: 28px; }
.entry-content figcaption { color: var(--color-text-muted); font-size: 0.85rem; text-align: center; }
.entry-content a { text-decoration: underline; }

/* =========================================================
   12. CTA band
   ========================================================= */
.cta-band {
	background-color: var(--color-primary);
	color: var(--color-text-on-dark);
	padding: 56px 0;
	text-align: center;
}
.cta-band h2 { color: var(--color-text-on-dark); }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 520px; margin: 0 auto 26px; }

/* =========================================================
   13. Contact page
   ========================================================= */
.contact-layout {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 50px;
	align-items: start;
}
.contact-info-card {
	background-color: var(--color-bg-alt);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 34px;
}
.contact-info-card h3 { margin-bottom: 18px; }
.contact-form-wrap {
	background-color: var(--color-bg-light);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 34px;
	box-shadow: var(--shadow-sm);
}

/* Basic Contact Form 7 styling */
.wpcf7-form p { margin-bottom: 16px; }
.wpcf7-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background-color: var(--color-bg-light);
	color: var(--color-text-dark);
}
.wpcf7-form input:focus, .wpcf7-form textarea:focus {
	outline: none;
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(28, 217, 160, 0.2);
}
.wpcf7-form input[type="submit"] {
	background-color: var(--color-accent);
	color: var(--color-primary);
	border: none;
	border-radius: 0;
	padding: 0.85em 1.8em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
}
.wpcf7-form input[type="submit"]:hover { background-color: var(--color-accent-dark); color: var(--color-text-on-dark); }
.wpcf7-not-valid-tip { color: #c0392b; font-size: 0.85rem; margin-top: 4px; }
.wpcf7-response-output { border-radius: var(--radius-md); padding: 12px 16px; margin-top: 20px; }

/* =========================================================
   14. Footer
   ========================================================= */
.site-footer {
	background-color: var(--color-primary);
	color: rgba(255, 255, 255, 0.85);
	padding-top: 60px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-grid h3 {
	color: var(--color-text-on-dark);
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 18px;
}

.footer-about .site-title { color: var(--color-text-on-dark); }
.footer-about p { color: rgba(255, 255, 255, 0.75); max-width: 34ch; }

.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255, 255, 255, 0.8); }
.footer-links a:hover { color: var(--color-accent); }

.footer-contact ul { list-style: none; padding: 0; margin: 0 0 18px; }
.footer-contact li { margin-bottom: 10px; color: rgba(255, 255, 255, 0.8); }
.footer-contact a { color: rgba(255, 255, 255, 0.8); }
.footer-contact a:hover { color: var(--color-accent); }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 0;
	background-color: rgba(255, 255, 255, 0.1);
	color: var(--color-text-on-dark);
	font-size: 0.8rem;
	font-weight: 700;
}
.footer-social a:hover { background-color: var(--color-accent); color: var(--color-primary); }
.footer-social .social-icon { width: 16px; height: 16px; }

.footer-bottom {
	padding-block: 22px;
	text-align: center;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.6);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.75); }

/* =========================================================
   15. Responsive
   ========================================================= */
@media (max-width: 900px) {
	.grid { grid-template-columns: repeat(2, 1fr); }
	.grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
	.content-section-grid { grid-template-columns: 1fr; gap: 28px; }
	.content-section.is-reversed .content-section-head { order: 0; }
	.content-section.no-image .content-section-head { position: static; }
	.hero .container { grid-template-columns: 1fr; }
	.hero-visual { order: -1; }
	.team-single { grid-template-columns: 240px 1fr; }
	.contact-layout { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Burger menu: the full 7-item menu + logo + language switcher needs
   ~1150px on one line, so below that the menu folds into the toggle. */
@media (max-width: 1180px) {
	.menu-toggle { display: inline-flex; align-items: center; justify-content: center; }

	.primary-navigation {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background-color: var(--color-primary);
		box-shadow: var(--shadow-md);
	}
	.primary-navigation.is-open { display: block; }
	.primary-navigation ul { flex-direction: column; align-items: stretch; padding: 10px 20px 20px; gap: 0; }
	.primary-navigation a { display: block; padding: 12px 10px; white-space: normal; }
}

@media (max-width: 680px) {
	.grid { grid-template-columns: 1fr; }
	.grid.grid-4 { grid-template-columns: 1fr; }
	.hero { padding: 60px 0; }
	.section { padding: 52px 0; }
	.team-single { grid-template-columns: 1fr; }
	.team-single-photo { max-width: 260px; margin: 0 auto; }
	.footer-grid { grid-template-columns: 1fr; text-align: start; }
}

/* =========================================================
   16. Version 1.1 — décor du bandeau, mini-logo, ancres
   ========================================================= */

/* Neon circuit network (client image, transparent PNG → WebP) on the
   visual side of the hero, full height, above the green gradient only. */
.hero { overflow: hidden; isolation: isolate; }
.hero > .container { position: relative; z-index: 1; }
.hero-decor {
	position: absolute;
	top: 0;
	bottom: 0;
	inset-inline-end: 0;
	width: 25%; /* client request: at most a quarter of the hero width */
	/* Fine vector version of the client image (thin traces, zoomed-out density). */
	background: url("assets/images/brand/reseau-circuits-fin.svg") right center / cover no-repeat;
	pointer-events: none;
	z-index: 0;
}
[dir="rtl"] .hero-decor { transform: scaleX(-1); }
@media (max-width: 900px) {
	.hero-decor { opacity: 0.45; }
}

/* Mini Clinova mark: two masks (the « A » and the green parallelogram) so
   it follows the text colour of whatever it sits in. */
.brand-mark {
	position: relative;
	display: inline-block;
	flex: none;
	width: 1.45em;
	height: 1.12em;
	vertical-align: -0.15em;
}
.brand-mark-a,
.brand-mark-dot {
	position: absolute;
	inset: 0;
	-webkit-mask: url("assets/images/brand/mark-c-mask.png") center / contain no-repeat;
	mask: url("assets/images/brand/mark-c-mask.png") center / contain no-repeat;
}
.brand-mark-a { background-color: currentColor; }
.brand-mark-dot {
	background-color: var(--color-accent);
	-webkit-mask-image: url("assets/images/brand/mark-dot-mask.png");
	mask-image: url("assets/images/brand/mark-dot-mask.png");
}
/* On the green button the green parallelogram would vanish: one colour. */
.btn-accent .brand-mark-dot { background-color: currentColor; }
.btn .brand-mark { font-size: 1.05em; }

.footer-about .site-title { display: flex; align-items: center; gap: 10px; }
.footer-about .site-title .brand-mark { font-size: 1.25em; }

/* In-page anchors (navbar → sections of the homepage): leave room for the
   sticky header; the scroll itself is animated by assets/js/main.js. */
#accueil, #qui-sommes-nous, #services, .content-section, .cta-band { scroll-margin-top: 80px; }

.home-about-more { text-align: center; padding: 0 0 56px; margin-top: -24px; }


/* Contact page: WhatsApp line and company networks (v1.1). */

.contact-social { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 24px; }
.contact-social .label { color: var(--color-text-muted); min-width: 90px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
