/* =========================================================
   PICMILE — identité commune à toutes les pages
   Chargée en PREMIER sur chaque page (avant la feuille propre à la page).
   ========================================================= */

/* Polices hébergées sur le site (variables : un fichier couvre 400 à 800).
   Arabe, hindi, ourdou, japonais, coréen, chinois : ces polices ne couvrent
   pas ces écritures, le navigateur bascule tout seul sur les polices système
   listées après. */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/figtree-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/figtree-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;
}

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/sora-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/sora-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 {
  --font-display: 'Sora', 'Segoe UI', system-ui, -apple-system, 'Noto Sans', 'Noto Sans Arabic', 'Noto Sans Devanagari', 'Noto Sans Thai', 'Leelawadee UI', 'Thonburi', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans SC', sans-serif;
  --font-body: 'Figtree', 'Segoe UI', system-ui, -apple-system, 'Noto Sans', 'Noto Sans Arabic', 'Noto Sans Devanagari', 'Noto Sans Thai', 'Leelawadee UI', 'Thonburi', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans SC', sans-serif;
  /* Chiffres alignés (dimensions, zoom, pourcentages) sans police monospace */
  --font-ui: var(--font-body);
}

html, body, button, input, select, textarea {
  font-family: var(--font-body);
}

h1, h2, h3, h4, .hero-title, .section-title {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* =========================================================
   EN-TÊTE UNIQUE (views/includes/site-header.ejs)
   Mêmes tailles et couleurs sur toutes les pages, quelle que soit la
   feuille de style de la page (d'où la spécificité #site-header).
   ========================================================= */
#site-header.navbar {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
  box-sizing: border-box;
  padding: 0 5% !important;
  background: rgba(13, 10, 29, 0.92) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  font-family: var(--font-body);
}

#site-header .logo a {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

#site-header .logo-lockup {
  height: 35px;
  width: auto;
  display: block;
}

#site-header .logo-word {
  height: 24px;
  width: auto;
  display: block;
}

#site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

#site-header .nav-links a {
  position: relative;
  line-height: 1.4;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

#site-header .nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #fbbf24;
  transition: width 0.25s ease;
}

#site-header .nav-links a:hover,
#site-header .nav-links a[aria-current="page"] {
  color: #fff;
}

#site-header .nav-links a:hover::after,
#site-header .nav-links a[aria-current="page"]::after {
  width: 100%;
}

#site-header .nav-links .nav-cta {
  display: inline-block;
  padding: 8px 16px;
  line-height: 1.2;
  letter-spacing: 0;
  border-radius: 999px;
  background: #fbbf24;
  color: #1a1206;
}

#site-header .nav-links .nav-cta::after { display: none; }
#site-header .nav-links .nav-cta:hover,
#site-header .nav-links .nav-cta[aria-current="page"] { background: #fcd34d; color: #1a1206; }

.site-lang {
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font: 600 13px var(--font-body);
  cursor: pointer;
}

.site-lang option { background: #1a1635; color: #f4f4f5; }

#site-header .mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

#site-mobile-nav {
  display: none;
  position: sticky;
  top: 68px;
  z-index: 999;
  flex-direction: column;
  padding: 8px 5vw 16px;
  background: rgba(13, 10, 29, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#site-mobile-nav.active { display: flex; }

#site-mobile-nav a {
  padding: 12px 4px;
  color: rgba(255, 255, 255, 0.85);
  font: 600 16px var(--font-body);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#site-mobile-nav .site-lang { margin-top: 12px; align-self: flex-start; }

@media (max-width: 860px) {
  #site-header .nav-links { display: none; }
  #site-header .mobile-menu-btn { display: block; }
}

/* Visually hidden but read by screen readers and search engines
   (main title of the full-screen tool pages) */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   SERVICE ICONS (views/includes/service-icon.ejs)
   ========================================================= */
.services .service-icon {
  border: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 18px -8px var(--tint, rgba(0, 0, 0, 0.4));
  background: linear-gradient(140deg, var(--from), var(--to));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.services .service-card:hover .service-icon { transform: rotate(-6deg) scale(1.06); }
.service-icon .service-svg { display: block; }
.service-icon--image-editing       { --from: #ff5fa2; --to: #b42fd6; --tint: #d946ef; }
.service-icon--gradient-generation { --from: #2ee6f5; --to: #7b5cff; --tint: #6366f1; }
.service-icon--word-art            { --from: #ffd84a; --to: #ff7a3d; --tint: #f97316; }
.service-icon--add-text            { --from: #60a5fa; --to: #2563eb; --tint: #3b82f6; }
.service-icon--color-adjustment    { --from: #f472b6; --to: #f97316; --tint: #f43f5e; }
.service-icon--brighten-image      { --from: #fde047; --to: #f59e0b; --tint: #eab308; }
.service-icon--darken-image        { --from: #818cf8; --to: #3730a3; --tint: #4f46e5; }
.service-icon--crop-image          { --from: #34d399; --to: #059669; --tint: #10b981; }
.service-icon--resize-image        { --from: #22d3ee; --to: #0e7490; --tint: #06b6d4; }
.service-icon--remove-background   { --from: #a78bfa; --to: #db2777; --tint: #c026d3; }
.service-icon--rotate-image        { --from: #fb7185; --to: #be123c; --tint: #e11d48; }
.service-icon--templates           { --from: #c084fc; --to: #4f46e5; --tint: #7c3aed; }

/* Buttons and calls to action: their label is not selectable text
   (no accidental selection on click / double-click) */
.cta-button, .nav-cta, #site-header .nav-links .nav-cta, .btn, button {
  -webkit-user-select: none;
  user-select: none;
}

/* Header and home hero: their text is not selectable */
#site-header, #site-mobile-nav, .hero, .hero-title, .hero-subtitle {
  -webkit-user-select: none;
  user-select: none;
}
