/*
Theme Name: ARTING Engineering
Theme URI: https://arting-france.com
Author: ARTING Engineering
Author URI: https://arting-france.com
Description: Thème WordPress sur-mesure pour ARTING Engineering. Bureau d'études industriel + formation sur-mesure de profils techniques. Direction artistique fintech B2B premium (style Qonto / Pennylane) : fond clair dominant, accent bleu électrique, corail dynamique, cartes Bento, typographie Inter.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arting
*/

/* =====================================================================
   ARTING — DESIGN SYSTEM
   1. Variables (:root)
   2. Reset & base
   3. Typographie
   4. Layout & grilles
   5. Composants (boutons, cartes Bento, pills, badges)
   6. Header / menu sticky
   7. Footer
   8. Blocs home
   9. Pages secteur
   10. Pages comparatif
   11. Animations (fade-up)
   12. Responsive
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. VARIABLES
   --------------------------------------------------------------------- */
:root {
  --c-bg:          #FFFFFF;   /* fond principal */
  --c-bg-soft:     #F4F5F7;   /* sections alternées, gris très clair */
  --c-bg-tint:     #EEF1FF;   /* tuiles teintées légères (accent dilué) */
  --c-ink:         #1A2233;   /* texte principal, encre profonde */
  --c-ink-soft:    #5A6478;   /* texte secondaire, gris-bleu */
  --c-accent:      #3A66FF;   /* accent principal — bleu électrique/indigo */
  --c-accent-dark: #2348D6;   /* hover de l'accent */
  --c-warm:        #FF6B4A;   /* accent secondaire — corail */
  --c-warm-dark:   #E8542F;   /* hover corail */
  --c-bronze:      #9B8772;   /* touche identité ARTING — détails uniquement */
  --c-border:      #E4E7EE;   /* bordures fines */
  --c-success:     #18A957;   /* "Inclus" dans les comparatifs */
  --c-radius:      16px;      /* arrondi généreux type Bento */
  --c-radius-sm:   10px;

  --shadow-soft:   0 2px 8px rgba(26,34,51,0.05);
  --shadow-hover:  0 12px 32px rgba(26,34,51,0.10);

  --maxw:          1180px;
  --gap:           24px;
  --section-pad:   112px;     /* padding vertical desktop */

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------------------------------------------------------------------
   2. RESET & BASE
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-ink-soft);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-accent-dark); }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

/* Focus visible accessible */
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------------
   3. TYPOGRAPHIE
   --------------------------------------------------------------------- */
h1, h2, h3, h4 {
  color: var(--c-ink);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }       /* jusqu'à ~64px */
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--c-ink-soft); }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1rem;
}
strong { color: var(--c-ink); font-weight: 700; }

/* ---------------------------------------------------------------------
   4. LAYOUT & GRILLES
   --------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad) 0; }
.section--soft { background: var(--c-bg-soft); }
.section--tint { background: var(--c-bg-tint); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

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

/* Bento : tailles variables */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.bento .col-4  { grid-column: span 4; }
.bento .col-6  { grid-column: span 6; }
.bento .col-8  { grid-column: span 8; }
.bento .col-12 { grid-column: span 12; }

/* ---------------------------------------------------------------------
   5. COMPOSANTS
   --------------------------------------------------------------------- */

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--c-accent); color: #fff; box-shadow: 0 6px 18px rgba(58,102,255,.28); }
.btn--accent:hover { background: var(--c-accent-dark); color: #fff; }
.btn--warm { background: var(--c-warm); color: #fff; box-shadow: 0 6px 18px rgba(255,107,74,.28); }
.btn--warm:hover { background: var(--c-warm-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-border); }
.btn--ghost:hover { border-color: var(--c-accent); color: var(--c-accent); }
.btn--light { background: #fff; color: var(--c-accent); }
.btn--light:hover { color: var(--c-accent-dark); }
.btn .icon { width: 18px; height: 18px; }

/* Cartes Bento */
.card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #d7dcec; }
.card--tint { background: var(--c-bg-tint); border-color: transparent; }
.card h3 { margin-bottom: .4em; }
.card .card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--c-bg-tint);
  border-radius: 12px;
  color: var(--c-accent);
  margin-bottom: 18px;
}
.card .card-icon svg { width: 24px; height: 24px; }

/* Pills / badges */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--c-border);
  color: var(--c-ink);
  font-weight: 600;
  font-size: .95rem;
  transition: all .2s ease;
}
a.pill:hover { border-color: var(--c-accent); color: var(--c-accent); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.pill--accent { background: var(--c-accent); color: #fff; border-color: transparent; }
.pill--tint { background: var(--c-bg-tint); border-color: transparent; color: var(--c-accent); }

.badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--c-bg-tint);
  color: var(--c-accent);
}
.badge--warm { background: rgba(255,107,74,.12); color: var(--c-warm-dark); }

.pill-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Placeholder visuel interne (pas de service externe) */
.ph {
  position: relative;
  border-radius: var(--c-radius);
  background:
    linear-gradient(135deg, var(--c-bg-tint) 0%, #e3e8ff 100%);
  border: 1px solid var(--c-border);
  display: grid;
  place-items: center;
  min-height: 240px;
  overflow: hidden;
  color: var(--c-accent);
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(58,102,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,102,255,.06) 1px, transparent 1px);
  background-size: 26px 26px;
}
.ph__label {
  position: relative;
  z-index: 1;
  font-weight: 600;
  font-size: .92rem;
  color: var(--c-accent);
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(2px);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(58,102,255,.2);
  text-align: center;
  max-width: 80%;
}
.ph svg.ph__ico { position: relative; z-index:1; width: 40px; height: 40px; opacity:.5; margin-bottom: 12px; }

/* Filet fin bronze (touche identité) */
.rule-bronze { height: 2px; width: 56px; background: var(--c-bronze); border: none; margin: 0 0 24px; border-radius: 2px; }

/* Listes à check */
.check-list { list-style: none; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--c-ink-soft); }
.check-list li svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--c-success); margin-top: 1px; }

/* ---------------------------------------------------------------------
   6. HEADER / MENU STICKY
   --------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand a { color: var(--c-ink); }
.brand__name { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; }
.brand__base { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--c-bronze); margin-top: 3px; font-weight: 600; }
.brand img { max-height: 44px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav ul { display: flex; align-items: center; gap: 22px; list-style: none; }
.main-nav a { color: var(--c-ink); font-weight: 600; font-size: .95rem; position: relative; }
.main-nav a:hover { color: var(--c-accent); }
.main-nav .menu-item-has-children > a::after { content: ""; }
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* Burger */
.nav-toggle {
  display: none;
  background: transparent; border: none;
  width: 44px; height: 44px;
  flex-direction: column; gap: 5px; justify-content: center; align-items: center;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------
   7. FOOTER
   --------------------------------------------------------------------- */
.site-footer { background: var(--c-bg-soft); border-top: 1px solid var(--c-border); padding: 80px 0 40px; }
.footer-signature { max-width: 560px; margin-bottom: 56px; }
.footer-signature .brand__name { font-size: 1.9rem; color: var(--c-ink); }
.footer-signature p { font-size: 1.15rem; color: var(--c-ink); font-weight: 600; margin-top: 12px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-ink-soft); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a { color: var(--c-ink); font-weight: 500; font-size: .95rem; }
.footer-col a:hover { color: var(--c-accent); }
.footer-bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--c-border); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: .85rem; color: var(--c-ink-soft); }

/* ---------------------------------------------------------------------
   8. BLOCS HOME
   --------------------------------------------------------------------- */
/* Hero */
.hero { padding: 88px 0 64px; }
.hero .grid { grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .subtitle { font-size: clamp(1.15rem,1.7vw,1.4rem); color: var(--c-ink); font-weight: 600; margin-bottom: 18px; }
.hero .accroche { font-size: 1.08rem; margin-bottom: 32px; max-width: 560px; }
.hero .btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }
.hero .ph { min-height: 420px; }
.sector-band { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--c-border); }
.sector-band .pill-row { gap: 12px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Bloc grand format */
.feature-split .grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-split .ph { min-height: 340px; }

/* Chiffres */
.stats-grid { grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.stat { text-align: center; padding: 36px 20px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--c-radius); box-shadow: var(--shadow-soft); }
.stat .num { font-size: clamp(2.4rem,4vw,3.2rem); font-weight: 800; color: var(--c-accent); letter-spacing: -0.03em; line-height: 1; }
.stat .num .suffix { font-size: .5em; }
.stat .label { margin-top: 12px; font-size: .98rem; color: var(--c-ink-soft); font-weight: 500; }

/* Méthode (6 étapes) */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start; background: #fff; border: 1px solid var(--c-border); border-radius: var(--c-radius); padding: 26px 30px; box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease; }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.step .step-num { counter-increment: step; width: 48px; height: 48px; border-radius: 14px; background: var(--c-bg-tint); color: var(--c-accent); display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; }
.step .step-num::before { content: counter(step,decimal-leading-zero); }
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; }

/* Galerie projets */
.proj-gallery { grid-template-columns: repeat(4,1fr); gap: var(--gap); }
.proj-gallery .ph { min-height: 200px; }

/* CTA final */
.cta-final { background: linear-gradient(120deg, var(--c-accent) 0%, #5578ff 100%); border-radius: var(--c-radius); padding: 72px 56px; text-align: center; color: #fff; }
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255,255,255,.9); font-size: 1.15rem; }
.cta-final .btn-row { justify-content: center; margin-top: 28px; }

/* Comparatif court (home) */
.minicompare { width: 100%; border-collapse: separate; border-spacing: 0; background:#fff; border:1px solid var(--c-border); border-radius: var(--c-radius); overflow: hidden; }
.minicompare th, .minicompare td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--c-border); }
.minicompare thead th { background: var(--c-bg-soft); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--c-ink-soft); }
.minicompare .col-arting { background: var(--c-bg-tint); }
.minicompare tr:last-child td { border-bottom: none; }

/* ---------------------------------------------------------------------
   9. PAGES SECTEUR
   --------------------------------------------------------------------- */
.sector-hero { padding: 80px 0 56px; }
.sector-hero .badge { margin-bottom: 18px; }
.tag-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.norm-tile { background:#fff; border:1px solid var(--c-border); border-radius: var(--c-radius-sm); padding: 16px 18px; font-weight:600; color: var(--c-ink); box-shadow: var(--shadow-soft); }

/* Accordéon (programme / FAQ) */
.accordion details { background:#fff; border:1px solid var(--c-border); border-radius: var(--c-radius-sm); margin-bottom: 14px; overflow: hidden; }
.accordion summary { list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 700; color: var(--c-ink); display:flex; justify-content: space-between; align-items:center; gap: 16px; }
.accordion summary::-webkit-details-marker { display:none; }
.accordion summary .chev { width:22px; height:22px; color: var(--c-accent); transition: transform .25s ease; flex:0 0 22px; }
.accordion details[open] summary .chev { transform: rotate(180deg); }
.accordion .acc-body { padding: 0 26px 24px; color: var(--c-ink-soft); }

/* ---------------------------------------------------------------------
   10. PAGES COMPARATIF
   --------------------------------------------------------------------- */
.compare-hero .grid { grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 40px; }
.compare-card { padding: 36px; border-radius: var(--c-radius); border:1px solid var(--c-border); background:#fff; box-shadow: var(--shadow-soft); }
.compare-card.is-arting { background: var(--c-bg-tint); border-color: transparent; }
.compare-card h3 { margin-bottom: 8px; }

.compare-table { width:100%; border-collapse: separate; border-spacing:0; background:#fff; border:1px solid var(--c-border); border-radius: var(--c-radius); overflow:hidden; }
.compare-table th, .compare-table td { padding: 15px 20px; text-align:left; border-bottom:1px solid var(--c-border); font-size: .96rem; }
.compare-table thead th { background: var(--c-bg-soft); font-size:.82rem; text-transform:uppercase; letter-spacing:.04em; color: var(--c-ink-soft); }
.compare-table thead th.col-arting { background: var(--c-accent); color:#fff; position: relative; }
.compare-table td.col-arting, .compare-table tbody .col-arting { background: var(--c-bg-tint); }
.compare-table .crit { font-weight:600; color: var(--c-ink); }
.compare-table tr:last-child td { border-bottom:none; }

.status { display:inline-flex; align-items:center; gap:7px; font-weight:600; font-size:.9rem; }
.status svg { width:18px; height:18px; flex:0 0 18px; }
.status--inclus { color: var(--c-success); }
.status--charge { color: var(--c-ink-soft); }
.status--variable { color: var(--c-bronze); }
.status--option { color: var(--c-accent); }

.decision-grid { grid-template-columns: 1fr 1fr; gap: var(--gap); }
.decision-card { padding: 36px; border-radius: var(--c-radius); }
.decision-card.trad { background:#fff; border:1px solid var(--c-border); }
.decision-card.arting { background: var(--c-ink); color:#fff; }
.decision-card.arting h3 { color:#fff; }
.decision-card.arting .check-list li { color: rgba(255,255,255,.85); }

/* ---------------------------------------------------------------------
   11. ANIMATIONS (fade-up)
   --------------------------------------------------------------------- */
.fade-up { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------------
   12. RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --section-pad: 88px; }
  .hero .grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-split .grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .proj-gallery { grid-template-columns: repeat(2,1fr); }
  .bento .col-4 { grid-column: span 6; }
  .bento .col-8 { grid-column: span 12; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }
  body { font-size: 16px; }

  /* Menu mobile */
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 76px 0 auto 0;
    background: #fff;
    flex-direction: column; align-items: stretch;
    gap: 0;
    padding: 16px 24px 28px;
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-hover);
    transform: translateY(-120%);
    transition: transform .3s ease;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .main-nav li { border-bottom: 1px solid var(--c-border); }
  .main-nav a { display: block; padding: 14px 4px; }
  .nav-cta { margin-top: 18px; }

  .grid-2, .grid-3, .grid-4, .stats-grid, .decision-grid, .compare-hero .grid { grid-template-columns: 1fr; }
  .proj-gallery { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: repeat(6,1fr); }
  .bento .col-4, .bento .col-6, .bento .col-8, .bento .col-12 { grid-column: span 6; }
  .step { grid-template-columns: 48px 1fr; gap: 16px; padding: 22px; }
  .cta-final { padding: 48px 28px; }

  /* Tables scrollables */
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-table { min-width: 640px; }
}
