/*
Theme Name: Katesha
Template: twentytwentyfive
Description: Thème enfant Katesha – Networking & Cloud Computing.
Version: 1.0.0
Text Domain: katesha
*/

:root {
	--k-navy: #1b2a5e;
	--k-navy-2: #24387a;
	--k-blue: #3b8ac4;
	--k-orange: #f5a623;
	--k-teal: #2a8c88;
	--k-green: #5ba36a;
	--k-light: #f4f7fb;
	--k-line: #dfe6ef;
	--k-text: #1f2937;
	--k-muted: #5b6b82;
	--k-radius: 14px;
	--k-shadow: 0 10px 30px rgba(27, 42, 94, .08);
	--k-wide: 1200px;
}

body { color: var(--k-text); }
a { color: var(--k-blue); }

/* ---------- Header ---------- */
.k-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--k-line); }
.admin-bar .k-header { top: 32px; }
.k-header__inner { max-width: var(--k-wide); margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.k-logo img { display: block; height: 52px; width: auto; }
.k-nav { display: flex; align-items: center; gap: 28px; }
.k-menu, .k-menu ul { list-style: none; margin: 0; padding: 0; }
.k-menu { display: flex; gap: 22px; align-items: center; }
.k-menu > li { position: relative; }
.k-menu a { color: var(--k-navy); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 0; display: block; }
.k-menu a:hover, .k-menu .current-menu-item > a, .k-menu .current-menu-ancestor > a, .k-menu .current_page_parent > a { color: var(--k-blue); }
.k-menu .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.k-menu .sub-menu { position: absolute; left: -16px; top: 100%; min-width: 280px; background: #fff; border: 1px solid var(--k-line); border-radius: 12px; box-shadow: var(--k-shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; }
.k-menu li:hover > .sub-menu, .k-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.k-menu .sub-menu a { padding: 9px 12px; border-radius: 8px; font-weight: 500; }
.k-menu .sub-menu a:hover { background: var(--k-light); }
.k-lang { display: flex; gap: 4px; font-size: .85rem; font-weight: 700; margin-left: 8px; padding-left: 22px; border-left: 1px solid var(--k-line); }
.k-lang a, .k-lang span { padding: 4px 8px; border-radius: 6px; text-decoration: none; color: var(--k-muted); }
.k-lang .is-current { background: var(--k-navy); color: #fff; }
.k-btn { display: inline-block; background: var(--k-orange); color: var(--k-navy) !important; font-weight: 700; padding: 10px 18px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.k-btn:hover { background: #ffb940; }
.k-nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.k-burger { display: none; cursor: pointer; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; }
.k-burger span, .k-burger span::before, .k-burger span::after { display: block; width: 22px; height: 2px; background: var(--k-navy); position: relative; transition: .2s; }
.k-burger span::before, .k-burger span::after { content: ""; position: absolute; left: 0; }
.k-burger span::before { top: -7px; } .k-burger span::after { top: 7px; }
.k-nav-toggle:focus-visible + .k-burger { outline: 2px solid var(--k-blue); }

@media (max-width: 1080px) {
	.k-burger { display: flex; }
	.k-logo img { height: 42px; }
	.k-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--k-line); flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 24px 24px; max-height: calc(100vh - 70px); overflow: auto; }
	.k-nav-toggle:checked ~ .k-nav { display: flex; }
	.k-nav-toggle:checked + .k-burger span { background: transparent; }
	.k-nav-toggle:checked + .k-burger span::before { top: 0; transform: rotate(45deg); }
	.k-nav-toggle:checked + .k-burger span::after { top: 0; transform: rotate(-45deg); }
	.k-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.k-menu > li { border-bottom: 1px solid var(--k-line); }
	.k-menu a { padding: 12px 0; }
	.k-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; }
	.k-menu .menu-item-has-children > a::after { display: none; }
	.k-btn { text-align: center; }
	.k-lang { margin-left: 0; padding-left: 0; border-left: 0; }
}

/* ---------- Sections ---------- */
.k-section { padding-top: clamp(56px, 8vw, 96px) !important; padding-bottom: clamp(56px, 8vw, 96px) !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.k-section--light { background: var(--k-light); }
.k-section--navy { background: var(--k-navy); color: #fff; }
.k-section--navy .wp-block-heading, .k-hero .wp-block-heading, .k-contact-card .wp-block-heading { color: #fff !important; }
.k-section--navy p { color: rgba(255,255,255,.86); }
.k-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem !important; font-weight: 700; color: var(--k-orange) !important; margin-bottom: .5rem !important; }
.k-section h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; color: var(--k-navy); margin-top: 0; }
.k-intro { color: var(--k-muted); font-size: 1.1rem; max-width: 760px; margin-left: auto !important; margin-right: auto !important; }
.k-section--navy .k-intro { color: rgba(255,255,255,.8); }
.k-section > * + .k-grid, .k-section > * + .wp-block-columns { margin-top: 2.5rem !important; }

/* Hero */
.k-hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(59,138,196,.45), transparent 60%), linear-gradient(135deg, #16224d 0%, var(--k-navy) 55%, #203a7a 100%); color: #fff; padding-top: clamp(56px, 8vw, 110px) !important; padding-bottom: clamp(56px, 8vw, 110px) !important; margin-top: 0 !important; overflow: hidden; }
.k-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 1.2rem; }
.k-hero h1 em { font-style: normal; color: var(--k-orange); }
.k-hero .k-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.86); max-width: 620px; }
.k-hero--page { padding-top: clamp(48px, 6vw, 84px) !important; padding-bottom: clamp(48px, 6vw, 84px) !important; }
.k-hero--page h1 { font-size: clamp(2rem, 4vw, 3rem); }
.k-hero .wp-block-image img, .k-rounded img { border-radius: 18px; }
.k-hero .wp-block-image img { box-shadow: 0 30px 60px rgba(0,0,0,.35); width: 100%; max-height: 460px; object-fit: cover; }
.k-hero:not(.k-hero--page) .wp-block-image img { max-height: 540px; }
.k-hero .wp-block-columns { align-items: center !important; gap: clamp(24px, 5vw, 64px); }
.k-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.8rem !important; font-size: .88rem; }
.k-trust span, .k-badge { display: inline-block; border: 1px solid rgba(255,255,255,.28); color: #fff; padding: 6px 12px; border-radius: 999px; }
.k-breadcrumb { font-size: .88rem; margin-bottom: .6rem !important; color: rgba(255,255,255,.7) !important; }
.k-breadcrumb a { color: rgba(255,255,255,.85); }

/* Buttons */
.wp-block-button .wp-block-button__link { border-radius: 999px; font-weight: 700; padding: .85em 1.6em; }
.k-btns .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--k-orange); color: var(--k-navy); }
.k-btns .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: #ffb940; }
.k-btns .is-style-outline .wp-block-button__link { border: 2px solid currentColor; background: transparent; color: #fff; }
.k-section:not(.k-section--navy) .k-btns .is-style-outline .wp-block-button__link { color: var(--k-navy); }

/* Cards grid */
.k-grid { gap: 22px !important; }
.k-card { background: #fff; border: 1px solid var(--k-line); border-radius: var(--k-radius); padding: 28px !important; box-shadow: var(--k-shadow); position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.k-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(27,42,94,.12); }
.k-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--k-blue); }
.k-card.k-c-orange::before { background: var(--k-orange); }
.k-card.k-c-teal::before { background: var(--k-teal); }
.k-card.k-c-green::before { background: var(--k-green); }
.k-card.k-c-navy::before { background: var(--k-navy); }
.k-card h3 { font-size: 1.2rem; color: var(--k-navy); margin: 0 0 .6rem; }
.k-card p { color: var(--k-muted); margin: 0; font-size: .98rem; }
.k-card p + p { margin-top: .9rem; }
.k-card .k-more a { font-weight: 700; text-decoration: none; }
.k-card--plain::before { display: none; }
.k-section--light .k-card { box-shadow: none; }
.k-card ul { color: var(--k-muted); padding-left: 1.1em; margin: .4rem 0 0; font-size: .98rem; line-height: 1.55; }
.k-card li { margin: .25rem 0; }

/* Numbered icon */
.k-num { display: inline-flex !important; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--k-blue); color: #fff !important; font-weight: 800; margin: 0 0 1rem !important; font-size: 1rem !important; }
.k-c-orange .k-num { background: var(--k-orange); color: var(--k-navy) !important; }
.k-c-teal .k-num { background: var(--k-teal); }
.k-c-green .k-num { background: var(--k-green); }
.k-c-navy .k-num { background: var(--k-navy); }

/* Stats */
.k-stat { text-align: center; padding: 26px 18px !important; border-radius: var(--k-radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.k-stat-num { font-size: clamp(1.6rem, 2.6vw, 2.3rem) !important; font-weight: 800; color: var(--k-orange) !important; margin: 0 !important; line-height: 1.1; }
.k-stat-label { margin: .4rem 0 0 !important; font-size: .95rem; }
.k-section:not(.k-section--navy) .k-stat { background: #fff; border-color: var(--k-line); }
.k-section:not(.k-section--navy) .k-stat-num { color: var(--k-navy) !important; }

/* Steps */
.k-steps { counter-reset: kstep; }
.k-step { position: relative; padding: 26px 22px !important; background: #fff; border-radius: var(--k-radius); border: 1px solid var(--k-line); }
.k-step h3 { font-size: 1.1rem; color: var(--k-navy); margin: 0 0 .4rem; }
.k-step p { font-size: .95rem; color: var(--k-muted); margin: 0; }

/* Flow diagram */
.k-flow { display: flex !important; flex-wrap: wrap; gap: 10px !important; justify-content: center; align-items: stretch; }
.k-flow > p { margin: 0 !important; background: #fff; border: 1px solid var(--k-line); border-radius: 12px; padding: 16px 18px; text-align: center; font-weight: 700; color: var(--k-navy); flex: 1 1 150px; max-width: 210px; position: relative; }
.k-flow > p small { display: block; font-weight: 500; color: var(--k-muted); margin-top: 4px; }
.k-flow > p.k-flow-hl { border-color: var(--k-orange); background: #fff8ec; }

/* Logos */
.k-logos { align-items: center !important; }
.k-logos .wp-block-image { margin: 0; text-align: center; }
.k-logos img { max-height: 70px; width: auto !important; filter: grayscale(1); opacity: .75; transition: .2s; }
.k-logos img:hover { filter: none; opacity: 1; }

/* Photos */
.k-photo img { border-radius: var(--k-radius); width: 100%; height: 320px; object-fit: cover; }
.k-photo figcaption { font-weight: 700; color: var(--k-navy); text-align: left; margin-top: .6rem; }
.k-partner img { max-width: 220px; height: auto; }
.k-center-img { text-align: center; margin: 1.5rem auto 0 !important; }
.k-center-img img { display: inline-block; max-width: 200px; }
.k-photo-grid { gap: 10px !important; margin-bottom: 1.4rem !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.k-photo-grid .wp-block-image { margin: 0; }
.k-photo-grid img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; display: block; }
.k-partner--taara img { width: 180px; max-width: 180px; margin: 24px 0 26px; }
.k-card--partner { padding: 34px !important; }
.k-card--partner .wp-block-image { margin: 0 0 1rem; }
.k-card--partner .k-partner img { height: 98px; width: auto; object-fit: contain; object-position: left center; }
.k-card--partner .k-partner--taara img { height: 34px; margin: 32px 0; }
.k-taara-logo { margin: 0 0 1.2rem !important; }
.k-taara-logo img { width: 150px; height: auto; }
.k-hero .k-taara-logo img, .k-hero .k-partner img { width: auto !important; max-height: none; box-shadow: none; border-radius: 0; object-fit: contain; }
.k-hero .k-taara-logo img { width: 150px !important; }
.k-hero .k-card--plain { display: flex !important; justify-content: center; align-items: center; padding: 40px !important; }
.k-hero .k-card--plain .k-partner { margin: 0; }
.k-card > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.k-center { display: flex !important; align-items: center; justify-content: center; min-height: 260px; }
.k-center .k-partner img { max-width: 300px; }

/* CTA */
.k-cta { text-align: center; }
.k-cta h2 { color: #fff !important; }
.k-cta .wp-block-buttons { justify-content: center; }

/* Callout */
.k-callout { background: #fff; border-left: 5px solid var(--k-orange); border-radius: 10px; padding: 18px 22px !important; color: var(--k-navy); font-weight: 600; }
.k-note { font-size: .92rem; color: var(--k-muted) !important; font-style: italic; }
.k-checklist { list-style: none; padding-left: 0 !important; }
.k-checklist li { padding-left: 30px; position: relative; margin: .55rem 0; }
.k-checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--k-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M8 13.2 4.8 10l-1.1 1.1L8 15.4l8.3-8.3-1.1-1.1z'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Legal pages */
.k-legal { max-width: 760px; margin-left: auto !important; margin-right: auto !important; }
.k-legal h2 { font-size: 1.3rem; margin-top: 2rem; }

/* Contact form */
.wpcf7 label { display: block; font-weight: 600; color: var(--k-navy); margin-bottom: 14px; font-size: .95rem; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 select, .wpcf7 textarea { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #c9d4e2; border-radius: 10px; font: inherit; background: #fff; box-sizing: border-box; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: 2px solid var(--k-blue); border-color: transparent; }
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 label br, .k-form-grid > br { display: none; }
.k-form-grid > p { display: contents; }
.k-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .k-form-grid { grid-template-columns: 1fr; } }
.wpcf7 .wpcf7-acceptance label { font-weight: 400; color: var(--k-muted); font-size: .9rem; }
.wpcf7 input[type=submit] { background: var(--k-orange); color: var(--k-navy); border: 0; border-radius: 999px; padding: 14px 32px; font-weight: 800; cursor: pointer; font: inherit; font-weight: 800; }
.wpcf7 input[type=submit]:hover { background: #ffb940; }
.k-contact-card { background: var(--k-navy); color: #fff; border-radius: var(--k-radius); padding: 30px !important; }
.k-contact-card h3, .k-contact-card p, .k-contact-card a { color: #fff; }
.k-contact-card a { text-decoration: none; font-weight: 700; }

/* ---------- Footer ---------- */
.k-footer { background: #121d44; color: rgba(255,255,255,.78); font-size: .95rem; }
.k-footer__inner { max-width: var(--k-wide); margin: 0 auto; padding: 64px 24px 28px; }
.k-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.k-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; }
.k-footer ul { list-style: none; margin: 0; padding: 0; }
.k-footer li { margin: 0 0 8px; }
.k-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.k-footer a:hover { color: #fff; }
.k-footer__brand strong { display: block; color: #fff; font-size: 1.35rem; letter-spacing: .01em; }
.k-footer__brand strong span { color: var(--k-orange); font-size: .95rem; display: block; font-weight: 600; }
.k-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .85rem; }
.k-footer__bottom nav { display: flex; gap: 18px; }
@media (max-width: 900px) { .k-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .k-footer__cols { grid-template-columns: 1fr; } }

/* Misc */
.wp-site-blocks { padding-top: 0 !important; }
main.wp-block-group { margin-top: 0 !important; }
.wp-site-blocks > * + * { margin-block-start: 0 !important; }
.entry-content > .alignfull:first-child { margin-top: 0 !important; }
@media (max-width: 781px) { .k-hero .wp-block-image { max-width: 420px; margin: 0 auto; } }
