/*
Theme Name: Horizon DSI & Cyber
Theme URI: https://horizondsicyber.fr
Author: Horizon DSI & Cyber
Author URI: https://horizondsicyber.fr
Description: Thème enfant de Twenty Twenty-Five pour Horizon DSI & Cyber (RSSI et DSI externalisés). Conçu pour s'adapter à tous les écrans, smartphones compris.
Template: twentytwentyfive
Version: 3.0.10
Requires at least: 6.4
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: cabinet-cybersecurite
*/

/* ==========================================================================
   1. Variables et base
   ========================================================================== */
/* Outfit (SIL Open Font License), hébergée dans le thème : pas de service externe, pas de transfert de données (RGPD). */
@font-face {
	font-family: 'Outfit';
	src: url('assets/fonts/Outfit-variable.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--primary: #00C6FF;
	--secondary: #0077B6;
	--accent: #5CD9FF;
	--dark: #0D1B2A;
	--darker: #08121D;
	--text: #E8EEF4;
	--text-muted: #8E9AAF;
	--line: rgba(0, 198, 255, 0.1);
	--line-strong: rgba(0, 198, 255, 0.25);
	--card-bg: linear-gradient(135deg, rgba(0, 198, 255, 0.05), rgba(0, 119, 182, 0.05));
	--font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--gutter: 5%;
	--nav-h: 72px;
	--radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--nav-h) + 1rem);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	font-family: var(--font);
	background: var(--darker);
	color: var(--text);
	line-height: 1.6;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: rgba(0, 198, 255, 0.15);
}

body.nav-open { overflow: hidden; }

img, video, iframe { max-width: 100%; }
img, video { height: auto; }
svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; overflow-wrap: break-word; }
p, li { overflow-wrap: break-word; }
ul, ol { list-style-position: outside; }
pre { overflow-x: auto; }
.wp-block-group, .wp-block-columns { margin: 0; }

/* Accessibilité */
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0; overflow: visible;
	position: fixed; top: 8px; left: 8px; z-index: 100000;
	background: var(--primary); color: var(--darker); padding: .75rem 1.25rem; border-radius: 8px; font-weight: 700; text-decoration: none;
}
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Utilitaires de mise en page */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.section-header { text-align: center; max-width: 760px; margin: 0 auto clamp(2rem, 6vw, 3.5rem); }
.section-header--left { text-align: left; margin-inline: 0; margin-bottom: 2rem; }
.section-header h2 { font-size: clamp(1.6rem, 4.5vw, 2.5rem); font-weight: 800; margin-bottom: .75rem; }
.section-header h2 span, .gradient-text {
	background: linear-gradient(135deg, var(--primary), var(--accent));
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section-header p { color: var(--text-muted); font-size: 1.05rem; }
.section-tag {
	display: block; text-align: center; color: var(--primary);
	font-size: .875rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: .75rem;
}

/* ==========================================================================
   2. Boutons
   ========================================================================== */
.btn, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 44px; padding: .9rem 1.75rem;
	border: 2px solid transparent; border-radius: 50px;
	font: 600 1rem/1.2 var(--font); text-decoration: none; text-align: center; cursor: pointer;
	transition: transform .3s, box-shadow .3s, background .3s, color .3s;
}
.btn-primary, .wp-block-button__link.has-primary-background-color {
	background: linear-gradient(135deg, var(--primary), var(--secondary)); color: var(--dark);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(0, 198, 255, 0.4); }
.btn-secondary { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-secondary:hover { background: var(--primary); color: var(--dark); }

/* ==========================================================================
   3. Navigation et logo
   ========================================================================== */
.navbar {
	position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	min-height: var(--nav-h);
	padding: .5rem var(--gutter); padding-top: calc(.5rem + env(safe-area-inset-top, 0px));
	background: rgba(13, 27, 42, 0.95);
	-webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--line);
}
body.admin-bar .navbar { top: 32px; }
@media (max-width: 782px) { body.admin-bar .navbar { top: 46px; } }

.logo { flex: 0 1 auto; min-width: 0; }
.logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.logo-lockup { display: block; height: 52px; width: auto; max-width: 100%; } /* logo vectoriel : texte en tracés, indépendant des polices */
.site-footer .logo-lockup { height: 64px; }

.nav-panel { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.nav-menu { display: flex; align-items: center; gap: .15rem; list-style: none; }
.nav-menu li { position: relative; }
.nav-menu a {
	display: block; padding: .6rem .7rem;
	color: var(--text); text-decoration: none; text-transform: uppercase; white-space: nowrap;
	font-size: .9rem; font-weight: 500; transition: color .3s;
}
.nav-menu a:hover, .nav-menu .current-menu-item > a, .nav-menu .current-menu-ancestor > a { color: var(--primary); }
.audit-btn { white-space: nowrap; padding: .7rem 1.4rem; min-height: 44px; }

.menu-toggle {
	display: none; align-items: center; justify-content: center;
	width: 46px; height: 46px; flex: none;
	background: transparent; border: 1px solid var(--line-strong); border-radius: 12px;
	color: var(--primary); font-size: 1.25rem; cursor: pointer;
}
.submenu-toggle { display: none; }

/* Bureau : sous-menus au survol ou au focus clavier */
@media (min-width: 1181px) {
	.nav-menu .sub-menu {
		position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; padding: .5rem 0;
		background: var(--dark); border: 1px solid var(--line-strong); border-radius: 12px;
		box-shadow: 0 10px 25px rgba(0, 0, 0, .5);
		opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
	}
	.nav-menu li:hover > .sub-menu, .nav-menu li:focus-within > .sub-menu, .nav-menu li.is-open > .sub-menu {
		opacity: 1; visibility: visible; transform: none;
	}
	.nav-menu .sub-menu a { padding: .75rem 1.25rem; text-transform: none; font-size: .95rem; }
	.nav-menu .sub-menu a:hover { background: var(--primary); color: var(--darker); }
	.nav-menu .sub-menu { min-width: 300px; }
}

/* Titres de section dans le sous-menu Services (« Nos offres », « Modules complémentaires ») */
.nav-menu .menu-group-label { list-style: none; }
.menu-group-label-text {
	display: block; padding: .85rem 1.25rem .3rem; color: var(--text-muted);
	font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.nav-menu .sub-menu .menu-group-label ~ .menu-group-label { margin-top: .4rem; padding-top: .4rem; border-top: 1px solid var(--line-strong); }
@media (max-width: 1180px) { .menu-group-label-text { padding: .85rem .25rem .25rem; } }

/* Smartphone et tablette : menu déroulant plein écran */
@media (max-width: 1180px) {
	.menu-toggle { display: inline-flex; }
	.js .nav-panel {
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 1.25rem; margin: 0;
		max-height: calc(100vh - var(--nav-h)); max-height: calc(100dvh - var(--nav-h));
		overflow-y: auto; overscroll-behavior: contain;
		padding: .5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom, 0px));
		background: var(--dark); border-bottom: 1px solid var(--line-strong); box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
	}
	.js .navbar.is-open .nav-panel { opacity: 1; visibility: visible; transform: none; }
	html:not(.js) .navbar { flex-wrap: wrap; }
	html:not(.js) .nav-panel { flex-basis: 100%; flex-direction: column; align-items: stretch; }

	.nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-menu a { font-size: 1rem; padding: .95rem .25rem; min-height: 48px; border-bottom: 1px solid var(--line); white-space: normal; }
	.nav-menu li.menu-item-has-children { display: flex; flex-wrap: wrap; align-items: stretch; }
	.nav-menu li.menu-item-has-children > a { flex: 1 1 0; min-width: 0; }
	.submenu-toggle {
		display: inline-flex; align-items: center; justify-content: center; width: 52px; flex: none;
		background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--primary); cursor: pointer;
	}
	.submenu-toggle i { transition: transform .3s; }
	.nav-menu li.is-open > .submenu-toggle i { transform: rotate(180deg); }
	.nav-menu .sub-menu { display: none; flex: 0 0 100%; list-style: none; margin: .25rem 0 .75rem; padding-left: 1rem; border-left: 2px solid var(--primary); }
	.nav-menu li.is-open > .sub-menu { display: block; }
	.nav-menu .sub-menu a { text-transform: none; font-size: .95rem; }
	.audit-btn { width: 100%; }
}
@media (max-width: 768px) { :root { --nav-h: 64px; } .logo-lockup { height: 44px; } }

/* ==========================================================================
   4. Bandeau d'accueil (hero)
   ========================================================================== */
.hero {
	position: relative; overflow: hidden; display: flex; align-items: center;
	min-height: 100vh; min-height: 100svh;
	padding: calc(var(--nav-h) + 3rem) var(--gutter) 5rem;
	background:
		radial-gradient(ellipse at 20% 50%, rgba(0, 198, 255, 0.1) 0%, transparent 50%),
		radial-gradient(ellipse at 80% 50%, rgba(0, 119, 182, 0.1) 0%, transparent 50%),
		var(--darker);
}
.hero::before {
	content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300C6FF' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 700px; width: 100%; }
.hero-badge {
	display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem;
	padding: .5rem 1rem; border: 1px solid rgba(0, 198, 255, 0.3); border-radius: 50px;
	background: rgba(0, 198, 255, 0.1); color: var(--primary); font-size: .875rem; line-height: 1.4;
}
.hero h1 { font-size: clamp(2.1rem, 6.2vw, 3.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.25rem; }
.hero h1 span { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p:not(.hero-badge) { font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--text-muted); margin-bottom: 2rem; }
.hero-lead p:last-child { margin-bottom: 0; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-visual {
	position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
	width: min(500px, 38vw); aspect-ratio: 1; opacity: .8; pointer-events: none;
}
.cyber-shield { width: 100%; height: 100%; position: relative; animation: float 6s ease-in-out infinite; }
.shield-ring { position: absolute; border: 2px solid var(--primary); border-radius: 50%; animation: rotate 20s linear infinite; }
.shield-ring:nth-child(1) { width: 100%; height: 100%; opacity: .3; }
.shield-ring:nth-child(2) { width: 80%; height: 80%; top: 10%; left: 10%; opacity: .5; animation-direction: reverse; }
.shield-ring:nth-child(3) { width: 60%; height: 60%; top: 20%; left: 20%; opacity: .7; }
.shield-center {
	position: absolute; width: 40%; height: 40%; top: 30%; left: 30%; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, rgba(0, 198, 255, 0.2), rgba(0, 119, 182, 0.2));
	font-size: clamp(2rem, 5vw, 4rem); color: var(--primary);
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.stats { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line-strong); }
.stat h3 { font-size: clamp(1.8rem, 6vw, 2.5rem); font-weight: 800; color: var(--primary); }
.stat p { font-size: .875rem; color: var(--text-muted); margin: 0; }

@media (max-width: 1180px) { .hero-visual { display: none; } }
@media (max-width: 768px) {
	.hero { min-height: auto; padding: calc(var(--nav-h) + 2rem) var(--gutter) 3.5rem; }
}
@media (max-width: 480px) {
	.hero-buttons .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   5. Sections de la page d'accueil et des patterns
   ========================================================================== */
.hz-section { padding: clamp(3.5rem, 9vw, 6.25rem) var(--gutter); }
.hz-section--dark { background: var(--dark); }
.hz-section--darker { background: var(--darker); }
.hz-intro { margin-bottom: clamp(2rem, 6vw, 4rem); }
.hz-intro > * { margin-inline: auto; }
.hz-intro p:not(.section-tag) { color: var(--text-muted); }
.hz-title { font-size: clamp(1.75rem, 4.8vw, 2.5rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hz-title--xl { font-size: clamp(2rem, 6vw, 3rem); }
.hz-lead { font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--text-muted); margin-bottom: 2rem; }

/* Colonnes : grille qui se réorganise seule (4 → 2 → 1, ou 2 → 1) */
.wp-block-columns.hz-cols {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1rem, 2.5vw, 2rem); max-width: 1200px; margin-inline: auto;
}
.wp-block-columns.hz-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wp-block-columns.hz-cols > .wp-block-column { flex-basis: auto; min-width: 0; }
@media (max-width: 1024px) { .wp-block-columns.hz-cols--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {
	.wp-block-columns.hz-cols, .wp-block-columns.hz-cols--2, .wp-block-columns.hz-cols--4 { grid-template-columns: 1fr; }
}

/* Pourquoi nous */
.why-card { text-align: center; padding: clamp(1.25rem, 3vw, 2rem); }
.why-icon {
	position: relative; display: flex; align-items: center; justify-content: center;
	width: 100px; height: 100px; margin: 0 auto 1.5rem; border-radius: 50%;
	background: linear-gradient(135deg, rgba(0, 198, 255, 0.1), rgba(0, 119, 182, 0.1));
	font-size: 2.5rem; color: var(--primary);
}
.why-icon::after { content: ''; position: absolute; inset: 0; border: 2px dashed var(--primary); border-radius: 50%; opacity: .3; animation: rotate 10s linear infinite; }
.why-card h3 { font-size: 1.25rem; margin-bottom: .75rem; }
.why-card p { color: var(--text-muted); font-size: .95rem; }

/* Processus */
.wp-block-columns.process-steps { display: flex; justify-content: center; gap: 0; max-width: 1000px; margin-inline: auto; position: relative; }
.process-steps::before {
	content: ''; position: absolute; top: 50px; left: 15%; right: 15%; height: 2px; z-index: 0;
	background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.process-steps .step { flex: 1; text-align: center; position: relative; z-index: 1; }
.process-steps .step-number {
	display: flex; align-items: center; justify-content: center;
	width: 100px; height: 100px; margin: 0 auto 1.5rem; border-radius: 50%;
	background: var(--dark); border: 3px solid var(--primary);
	font-size: 2rem; font-weight: 800; color: var(--primary);
}
.process-steps .step h3 { margin-bottom: .5rem; }
.process-steps .step p { color: var(--text-muted); font-size: .95rem; padding: 0 1rem; }
@media (max-width: 781px) {
	.wp-block-columns.process-steps { flex-direction: column; gap: 2rem; }
	.process-steps::before { display: none; }
	.process-steps .step-number { width: 76px; height: 76px; font-size: 1.5rem; margin-bottom: 1rem; }
}

/* Certifications (bug d'origine corrigé : il manquait un « ; » après width:100%) */
.certifications { padding: 3rem var(--gutter); background: rgba(0, 198, 255, 0.05); border-block: 1px solid var(--line); }
.cert-content { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.cert-text { font-size: clamp(1rem, 3vw, 1.25rem); font-weight: 600; }
.cert-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; list-style: none; }
.cert-logo {
	padding: .9rem 1.75rem; border-radius: 10px; border: 1px solid rgba(0, 198, 255, 0.2);
	background: rgba(255, 255, 255, 0.05); color: var(--text-muted); font-weight: 700;
}

/* Témoignages */
.testimonial-card { background: var(--dark); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); height: 100%; }
.testimonial-grid { display: grid; gap: 2rem; max-width: 1200px; margin: 2.5rem auto 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.testimonial-grid--1 { max-width: 720px; }
.testimonial-grid--2 { max-width: 960px; }
.testimonial-card { margin: 0; }
.testimonial-text { margin: 0 0 1.5rem; }
.testimonial-text p { margin: 0; }
.testimonial-author .author-info { display: flex; flex-direction: column; }
.testimonial-author .author-name { color: var(--text); }
.testimonial-author .author-role { color: var(--text-muted); font-size: .9rem; }
.testimonial-text { font-style: italic; color: var(--text); margin-bottom: 1.5rem; line-height: 1.8; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.author-avatar {
	display: flex; align-items: center; justify-content: center; flex: none;
	width: 50px; height: 50px; border-radius: 50%;
	background: linear-gradient(135deg, var(--primary), var(--secondary)); font-weight: 700; color: var(--dark);
}
.author-info h4 { font-size: 1rem; margin-bottom: .25rem; }
.author-info p { font-size: .875rem; color: var(--text-muted); margin: 0; }

/* Appel à l'action */
.cta-content { max-width: 760px; margin-inline: auto; text-align: center; }
.contact-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 3rem; margin-top: 2.5rem; }
.contact-item { display: flex; align-items: center; gap: .75rem; color: var(--text-muted); }
.contact-item i { color: var(--primary); font-size: 1.25rem; }
.contact-item a, .hz-contact-item a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   6. Page Contact
   ========================================================================== */
.hz-contact-section { background: var(--darker); padding: clamp(3rem, 8vw, 6.25rem) var(--gutter); }
.hz-contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(2rem, 5vw, 4rem); max-width: 1200px; margin-inline: auto; }
.hz-contact-list { list-style: none; display: grid; gap: 1.25rem; margin-bottom: 2rem; }
.hz-contact-item { display: flex; align-items: center; gap: 1rem; }
.hz-contact-item > i { color: var(--primary); font-size: 1.5rem; width: 1.75rem; text-align: center; flex: none; }
.hz-contact-item h3 { font-size: 1rem; color: var(--text); }
.hz-contact-item p { color: var(--text-muted); }
.hz-form-box { background: var(--dark); padding: clamp(1.25rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.contact-sidebar .section-header h2 { font-size: 2rem; color: var(--primary); }
@media (max-width: 992px) { .hz-contact-grid { grid-template-columns: 1fr; } }

/* Pages génériques, 404 */
.page-hero { padding: calc(var(--nav-h) + 3rem) 0 2.5rem; background: var(--card-bg); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 2.75rem); }
.page-body { padding: 3rem 0 5rem; }
.error-404 .hero-content { max-width: 640px; }
.error-404-search { margin-top: 2rem; }
.search-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.search-form label { flex: 1 1 220px; }
.search-field {
	width: 100%; min-height: 46px; padding: .7rem 1.1rem; border: 2px solid rgba(0, 198, 255, 0.3); border-radius: 50px;
	background: rgba(0, 0, 0, .3); color: var(--text); font: inherit; font-size: 1rem;
}
.search-submit { min-height: 46px; padding: .7rem 1.4rem; border: 0; border-radius: 50px; cursor: pointer; font-weight: 600;
	background: linear-gradient(135deg, var(--primary), var(--secondary)); color: var(--dark); }

/* ==========================================================================
   7. Pied de page et retour en haut
   ========================================================================== */
.site-footer { background: var(--darker); border-top: 1px solid var(--line); padding: 28px var(--gutter) calc(14px + env(safe-area-inset-bottom, 0px)); }
.footer-content { display: grid; grid-template-columns: 1.1fr 2.5fr .7fr .9fr; gap: 1.5rem 2.5rem; max-width: 1200px; margin-inline: auto; }
.footer-brand .logo { margin-bottom: .6rem; }
.footer-brand p { color: var(--text-muted); margin-bottom: .9rem; }
.social-links { display: flex; gap: .75rem; list-style: none; }
.social-links a {
	display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
	background: rgba(0, 198, 255, 0.1); color: var(--primary); transition: background .3s, color .3s;
}
.social-links a:hover { background: var(--primary); color: var(--dark); }
.footer-column .footer-title { font-size: 1rem; margin-bottom: .4rem; color: var(--text); }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 0; }
.footer-column a, .footer-legal a { display: inline-block; padding: .12rem 0; line-height: 1.4; color: var(--text-muted); text-decoration: none; font-size: .95rem; transition: color .3s; }
.footer-column a:hover, .footer-legal a:hover { color: var(--primary); }
.footer-services-cols { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; }
.footer-services-cols .footer-nav-label { margin: 0 0 .2rem; }
.footer-column .footer-title .footer-h4-link { display: inline; padding: 0; color: var(--text); font-size: inherit; }
.footer-column .footer-title .footer-h4-link:hover { color: var(--primary); }
.footer-nav-label { margin: .55rem 0 .1rem; color: var(--text); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.footer-column li ul.sub-menu { margin: .4rem 0 .4rem 1.25rem; padding-left: 1rem; border-left: 1px solid var(--line-strong); }
.footer-column li ul.sub-menu a { font-size: .875rem; opacity: .85; }
.footer-bottom { max-width: 1200px; margin: 1.25rem auto 0; padding-top: 1rem; border-top: 1px solid var(--line); text-align: center; color: var(--text-muted); font-size: .875rem; display: grid; gap: .2rem; }
.footer-legal span { margin: 0 .35rem; }

@media (max-width: 1024px) {
	.footer-content { grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; }
	.footer-brand, .footer-column--services { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.footer-content { grid-template-columns: 1fr; text-align: center; }
	.social-links { justify-content: center; }
	.footer-column ul.footer-nav { display: inline-block; text-align: left; }
	.footer-services-cols { flex-direction: column; align-items: center; gap: .5rem; }
	.footer-column a { padding: .35rem 0; }
}

#backToTop {
	position: fixed; z-index: 900;
	right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px));
	display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
	border: 0; border-radius: 12px; background: var(--primary); color: var(--darker); font-size: 18px; cursor: pointer;
	box-shadow: 0 4px 15px rgba(0, 198, 255, 0.3);
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s, background .3s;
}
#backToTop.is-visible { opacity: 1; visibility: visible; transform: none; }
#backToTop:hover { background: var(--accent); }

/* ==========================================================================
   8. Formulaire de contact (natif : inc/contact-form.php, template-parts/contact-form.php)
   ========================================================================== */
.hz-contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.cf-field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.cf-field label { color: var(--text); font-weight: 500; font-size: .95rem; }
.cf-field label span { color: var(--primary); }
.cf-field input, .cf-field select, .cf-field textarea {
    width: 100%;
    font: inherit;
    font-size: 1rem; /* 16 px : pas de zoom automatique sur iPhone */
    color: var(--text);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 198, 255, 0.2);
    border-radius: 10px;
    padding: 12px 15px;
    transition: border-color .3s, box-shadow .3s;
}
.cf-field select option { color: #0D1B2A; background: #fff; }
.cf-field textarea { min-height: 150px; resize: vertical; }
.cf-field input::placeholder, .cf-field textarea::placeholder { color: var(--text-muted); }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.15);
}
.cf-consent { display: flex; gap: .6rem; align-items: flex-start; color: var(--text-muted); font-size: .9rem; line-height: 1.5; cursor: pointer; }
.cf-consent input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--primary); }
.cf-consent a { color: var(--primary); }
.cf-required { color: var(--text-muted); font-size: .85rem; margin: -.4rem 0 0; }
.hz-contact-form .btn { align-self: flex-start; min-width: min(250px, 100%); }

.contact-notice { padding: .9rem 1.1rem; border-radius: 12px; margin-bottom: 1.25rem; font-size: .95rem; }
.contact-notice--ok { background: rgba(0, 198, 255, .12); border: 1px solid var(--primary); color: var(--text); }
.contact-notice--error { background: rgba(255, 138, 138, .12); border: 1px solid #ff8a8a; color: #ffd0d0; }
@media (max-width: 600px) {
    .cf-row { grid-template-columns: 1fr; }
    .hz-contact-form .btn { align-self: stretch; }
}
.cta-content .hz-contact-form { text-align: left; margin-top: 2rem; }
.cta-content .contact-notice { text-align: left; }

/* ==========================================================================
   9. Filet de sécurité mobile pour les modèles de page (about, cas client, contact…)
   Leurs feuilles dédiées sont chargées après celle-ci ; le préfixe « body » leur donne priorité.
   ========================================================================== */
@media (max-width: 1024px) {
	body .expertise-grid, body .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
	body .founder-grid, body .expertise-grid, body .values-grid, body .project-stats, body .legal-info-grid { grid-template-columns: 1fr; }
	body .project-phase { flex-direction: column; }
	body .container { padding-inline: 16px; }
	body table { display: block; max-width: 100%; overflow-x: auto; }
}

/* ==========================================================================
   10. Effets (barre au défilement, apparition des cartes)
   ========================================================================== */
.navbar { transition: background .3s; }
.navbar.is-scrolled { background: rgba(13, 27, 42, 0.98); }

/* Classe ajoutée par main.js ; « body » donne la priorité sur les transitions propres aux cartes. */
body .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
body .reveal.is-visible { opacity: 1; transform: none; }

/* Lettre d'information (formulaire natif) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.newsletter-form { max-width: 560px; margin: 1.25rem auto 0; }
.newsletter-row { display: flex; gap: .75rem; align-items: stretch; }
.newsletter-row input[type="email"] { flex: 1 1 auto; min-width: 0; padding: .9rem 1.1rem; font: inherit; font-size: 1rem; color: var(--text); background: rgba(255, 255, 255, .06); border: 1px solid var(--line-strong); border-radius: 12px; }
.newsletter-row input[type="email"]::placeholder { color: var(--text-muted); }
.newsletter-row input[type="email"]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 198, 255, .2); }
.newsletter-row .btn { flex: 0 0 auto; white-space: nowrap; }
.newsletter-consent { display: flex; gap: .6rem; align-items: flex-start; margin-top: .9rem; text-align: left; font-size: .875rem; color: var(--text-muted); line-height: 1.5; cursor: pointer; }
.newsletter-consent input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--primary); }
.newsletter-consent a { color: var(--primary); }
.newsletter-notice { max-width: 560px; margin: 1.25rem auto 0; padding: .85rem 1.1rem; border-radius: 12px; font-size: .95rem; text-align: left; }
.newsletter-notice--ok { background: rgba(0, 198, 255, .12); border: 1px solid var(--primary); color: var(--text); }
.newsletter-notice--error { background: rgba(255, 138, 138, .12); border: 1px solid #ff8a8a; color: #ffd0d0; }
@media (max-width: 560px) { .newsletter-row { flex-direction: column; } .newsletter-row .btn { width: 100%; } }
