/*
Theme Name: AI2GO
Theme URI: https://ai2go.ch
Author: Swiss Media Pro
Author URI: https://swissmediapro.ch
Description: Thème sur mesure pour ai2go.ch – solutions et formations en intelligence artificielle. Hero 3D dynamique (Three.js), chat bilingue FR/EN, formulaire sécurisé avec téléchargement de fichier et anti-spam multicouche. Edité par Onebiz Solutions Sàrl, propulsé par Swiss Media Pro.
Version: 1.2.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: Proprietary
Text Domain: ai2go
*/

/* ---------- Variables ---------- */
:root {
	--bg: #050816;
	--bg-2: #090e24;
	--surface: rgba(255, 255, 255, .04);
	--surface-2: rgba(255, 255, 255, .07);
	--border: rgba(255, 255, 255, .10);
	--text: #e8ecf8;
	--muted: #98a2c3;
	--cyan: #22d3ee;
	--violet: #8b5cf6;
	--pink: #ec4899;
	--grad: linear-gradient(120deg, #22d3ee 0%, #8b5cf6 55%, #ec4899 100%);
	--radius: 18px;
	--header-h: 74px;
	--font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--shadow: 0 20px 60px -20px rgba(34, 211, 238, .25);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 8px; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Bilingue : une seule langue visible */
html:not([lang^="en"]) [data-l="en"],
html[lang^="en"] [data-l="fr"] { display: none !important; }

/* ---------- Header ---------- */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
	display: flex; align-items: center;
	transition: background .3s, backdrop-filter .3s, border-color .3s;
	border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(5, 8, 22, .75); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; }
.brand:hover { color: #fff; }
.brand-2 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.custom-logo { max-height: 44px; width: auto; }
.nav-list { display: flex; gap: 6px; }
.nav-list a { color: var(--text); padding: 8px 14px; border-radius: 999px; font-size: .95rem; font-weight: 500; opacity: .85; }
.nav-list a:hover, .nav-list .current-menu-item a { background: var(--surface-2); opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch, .chat-lang { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang-switch button, .chat-lang button { background: none; border: 0; padding: 5px 11px; border-radius: 999px; cursor: pointer; font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
html:not([lang^="en"]) [data-set-lang="fr"], html[lang^="en"] [data-set-lang="en"] { background: var(--grad); color: #fff; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s, top .3s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Boutons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 26px; border-radius: 999px; border: 1px solid var(--border);
	background: var(--surface); color: #fff; font-weight: 600; font-size: 1rem; cursor: pointer;
	transition: transform .2s, box-shadow .3s, background .3s, border-color .3s; position: relative;
}
.btn:hover { transform: translateY(-2px); background: var(--surface-2); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-glow { background: var(--grad); border-color: transparent; box-shadow: 0 10px 40px -10px rgba(139, 92, 246, .7); }
.btn-glow:hover { background: var(--grad); box-shadow: 0 14px 50px -8px rgba(34, 211, 238, .65); }
.btn-ghost { background: rgba(255, 255, 255, .03); backdrop-filter: blur(6px); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 90px; overflow: hidden; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; z-index: -2; }
.hero-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.hero-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		radial-gradient(60% 50% at 75% 45%, rgba(139, 92, 246, .22), transparent 70%),
		radial-gradient(45% 40% at 20% 70%, rgba(34, 211, 238, .12), transparent 70%),
		linear-gradient(180deg, rgba(5, 8, 22, .35) 0%, rgba(5, 8, 22, 0) 30%, rgba(5, 8, 22, .85) 100%);
}
.hero-content { position: relative; max-width: 1180px; }
.hero-content > * { max-width: 700px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255, 255, 255, .04); backdrop-filter: blur(8px); font-size: .85rem; color: var(--muted); margin-bottom: 26px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34, 211, 238, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); letter-spacing: -.035em; margin-bottom: .45em; text-shadow: 0 4px 40px rgba(5, 8, 22, .6); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #c3cae3; max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 48px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 42px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 2rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.hero-stats span { font-size: .85rem; color: var(--muted); }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .3); border-radius: 14px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: var(--bg-2); padding: 16px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 48px; animation: marquee 38s linear infinite; }
.marquee-track span { color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; white-space: nowrap; }
.marquee-track span::before { content: "✦"; margin-right: 48px; color: var(--violet); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 10vw, 120px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.kicker { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; color: var(--cyan); margin-bottom: 14px; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cartes ---------- */
.card {
	position: relative; padding: 30px; border-radius: var(--radius);
	background: linear-gradient(180deg, var(--surface-2), var(--surface));
	border: 1px solid var(--border); overflow: hidden;
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s;
	--mx: 50%; --my: 0%;
}
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(139, 92, 246, .18), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { transform: translateY(-6px); border-color: rgba(139, 92, 246, .55); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 1.25rem; margin-top: 4px; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .98rem; }
.card-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; color: #fff; background: linear-gradient(135deg, rgba(34, 211, 238, .25), rgba(139, 92, 246, .25)); border: 1px solid rgba(255, 255, 255, .12); }
.card-link { display: block; color: inherit; }
.card-link:hover { color: inherit; }
.link-arrow { display: inline-block; margin-top: 18px; font-weight: 600; font-size: .95rem; }
.chips { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.chip { padding: 4px 12px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; background: rgba(34, 211, 238, .12); color: var(--cyan); border: 1px solid rgba(34, 211, 238, .3); }
.chip-soft { background: rgba(255, 255, 255, .06); color: var(--muted); border-color: var(--border); }

/* ---------- Méthode ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 33px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, transparent, var(--violet), var(--cyan), transparent); opacity: .5; }
.step { text-align: center; position: relative; padding: 0 8px; }
.step-n { display: inline-grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: var(--bg); border: 2px solid var(--violet); font-weight: 800; font-size: 1.2rem; margin-bottom: 18px; box-shadow: 0 0 30px rgba(139, 92, 246, .4); position: relative; z-index: 1; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); font-size: .95rem; }

.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 40px; margin-top: 56px; color: var(--muted); }
.trust div { display: flex; align-items: center; gap: 10px; }
.trust svg { color: var(--cyan); }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-bottom: 12px; transition: border-color .3s, background .3s; }
.faq details[open] { border-color: rgba(139, 92, 246, .5); background: var(--surface-2); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--cyan); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 24px 22px; margin: 0; color: var(--muted); }

/* ---------- Contact / formulaire ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.contact-info > p { color: var(--muted); }
.contact-list { margin: 28px 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list li > span:first-child { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.form { padding: 34px; border-radius: 24px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); backdrop-filter: blur(10px); box-shadow: var(--shadow); display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 7px; }
.form label > span { font-size: .85rem; font-weight: 600; color: #c3cae3; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
	width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border);
	background: rgba(5, 8, 22, .6); transition: border-color .2s, box-shadow .2s;
}
.form select option { background: #0b1030; color: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .18); }
.form .invalid { border-color: #f87171 !important; }
.form textarea { resize: vertical; min-height: 130px; }
.check { display: flex !important; grid-template-columns: none; gap: 12px !important; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--violet); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.dropzone { position: relative; border: 2px dashed rgba(139, 92, 246, .5); border-radius: 16px; padding: 26px 20px; text-align: center; background: rgba(139, 92, 246, .05); cursor: pointer; transition: background .25s, border-color .25s, transform .25s; }
.dropzone:hover, .dropzone.drag { background: rgba(34, 211, 238, .08); border-color: var(--cyan); transform: scale(1.01); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.dz-icon { font-size: 1.6rem; color: var(--cyan); margin-bottom: 4px; }
.dz-text { margin: 0; }
.dz-hint { margin: 4px 0 0; font-size: .8rem; color: var(--muted); }
.dz-file { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; padding: 8px 8px 8px 16px; background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .35); border-radius: 999px; font-size: .9rem; max-width: 100%; }
.dz-file[hidden] { display: none; }
.dz-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.dz-remove { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); cursor: pointer; line-height: 1; font-size: 1.1rem; }
.dz-remove:hover { background: #ef4444; }

.spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading { pointer-events: none; opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin: 0; min-height: 1.4em; font-size: .95rem; }
.form-status.ok { color: #4ade80; }
.form-status.err { color: #f87171; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: #03050f; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1.2fr .9fr; gap: 40px; }
.footer-brand p { color: var(--muted); max-width: 340px; margin-top: 16px; font-size: .95rem; }
.powered { font-size: .9rem; }
.site-footer h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 18px; }
.footer-links { display: grid; gap: 10px; font-size: .95rem; }
.footer-links a { color: var(--text); opacity: .85; }
.footer-links a:hover { opacity: 1; color: var(--cyan); }
.footer-links .addr { color: var(--muted); font-size: .9rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border); margin-top: 48px; padding: 22px 0 28px; color: var(--muted); font-size: .85rem; }

/* ---------- Flottants : WhatsApp, haut de page, cookies ---------- */
.wa-float { position: fixed; left: 20px; bottom: 20px; z-index: 90; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .7); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.to-top { position: fixed; left: 20px; bottom: 86px; z-index: 90; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: rgba(5, 8, 22, .8); backdrop-filter: blur(8px); cursor: pointer; font-size: 1.1rem; }
.to-top[hidden] { display: none; }
.cookie-bar { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 120; max-width: 640px; margin-inline: auto; padding: 16px 20px; display: flex; gap: 18px; align-items: center; border-radius: 16px; background: rgba(9, 14, 36, .95); border: 1px solid var(--border); backdrop-filter: blur(14px); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); font-size: .88rem; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; color: var(--muted); }

/* ---------- Chat ---------- */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 110; }
.chat-toggle { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px 14px 16px; border-radius: 999px; border: 0; cursor: pointer; color: #fff; font-weight: 600; background: var(--grad); box-shadow: 0 14px 40px -8px rgba(139, 92, 246, .8); transition: transform .2s; }
.chat-toggle:hover { transform: translateY(-2px) scale(1.03); }
.chat[data-open="true"] .chat-toggle { display: none; }
.chat-panel { position: absolute; right: 0; bottom: 0; width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100svh - 110px)); display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: rgba(9, 14, 36, .96); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(18px); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(139, 92, 246, .25); animation: chatIn .3s cubic-bezier(.2, .8, .2, 1); }
.chat-panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(120deg, rgba(34, 211, 238, .18), rgba(139, 92, 246, .22)); border-bottom: 1px solid var(--border); }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); font-weight: 800; font-size: .85rem; color: #fff; flex: none; }
.chat-head-text { flex: 1; display: grid; line-height: 1.25; min-width: 0; }
.chat-head-text small { color: var(--muted); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; margin-right: 4px; }
.chat-close { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); cursor: pointer; font-size: 1.2rem; line-height: 1; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: 11px 15px; border-radius: 16px; font-size: .94rem; line-height: 1.5; white-space: pre-line; animation: msgIn .25s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.msg.bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg.user { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 4px; }
.msg a { text-decoration: underline; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 16px 10px; }
.chat-quick button { padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(34, 211, 238, .4); background: rgba(34, 211, 238, .08); color: var(--cyan); font-size: .82rem; cursor: pointer; transition: background .2s; }
.chat-quick button:hover { background: rgba(34, 211, 238, .2); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-form input { flex: 1; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--border); background: rgba(5, 8, 22, .7); min-width: 0; }
.chat-form input:focus { outline: none; border-color: var(--cyan); }
.chat-form button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; cursor: pointer; font-size: 1rem; }

/* ---------- Pages / articles ---------- */
.page-hero { padding: calc(var(--header-h) + 70px) 0 40px; background: radial-gradient(60% 100% at 50% 0%, rgba(139, 92, 246, .2), transparent 70%); text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.prose { font-size: 1.05rem; }
.prose h2, .prose h3 { margin-top: 1.8em; }
.prose a { text-decoration: underline; }
.prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.prose ol { list-style: decimal; padding-left: 1.4em; margin-bottom: 1em; }
.prose img { border-radius: 14px; }
.prose blockquote { margin: 1.5em 0; padding: 4px 22px; border-left: 3px solid var(--violet); color: var(--muted); }
.post-hero img { width: 100%; border-radius: 18px; margin-bottom: 34px; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-card .thumb img { border-radius: 12px; margin-bottom: 16px; width: 100%; }
.post-card h3 a { color: #fff; }
.pagination { margin-top: 40px; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border); margin: 0 3px; color: var(--text); }
.pagination .current { background: var(--grad); border-color: transparent; }
.big-404 { font-size: clamp(5rem, 18vw, 10rem); font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; }
.alignwide { width: min(1100px, 100vw - 40px); margin-inline: auto; }

/* ---------- Animations d'apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.chat-toggle.nudge { animation: nudge 1.2s ease 3; }
@keyframes nudge { 0%, 100% { transform: none; } 30% { transform: translateY(-8px) scale(1.06); } 60% { transform: translateY(0) scale(1); } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
	.grid-3 { grid-template-columns: repeat(2, 1fr); }
	.grid-4 { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.contact-grid { grid-template-columns: 1fr; gap: 40px; }
	.steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
	.steps::before { display: none; }
}
@media (max-width: 860px) {
	.burger { display: inline-block; }
	.hide-sm { display: none; }
	.main-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: rgba(5, 8, 22, .97); backdrop-filter: blur(18px); padding: 14px 20px 26px; border-bottom: 1px solid var(--border); transform: translateY(-120%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
	.main-nav.open { transform: none; }
	.nav-list { flex-direction: column; gap: 2px; }
	.nav-list a { display: block; padding: 14px 16px; font-size: 1.05rem; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.grid-3, .grid-4, .row2, .steps, .footer-grid { grid-template-columns: 1fr; }
	.form { padding: 22px; }
	.hero { padding-bottom: 110px; }
	.hero-cta .btn { flex: 1 1 100%; }
	.cookie-bar { flex-direction: column; align-items: stretch; text-align: center; bottom: 90px; }
	.chat-toggle-label { display: none; }
	.chat-toggle { padding: 15px; }
	.wa-float { bottom: 20px; left: 16px; }
	.to-top { left: 16px; bottom: 82px; }
	.chat { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   AI2GO – Actualités IA & Quiz IA
   ========================================================= */
.ticks { display: grid; gap: 9px; }

/* Actualités */
.news-card { display: flex; flex-direction: column; padding: 0; }
.news-card > *:not(.news-thumb) { margin-inline: 26px; }
.news-thumb { display: grid; place-items: center; height: 170px; margin-bottom: 20px; color: rgba(255, 255, 255, .92); position: relative; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb svg { width: 54px; height: 54px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35)); }
.news-thumb.t0 { background: linear-gradient(135deg, #0b3b58, #22d3ee 150%); }
.news-thumb.t1 { background: linear-gradient(135deg, #1e2a6b, #8b5cf6 140%); }
.news-thumb.t2 { background: linear-gradient(135deg, #3b1d6b, #ec4899 150%); }
.news-thumb.t3 { background: linear-gradient(135deg, #0d4a4a, #22d3ee 150%); }
.news-thumb.t4 { background: linear-gradient(135deg, #4a1d5c, #ec4899 150%); }
.news-thumb.t5 { background: linear-gradient(135deg, #1b2b6b, #22d3ee 150%); }
.news-thumb::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 6px); pointer-events: none; }
.news-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.news-card h3 { font-size: 1.15rem; }
.news-card h3 a { color: #fff; }
.news-card h3 a:hover { color: var(--cyan); }
.news-card .link-arrow { margin-bottom: 26px; margin-top: auto; padding-top: 14px; }

/* Quiz */
.quiz { position: relative; padding: 34px; border-radius: 24px; border: 1px solid var(--border); background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); backdrop-filter: blur(10px); min-height: 280px; }
.quiz-center { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 10px 0; }
.quiz-center h3 { font-size: 1.6rem; margin: 0; }
.quiz-center p { margin: 0; max-width: 520px; }
.quiz-badge { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; font-size: 2.2rem; background: linear-gradient(135deg, rgba(34, 211, 238, .25), rgba(139, 92, 246, .3)); border: 1px solid rgba(255, 255, 255, .14); }
.quiz-head { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.quiz-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-bottom: 26px; }
.quiz-bar span { display: block; height: 100%; background: var(--grad); border-radius: 6px; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.quiz-q { font-size: clamp(1.2rem, 2.4vw, 1.55rem); margin-bottom: 20px; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opt { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; text-align: left; padding: 15px 18px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255, 255, 255, .04); cursor: pointer; font-size: 1rem; transition: border-color .2s, background .2s, transform .15s, opacity .2s; }
.quiz-opt:not(:disabled):hover { border-color: var(--cyan); background: rgba(34, 211, 238, .08); transform: translateX(3px); }
.quiz-opt:disabled { cursor: default; }
.quiz-opt.ok { border-color: #4ade80; background: rgba(74, 222, 128, .14); }
.quiz-opt.ko { border-color: #f87171; background: rgba(248, 113, 113, .14); }
.quiz-opt.dim { opacity: .5; }
.quiz-mark { font-weight: 800; font-size: 1.1rem; }
.quiz-opt.ok .quiz-mark { color: #4ade80; } .quiz-opt.ko .quiz-mark { color: #f87171; }
.quiz-fb { margin-top: 18px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border); animation: msgIn .3s ease; }
.quiz-fb.good { border-color: rgba(74, 222, 128, .5); background: rgba(74, 222, 128, .08); }
.quiz-fb.bad { border-color: rgba(248, 113, 113, .5); background: rgba(248, 113, 113, .08); }
.quiz-fb p { margin: 6px 0 0; color: #c3cae3; font-size: .95rem; }
.quiz-next { margin-top: 18px; }
.quiz-ring { --p: 0; --c: var(--cyan); position: relative; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, .08) 0); }
.quiz-ring::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #0a1030; }
.quiz-ring span { position: relative; z-index: 1; font-size: 2.3rem; font-weight: 800; }
.quiz-ring.lv0 { --c: #f59e0b; } .quiz-ring.lv1 { --c: #22d3ee; } .quiz-ring.lv2 { --c: #4ade80; }
.quiz-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }

@media (max-width: 640px) {
	.quiz { padding: 22px 18px; }
}

/* =========================================================
   AI2GO – Extranet / connexion
   ========================================================= */
.login-open { gap: 8px; }
.login-open svg { flex: none; }
.footer-login-link { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; color: var(--text); opacity: .85; cursor: pointer; font: inherit; }
.footer-login-link:hover { color: var(--cyan); opacity: 1; }
.hide-md { display: inline-flex; }
@media (max-width: 1240px) { .hide-md { display: none; } }
@media (max-width: 640px) {
	.login-open .login-label { display: none; }
	.login-open { padding: 9px 11px; }
}

.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 5, 15, .75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.modal-card { position: relative; width: min(440px, 100%); max-height: calc(100svh - 40px); overflow-y: auto; background: linear-gradient(180deg, #0d1330, #080c22); animation: chatIn .3s cubic-bezier(.2, .8, .2, 1); gap: 14px; }
.modal-card:focus { outline: none; }
.modal-card form { display: grid; gap: 14px; }
.modal-card h2 { font-size: 1.6rem; margin: 0; }
.modal-card > p { margin: 0; }
.modal-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; background: linear-gradient(135deg, rgba(34, 211, 238, .25), rgba(139, 92, 246, .3)); border: 1px solid rgba(255, 255, 255, .14); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); cursor: pointer; font-size: 1.3rem; line-height: 1; }
.modal-close:hover { background: rgba(255, 255, 255, .2); }
.pw { position: relative; display: block !important; }
.pw input { padding-right: 52px !important; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font-size: 1.05rem; }
.pw-toggle:hover { background: rgba(255, 255, 255, .08); }
.login-links { display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: center; margin: 0; }
.login-note { text-align: center; margin: 0; }
html.modal-open { overflow: hidden; }

/* Image à la une des actualités : cadrage sur le haut de l'image */
.news-thumb img { object-position: center 30%; }
.prose .source-note { font-size: .9rem; color: var(--muted); }
