/*
Theme Name: Fidutek
Theme URI: https://www.fidutek.fr/
Author: Fidutek
Description: Thème sur mesure de fidutek.fr — maintenance et gestion informatique des PME. Remplace The7 + Elementor (refonte du 18/11/2026).
Version: 1.0.0
Requires PHP: 8.0
Text Domain: fidutek
*/

/* Inter (Rasmus Andersson), SIL Open Font License 1.1 — police variable hébergée sur le site, sous-ensemble latin */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #17132B;
  --ink-2: #3D3756;
  --violet: #6B3FE0;
  --violet-2: #5329C2;
  --violet-logo: #8C52FF;
  --violet-soft: #F0EBFF;
  --green: #0F8A63;
  --green-soft: #E5F5EE;
  --amber-soft: #FFF5E0;
  --amber: #B7791F;
  --paper: #F7F5FC;
  --line: #E3DFEF;
  --muted: #5F5A73;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23,19,43,.05), 0 8px 24px rgba(23,19,43,.07);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--violet-2); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.7vw, 2rem); font-weight: 800; margin-top: 1.6em; }
h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.4em; }
[id] { scroll-margin-top: 84px; }
p, ul, ol { margin: 0 0 1.1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 780px; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 100; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand b { display: block; font-weight: 800; font-size: 1.28rem; letter-spacing: -.02em; line-height: 1.05; }
.brand small { display: block; font-size: .74rem; font-weight: 500; font-style: italic; color: var(--muted); }
.nav-menu { display: flex; align-items: center; gap: 18px; }
.nav-menu .menu { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav-menu .menu a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .94rem; white-space: nowrap; }
.nav-menu .menu a:hover, .nav-menu .menu .current-menu-item > a, .nav-menu .menu .current-page-ancestor > a { color: var(--violet); }
.nav-cta { padding: 9px 18px; font-size: .9rem; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Boutons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: .96rem; border: 2px solid transparent; transition: background .15s, color .15s; }
.btn-primary { background: var(--violet); color: var(--white); }
.btn-primary:hover { background: var(--violet-2); color: var(--white); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--violet-soft); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Héros d'accueil */
.hero { background: linear-gradient(180deg, var(--paper), #fff); padding: 68px 0 76px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: center; }
.hero .lead { font-size: 1.18rem; color: var(--ink-2); max-width: 56ch; }
.hero h1 em { font-style: normal; color: var(--violet); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); margin-bottom: 12px; }
.hero-panel { background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 26px; }
.hero-panel h2 { font-size: 1.05rem; margin: 0 0 14px; }
.status { list-style: none; margin: 0; padding: 0; }
.status li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.status li:last-child { border-bottom: 0; }
.status .ok { font-size: .78rem; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status .todo { font-size: .78rem; font-weight: 700; color: var(--amber); background: var(--amber-soft); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.hero-panel .muted { font-size: .84rem; margin: 14px 0 0; }

/* En-tête de page */
.page-hero { background: var(--paper); padding: 50px 0 42px; border-bottom: 1px solid var(--line); }
.page-hero .lead { font-size: 1.12rem; color: var(--ink-2); max-width: 66ch; margin: 0; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.byline { font-size: .88rem; color: var(--muted); margin: 12px 0 0; }
.byline a { color: var(--muted); }

/* Sections */
.section { padding: 72px 0; }
.section-paper { background: var(--paper); }
.section-head { max-width: 700px; margin-bottom: 34px; }
.section-head h2 { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; color: var(--ink); text-decoration: none; transition: transform .15s, border-color .15s; }
a.card:hover { transform: translateY(-2px); border-color: var(--violet); }
.card .more { color: var(--violet); font-weight: 700; font-size: .92rem; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--violet-soft); display: grid; place-items: center; margin-bottom: 14px; color: var(--violet); }
.icon svg { width: 24px; height: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips a { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.chips a:hover, .chips .on a { border-color: var(--violet); color: var(--violet); }

/* Cartes d'articles */
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .15s, border-color .15s; }
.post-card:hover { transform: translateY(-2px); border-color: var(--violet); color: var(--ink); }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--paper); }
.post-card .body { padding: 18px 20px 20px; }
.post-card .cat { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.post-card h3 { font-size: 1.05rem; margin: 6px 0 8px; }
.post-card p { font-size: .92rem; color: var(--muted); margin: 0; }
.pagination { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-block; min-width: 40px; text-align: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.pagination .current { background: var(--violet); border-color: var(--violet); color: var(--white); }

/* Contenu éditorial */
.entry { padding: 46px 0 72px; }
.entry h2:first-child { margin-top: 0; }
.entry ul li, .entry ol li { margin-bottom: .4em; }
.entry img { border-radius: 10px; }
.entry .wp-caption, .entry figure { max-width: 100%; margin: 28px 0; }
.entry figcaption, .entry .wp-caption-text { font-size: .86rem; color: var(--muted); margin-top: 8px; }
.entry blockquote { margin: 26px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--violet); color: var(--ink-2); }
.entry .alignleft { float: left; margin: 6px 22px 12px 0; }
.entry .alignright { float: right; margin: 6px 0 12px 22px; }
.entry .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry::after { content: ""; display: table; clear: both; }
.featured { margin: 0 0 30px; }
.featured img { width: 100%; border-radius: 16px; aspect-ratio: 16 / 9; object-fit: cover; }
.note { background: var(--violet-soft); border-left: 4px solid var(--violet); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 26px 0; }
.note.warn { background: var(--amber-soft); border-left-color: var(--amber); }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.entry table { width: 100%; border-collapse: collapse; font-size: .94rem; margin: 22px 0; display: block; overflow-x: auto; }
.entry th, .entry td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry th { background: var(--paper); font-weight: 700; }
details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 10px 0; background: var(--white); }
details summary { font-weight: 700; cursor: pointer; }
details[open] summary { margin-bottom: 8px; }
details p:last-child { margin-bottom: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps > li { counter-increment: s; position: relative; padding-left: 52px; margin-bottom: 20px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--violet); color: var(--white); font-weight: 800; display: grid; place-items: center; }
.check { list-style: none; padding: 0; }
.check li { position: relative; padding-left: 28px; }
.check li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 22px 0; }
.two-cols > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: var(--white); }
.two-cols h3 { margin-top: 0; font-size: 1.06rem; }
.two-cols p:last-child, .two-cols ul:last-child { margin-bottom: 0; }

/* Mise en page service : contenu + colonne */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.aside { position: sticky; top: 92px; }
.aside .card { padding: 22px; }
.aside h2 { font-size: 1rem; margin: 0 0 12px; }
.aside ul { list-style: none; margin: 0; padding: 0; }
.aside li { margin: 0 0 8px; }
.aside li a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .94rem; }
.aside li a:hover, .aside li.on a { color: var(--violet); }
.aside .btn { width: 100%; text-align: center; margin-top: 14px; }
.aside .contact-line { font-size: .92rem; margin: 10px 0 0; }

/* Bandeau d'appel */
.cta-band { background: var(--ink); color: var(--white); padding: 60px 0; }
.cta-band h2 { color: var(--white); margin-top: 0; }
.cta-band p { color: #CFCAE2; max-width: 62ch; }

/* Formulaire */
.fk-form label { display: block; font-weight: 600; font-size: .92rem; margin: 14px 0 6px; }
.fk-form input[type=text], .fk-form input[type=email], .fk-form input[type=tel], .fk-form select, .fk-form textarea { width: 100%; padding: 11px 13px; border: 1px solid #CBC5DC; border-radius: 10px; font: inherit; background: var(--white); }
.fk-form input:focus, .fk-form select:focus, .fk-form textarea:focus { outline: 2px solid var(--violet); outline-offset: 1px; border-color: var(--violet); }
.fk-form button { background: var(--violet); color: var(--white); border: 0; border-radius: 999px; padding: 13px 26px; font: inherit; font-weight: 700; cursor: pointer; }
.fk-form button:hover { background: var(--violet-2); }
.fk-form .grid-2 { gap: 0 18px; }
.fk-form small { color: var(--muted); font-weight: 400; }
.fk-form .rgpd { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
.fk-form .rgpd input { margin-top: 5px; }

/* Pied de page */
.site-footer { background: #120F22; color: #BDB7D2; padding: 56px 0 28px; font-size: .94rem; }
.site-footer a { color: #E4E0F2; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer h4 { color: var(--white); font-size: .95rem; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.footer-bottom { border-top: 1px solid #2A2542; margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .86rem; }
.site-footer .brand { color: var(--white); }
.site-footer .brand small { color: #A39CC0; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav-menu { display: none; position: absolute; top: 68px; left: -20px; right: -20px; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 14px 20px 20px; gap: 14px; }
  .nav-menu.open { display: flex; }
  .nav-menu .menu { flex-direction: column; gap: 12px; }
}
@media (max-width: 960px) {
  .hero-grid, .with-aside { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr 1fr; }
  .aside { position: static; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .footer-grid, .two-cols { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero { padding: 40px 0 48px; }
  .entry .alignleft, .entry .alignright { float: none; margin: 16px 0; }
}

/* Bandeau de consentement */
.fk-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 560px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgba(23,19,43,.18); padding: 18px 20px; font-size: .92rem; }
.fk-consent[hidden] { display: none; }
.fk-consent p { margin: 0 0 12px; }
.fk-consent-btns { display: flex; gap: 10px; }
.fk-consent-btns button { flex: 1; font: inherit; font-weight: 700; padding: 10px 14px; border-radius: 999px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); cursor: pointer; }
.fk-consent-btns button[data-c="yes"] { background: var(--violet); border-color: var(--violet); color: var(--white); }
