/* ARITHMETHIC — feuille de styles globale.
   Polices auto-hébergées (aucune requête tierce, cf. politique de confidentialité). */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: #FBF9F4;
  font-family: 'Space Grotesk', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

:focus-visible {
  outline: 2px solid #B85C4A;
  outline-offset: 2px;
}

/* <FocusOnNavigate> déplace le focus programmatique sur le h1 à chaque
   navigation (annonce de page pour les lecteurs d'écran) : ce titre n'étant
   pas un élément interactif, on masque l'anneau de focus visuel ici. */
h1:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: #1B1A17;
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

@keyframes vousCycle {
  0%   { color:#8CBF63; }
  14%  { color:#5FA6B8; }
  28%  { color:#C56F9E; }
  42%  { color:#F08D8D; }
  57%  { color:#F0A05F; }
  71%  { color:#E9C95C; }
  85%  { color:#7FB0C4; }
  100% { color:#8CBF63; }
}

.page {
  min-height: 100vh;
  background: #FBF9F4;
  display: flex;
  flex-direction: column;
}

/* --- barre supérieure --- */
.topbar {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 44px;
  border-bottom: 1px solid #EFEBE2;
}
.logo-link { display: block; line-height: 0; }
.logo { height: 38px; width: auto; display: block; }
.tagline {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #9A968D;
  font-weight: 600;
}

/* --- hero (accueil) --- */
.hero {
  flex: 1;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 72px;
  padding: 80px 44px;
  align-items: center;
}
.kicker {
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #B85C4A;
  font-weight: 600;
  margin: 0 0 26px;
}
h1 {
  font-size: 64px;
  line-height: .98;
  letter-spacing: -.03em;
  margin: 0 0 34px;
  color: #1B1A17;
  font-weight: 700;
}
.vous { animation: vousCycle 9s linear infinite; }
.lead {
  font-size: 16px;
  line-height: 1.62;
  color: #524F49;
  margin: 0 0 34px;
  font-family: 'IBM Plex Sans', sans-serif;
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* --- badges de compétences --- */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 44px;
  padding: 0;
  list-style: none;
}
.badges li {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.b-erp  { background:#EAF3EE; color:#3E7A57; }
.b-edge { background:#F6EAF1; color:#A6497E; }
.b-ia   { background:#EAF1F5; color:#3B7B90; }
.b-proc { background:#FBF0E6; color:#B5722F; }
.b-data { background:#FCEAE6; color:#B5562F; }

/* --- CTA contact (e-mail obfusqué, injecté au survol/focus) --- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: #1B1A17;
  text-decoration: none;
}
.cta:hover, .cta:focus-visible { color: #B85C4A; }
.cta-arrow {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #1B1A17;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
#ctm-txt { text-decoration: underline; text-underline-offset: 3px; }

/* --- mosaïque isométrique (décorative) --- */
.mosaic {
  position: relative;
  width: 460px;
  height: 460px;
  border-radius: 16px;
  overflow: hidden;
  background: #F3EFE6;
  box-shadow: inset 0 0 0 1px #EFE9DD;
}

/* --- pages légales ---
   Même gabarit que la page d'accueil : 1220px de large et 44px de gouttière,
   afin que le contenu s'aligne exactement sur la barre supérieure et le pied
   de page (cf. .topbar / .hero / .footline). */
.legal-main {
  flex: 1;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 80px 44px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1B1A17;
  text-decoration: none;
  margin-bottom: 40px;
}
.back-link:hover, .back-link:focus-visible { color: #B85C4A; }
.legal-kicker {
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #B85C4A;
  font-weight: 600;
  margin: 0 0 20px;
}
.legal-title {
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 16px;
  color: #1B1A17;
  font-weight: 700;
}
.legal-updated {
  font-size: 14px;
  color: #9A968D;
  font-family: 'IBM Plex Sans', sans-serif;
  margin: 0 0 48px;
}
.legal-section { margin-bottom: 40px; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section h2 {
  font-size: 20px;
  font-weight: 600;
  color: #1B1A17;
  margin: 0 0 12px;
}
.legal-section p {
  font-size: 16px;
  line-height: 1.8;
  color: #524F49;
  font-family: 'IBM Plex Sans', sans-serif;
  margin: 0 0 14px;
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.legal-section p:last-child { margin-bottom: 0; }
/* Blocs de coordonnées : lignes courtes séparées par <br>, jamais justifiées. */
.legal-section p.legal-identity {
  text-align: left;
  -webkit-hyphens: manual;
  hyphens: manual;
}
.legal-section a {
  color: #1B1A17;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-section a:hover, .legal-section a:focus-visible { color: #B85C4A; }

/* --- 404 --- */
.notfound-main {
  flex: 1;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 80px 44px;
}

/* --- pied de page --- */
.footline {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 26px 44px;
  border-top: 1px solid #EFEBE2;
  font-size: 13px;
  color: #9A968D;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav a {
  font-size: 13px;
  color: #9A968D;
  text-decoration: none;
}
.footer-nav a:hover, .footer-nav a:focus-visible { color: #B85C4A; }
.footer-nav a.active {
  color: #B85C4A;
  font-weight: 600;
}
.footer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.foot-tag { font-family: 'IBM Plex Sans', sans-serif; }

/* --- responsive : indexation mobile-first Google --- */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 56px 24px;
  }
  h1 { font-size: 44px; }
  .mosaic {
    width: 100%;
    max-width: 460px;
    height: 380px;
    justify-self: center;
  }
  .topbar, .footline { padding: 22px 24px; }
  .legal-main, .notfound-main { padding: 56px 24px; }
  .legal-title { font-size: 32px; }
}

/* Sur écran étroit, la justification creuse des blancs entre les mots :
   on revient à un alignement à gauche. */
@media (max-width: 600px) {
  .lead, .legal-section p { text-align: left; }
}
