/* VDSC — habillage « bento » par-dessus le style DevStack de YOOtheme
   Cartes blanches arrondies sur fond gris clair, dégradé bleu, boutons en pilule, texte sans serif. */

:root {
  --v-blue: #2f9be0;
  --v-blue-2: #0a6cf0;
  --v-bg: #f3f4f7;
  --v-ink: #1d1d1f;
  --v-muted: #62646c;
  --v-radius: 26px;
  --v-shadow: 0 1px 2px rgba(20, 30, 60, .04), 0 10px 30px rgba(20, 30, 60, .06);
  --v-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---- Base ------------------------------------------------------------------------------- */
html, body, .tm-page { background: var(--v-bg); }
body, body *:not(code):not(pre):not(kbd) { font-family: var(--v-font) !important; }
code, pre, kbd { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; }
code { background: #eef0f4; border-radius: 6px; padding: 2px 6px; color: #33353c; }
.vdsc-card--blue code { background: rgba(255,255,255,.2); color: #fff; }
.lang-item > a { text-transform: uppercase; font-weight: 600; }
body, .uk-h1, .uk-h2, .uk-h3, .uk-h4, .uk-h5, .uk-h6, h1, h2, h3, h4, h5, h6,
.uk-heading-small, .uk-heading-medium, .uk-button, .uk-navbar-nav > li > a, .uk-nav, .uk-text-meta,
.uk-form-label, .uk-input, .uk-select, .uk-textarea {
  font-family: var(--v-font);
}
body { color: var(--v-ink); font-size: 17px; }
h1, h2, h3, h4, h5, h6, .uk-h1, .uk-h2, .uk-h3, .uk-h4, .uk-h5, .uk-h6, .uk-heading-small {
  text-transform: none; letter-spacing: -.022em; font-weight: 700; color: var(--v-ink);
}
.uk-heading-small { font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.08; }
.uk-h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.uk-text-lead { font-size: 1.2rem; line-height: 1.5; color: var(--v-muted); font-weight: 400; }
.uk-text-meta { color: var(--v-muted); letter-spacing: .08em; font-size: .78rem; font-weight: 600; }
a { color: var(--v-blue-2); }
.uk-section-default, .uk-section-muted { background: transparent; }
.uk-section { padding-top: 10px; padding-bottom: 10px; }
.uk-section:first-of-type { padding-top: 20px; }

/* ---- En-tête ----------------------------------------------------------------------------- */
.tm-header, .uk-navbar-container:not(.uk-navbar-transparent) { background: transparent; }
.uk-navbar-container { border: 0; }
.uk-navbar-nav > li > a {
  text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500;
  color: #4b4d55; min-height: 60px;
}
.uk-navbar-nav > li:hover > a, .uk-navbar-nav > li > a:focus, .uk-navbar-nav > li.uk-active > a { color: var(--v-ink); }
.uk-navbar-nav > li.uk-active > a { color: var(--v-blue-2); }
.uk-logo img { max-height: 48px; width: auto; }
.uk-navbar-dropdown, .uk-dropdown { border-radius: 18px; box-shadow: var(--v-shadow); border: 0; }

/* ---- Cartes bento ---------------------------------------------------------------------- */
/* La classe est posée sur la cellule de grille ; la carte visible est son enfant .uk-panel */
.vdsc-card > .uk-panel {
  background: #fff; border-radius: var(--v-radius); box-shadow: var(--v-shadow);
  padding: 36px; box-sizing: border-box;
}
.vdsc-card--pad > .uk-panel { padding: 44px; }
.vdsc-card--tint > .uk-panel {
  background: linear-gradient(150deg, #eaf4fc 0%, #dfeaff 100%); display: flex; align-items: center;
  justify-content: center; padding: 44px;
}
.vdsc-card--blue > .uk-panel {
  background: linear-gradient(155deg, #4aa9dc 0%, var(--v-blue-2) 100%); color: #fff; padding: 44px;
}
.vdsc-card--blue h1, .vdsc-card--blue h2, .vdsc-card--blue h3, .vdsc-card--blue p, .vdsc-card--blue li,
.vdsc-card--blue .uk-text-lead, .vdsc-card--blue .uk-text-meta, .vdsc-card--blue a:not(.uk-button) { color: #fff; }
.vdsc-card--blue .uk-text-lead { color: rgba(255, 255, 255, .9); }
.vdsc-card--blue .uk-list > li { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .22); font-size: 1.05rem; }
.vdsc-card--blue .uk-list > li:last-child { border-bottom: 0; }
.vdsc-card--blue a:not(.uk-button):hover { text-decoration: underline; }
.vdsc-card > .uk-panel > :last-child { margin-bottom: 0; }
.vdsc-card.uk-flex-middle { align-items: stretch; }          /* toutes les cartes d'une rangée ont la même hauteur */
.vdsc-card--blue > .uk-panel, .vdsc-card--pad > .uk-panel { display: flex; flex-direction: column; justify-content: center; }
.vdsc-card--tint > .uk-panel { display: flex; }

/* Cartes des grilles (apps, fonctions) */
.uk-card-default, .uk-card { border-radius: var(--v-radius); border: 0; box-shadow: var(--v-shadow); background: #fff; }
.uk-card-default { transition: transform .2s ease, box-shadow .2s ease; }
.uk-card-default:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20, 30, 60, .05), 0 18px 40px rgba(20, 30, 60, .10); }
.uk-card-body { padding: 30px; }
.uk-card-title, .uk-card .uk-h4, .uk-card .uk-h3 { text-transform: none; letter-spacing: -.01em; font-weight: 700; }
.uk-card .el-meta { text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--v-muted); }
.uk-card .el-image { border-radius: 20px; }

/* ---- Boutons en pilule ----------------------------------------------------------------- */
.uk-button {
  border-radius: 999px; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 15px;
  padding: 0 26px; line-height: 46px; border: 0;
}
.uk-button-primary { background: linear-gradient(155deg, #3aa3e6, var(--v-blue-2)); color: #fff; }
.uk-button-primary:hover, .uk-button-primary:focus { background: linear-gradient(155deg, #2f96da, #085ad0); color: #fff; }
.uk-button-default { background: #eef0f4; color: var(--v-ink); }
.uk-button-default:hover { background: #e2e5eb; color: var(--v-ink); }
.uk-button-text { color: var(--v-blue-2); }
.vdsc-card--blue .uk-button-primary { background: #fff; color: var(--v-blue-2); }
.vdsc-card--blue .uk-button-primary:hover { background: #f0f6ff; color: var(--v-blue-2); }
.vdsc-card--blue .uk-button-default { background: rgba(255, 255, 255, .18); color: #fff; }
.vdsc-card--blue .uk-button-default:hover { background: rgba(255, 255, 255, .28); color: #fff; }

/* ---- Étiquettes « services » ------------------------------------------------------------ */
.vdsc-tags { margin: 0 0 18px; }
.vdsc-tag {
  display: inline-block; background: #f0f2f6; color: #33353c; border-radius: 999px; padding: 7px 16px;
  margin: 0 8px 10px 0; font-size: 14.5px; font-weight: 500;
}

/* ---- Formulaire de contact ------------------------------------------------------------- */
.vdsc-contact .uk-input, .vdsc-contact .uk-select, .vdsc-contact .uk-textarea {
  background: #f6f7fa; border: 1px solid #e4e7ee; border-radius: 16px; padding-left: 16px; padding-right: 16px;
  height: 50px; font-size: 16px; color: var(--v-ink);
}
.vdsc-contact .uk-textarea { height: auto; padding-top: 14px; padding-bottom: 14px; }
.vdsc-contact .uk-input:focus, .vdsc-contact .uk-select:focus, .vdsc-contact .uk-textarea:focus {
  background: #fff; border-color: var(--v-blue); outline: 0; box-shadow: 0 0 0 4px rgba(47, 155, 224, .15);
}
.vdsc-contact .uk-form-label { font-weight: 600; margin-bottom: 6px; display: block; font-size: 14px;
  text-transform: none; letter-spacing: 0; color: var(--v-ink); }
.vdsc-contact .uk-button-primary { min-width: 220px; }
.uk-alert { border-radius: 16px; }

/* ---- Pied de page ------------------------------------------------------------------------ */
.tm-footer, .tm-footer .uk-section { background: transparent; }
.tm-footer .uk-section { padding-top: 24px; padding-bottom: 32px; }
.tm-footer, .tm-footer a { color: var(--v-muted); font-size: 14px; }

/* ---- Mobile ---------------------------------------------------------------------------------- */
@media (max-width: 959px) {
  .vdsc-card > .uk-panel, .vdsc-card--pad > .uk-panel, .vdsc-card--blue > .uk-panel { padding: 26px; }
  .uk-section { padding-top: 6px; padding-bottom: 6px; }
}

/* Tuiles visuelles des apps : l'image remplit toute la carte */
.vdsc-card--art > .uk-panel { padding: 0; overflow: hidden; display: flex; background: #0b1f3a; min-height: 320px; }
.vdsc-card--art > .uk-panel > * { flex: 1 1 auto; width: 100%; }
.vdsc-card--art .el-image, .vdsc-card--art img { display: block; width: 100%; height: 100% !important; object-fit: cover; object-position: 20% 50%; border-radius: 0; }
.vdsc-card--art .uk-margin-remove, .vdsc-card--art .uk-panel > * { margin: 0; }
/* Cartes d'apps : la tuile arrondie en haut de la carte */
.uk-card .el-image { border-radius: 18px; width: 100%; }
.uk-card-body { padding: 18px 18px 26px; }
.uk-card .el-content, .uk-card .el-title, .uk-card .el-meta, .uk-card .el-link { margin-left: 8px; margin-right: 8px; }

/* Sélecteur de langue en drapeaux */
.lang-item > a { display: flex; align-items: center; }
.lang-item img { width: 24px !important; height: auto !important; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.lang-item:not(.current-lang) img { opacity: .55; transition: opacity .15s; }
.lang-item:hover img, .lang-item.current-lang img { opacity: 1; }

/* Menu mobile : même typographie que le menu du bureau */
.uk-nav-default > li > a, .uk-nav > li > a, .uk-nav-primary > li > a {
  text-transform: none; letter-spacing: 0; font-size: 18px; font-weight: 500; color: var(--v-ink);
}
.uk-nav > li.uk-active > a { color: var(--v-blue-2); }
.uk-nav .lang-item img, .uk-offcanvas .lang-item img, .uk-dropdown .lang-item img { opacity: 1; }

/* Boutons : le texte peut passer à la ligne sans étirer la pilule */
.uk-button { white-space: normal; line-height: 1.25; padding: 14px 26px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; text-align: center; }

/* Mobile : la tuile s'affiche en entier (pas de rognage) */
@media (max-width: 959px) {
  .vdsc-card--art > .uk-panel { min-height: 0; }
  .vdsc-card--art .el-image, .vdsc-card--art img { height: auto !important; object-fit: contain; }
}

/* Pied de page : lien légal dans la langue de la page (le pied de page est commun aux deux langues) */
html[lang^="en"] .vdsc-legal-fr, html[lang^="fr"] .vdsc-legal-en, .vdsc-legal-sep { display: none; }

/* Menu du bureau : les drapeaux de langue passent tout à droite de l'en-tête */
@media (min-width: 960px) {
  .uk-navbar-left { flex: 1 1 auto; }
  .uk-navbar-left > .uk-navbar-nav { flex: 1 1 auto; }
  .uk-navbar-nav > .lang-item-first { margin-left: auto; }
  .uk-navbar-nav > .lang-item > a { padding-left: 8px; padding-right: 8px; }
  .uk-navbar-nav > .lang-item:last-child > a { padding-right: 0; }      /* dernier drapeau collé à la gouttière droite */
  .uk-navbar-left > .uk-logo { padding-left: 0; }                       /* logo collé à la gouttière gauche */
}

/* En-tête mobile : drapeaux à droite (menu « langues » dédié) ; on les retire de la liste du hamburger */
.uk-offcanvas .lang-item, [id^="tm-dialog"] .lang-item, .uk-modal .lang-item { display: none; }
.uk-navbar-right .lang-item > a { padding-left: 6px; padding-right: 6px; }

/* ---- Logos d'apps animés (carte de l'accueil) --------------------------------------------
   Entrée « ressort » échelonnée, puis lévitation douce et décalée ; au survol l'icône se soulève. */
.vdsc-card--stage > .uk-panel {
  background:
    radial-gradient(circle at 20% 15%, rgba(74, 169, 220, .16), transparent 55%),
    radial-gradient(circle at 85% 90%, rgba(10, 108, 240, .12), transparent 55%),
    #fff;
  overflow: hidden; display: flex; align-items: center;
}
.vdsc-logos { width: 100%; margin: 0; }
.vdsc-logos .uk-grid > div { perspective: 600px; }
.vdsc-logos .el-item { display: block; }
.vdsc-logos picture, .vdsc-logos img { display: block; width: 100%; }
.vdsc-logos img {
  border-radius: 22%; box-shadow: 0 10px 24px rgba(20, 30, 60, .18), 0 2px 4px rgba(20, 30, 60, .08);
  transform-origin: 50% 60%; will-change: transform;
  animation:
    vdsc-pop .9s cubic-bezier(.2, 1.3, .4, 1) both,
    vdsc-float 5.5s ease-in-out infinite;
  transition: filter .25s ease, box-shadow .25s ease;
}
.vdsc-logos .uk-grid > div:nth-child(1) img { animation-delay: .05s, .95s; animation-duration: .9s, 5.2s; }
.vdsc-logos .uk-grid > div:nth-child(2) img { animation-delay: .18s, 1.4s; animation-duration: .9s, 6.1s; }
.vdsc-logos .uk-grid > div:nth-child(3) img { animation-delay: .31s, .6s;  animation-duration: .9s, 5.6s; }
.vdsc-logos .uk-grid > div:nth-child(4) img { animation-delay: .44s, 1.8s; animation-duration: .9s, 6.4s; }
.vdsc-logos .uk-grid > div:nth-child(5) img { animation-delay: .57s, .3s;  animation-duration: .9s, 5.0s; }
.vdsc-logos .uk-grid > div:nth-child(6) img { animation-delay: .70s, 1.1s; animation-duration: .9s, 5.9s; }
.vdsc-logos .uk-grid > div:nth-child(7) img { animation-delay: .83s, .8s;  animation-duration: .9s, 5.4s; }
/* Le survol agit sur le conteneur : une animation en cours l'emporterait sur une règle posée sur l'image */
.vdsc-logos .el-item { transition: transform .28s cubic-bezier(.2, 1.5, .4, 1); }
.vdsc-logos .el-item:hover { transform: translateY(-10px) scale(1.1) rotate(-3deg); z-index: 2; position: relative; }
.vdsc-logos .el-item:hover img {
  filter: saturate(1.15) brightness(1.04);
  box-shadow: 0 24px 38px rgba(20, 30, 60, .30), 0 4px 8px rgba(20, 30, 60, .1);
}
@keyframes vdsc-pop {
  0%   { opacity: 0; transform: translateY(46px) scale(.35) rotate(-14deg); }
  60%  { opacity: 1; transform: translateY(-8px) scale(1.08) rotate(3deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes vdsc-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-7px) rotate(1.2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .vdsc-logos img { animation: none !important; opacity: 1 !important; }
}

/* Carte « projet sur mesure » qui comble la dernière case de la grille des apps */
.vdsc-apps .uk-card-primary { background: linear-gradient(155deg, #4aa9dc 0%, var(--v-blue-2) 100%); color: #fff; border-radius: var(--v-radius); }
.vdsc-apps .uk-card-primary .el-content, .vdsc-apps .uk-card-primary .el-content * { color: #fff; }
.vdsc-cta-title { display: block; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 10px; }
.vdsc-apps .uk-card-primary .uk-button { background: #fff; color: var(--v-blue-2); }
.vdsc-apps .uk-card-primary .uk-card-body { padding: 34px 26px; display: flex; flex-direction: column; justify-content: center; height: 100%; box-sizing: border-box; }

/* Avec JavaScript, les logos restent cachés jusqu'à ce que la carte soit à l'écran (classe .vdsc-in ajoutée par le script) */
html.vdsc-js .vdsc-logos:not(.vdsc-in) img { animation: none; opacity: 0; }

/* Cartes d'apps : « En savoir plus » toujours en bas à droite, alignés d'une carte à l'autre de la rangée */
.vdsc-apps a.uk-card { display: flex; flex-direction: column; }
.vdsc-apps a.uk-card > img, .vdsc-apps a.uk-card > picture { flex: none; }
.vdsc-apps a.uk-card > .el-content { flex: 0 0 auto; margin-bottom: 18px; }
.vdsc-apps a.uk-card > .uk-margin-top:last-child { margin-top: auto !important; padding-top: 8px; display: flex; justify-content: flex-end; }

/* ---- Boutons d'action « façon macOS » : groupe en bas à droite de la carte, bouton principal tout à droite ---- */
.vdsc-actions { margin-top: auto !important; padding-top: 26px; }
.vdsc-actions.uk-margin { margin-bottom: 0 !important; }
.vdsc-actions > .uk-grid, .vdsc-actions .uk-grid { justify-content: flex-end; flex-wrap: wrap; }
.vdsc-actions .uk-button { min-width: 0; }
/* Dans les cartes texte/bleues : le texte reste en haut, les boutons descendent en bas à droite */
.vdsc-card--blue > .uk-panel, .vdsc-card--pad > .uk-panel { justify-content: flex-start; }
.vdsc-card > .uk-panel > .vdsc-actions { align-self: stretch; }
.vdsc-contact .vdsc-actions { display: flex; justify-content: flex-end; margin-top: 8px !important; padding-top: 0; }
/* Sur mobile, quand deux boutons ne tiennent pas côte à côte : principal en bas, à droite */
@media (max-width: 959px) {
  .vdsc-actions > .uk-grid { flex-direction: row; }
}

/* ---- Carrousel des pages d'apps ----------------------------------------------------------- */
.vdsc-card--shots > .uk-panel { padding: 0; overflow: hidden; background: #0b1f3a; display: block; }
.vdsc-shots .uk-slideshow-items { border-radius: 0; }
.vdsc-shots img { object-fit: cover; }
.vdsc-shots .uk-overlay { padding-bottom: 46px; }
.vdsc-shots .el-title { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2.2rem); margin: 0 0 6px; letter-spacing: -.02em; }
.vdsc-shots .el-content { color: rgba(255, 255, 255, .88); font-size: clamp(.95rem, 1.5vw, 1.15rem); line-height: 1.45; margin: 0; max-width: 46ch; }
.vdsc-shots .uk-dotnav > * > * { background: rgba(255, 255, 255, .45); }
.vdsc-shots .uk-dotnav > .uk-active > * { background: #fff; }
.vdsc-shots .uk-slidenav { color: #fff; background: rgba(0, 0, 0, .28); border-radius: 50%; padding: 12px; backdrop-filter: blur(6px); }
.vdsc-shots .uk-slidenav:hover { background: rgba(0, 0, 0, .45); color: #fff; }
@media (max-width: 639px) {
  .vdsc-shots .uk-overlay { padding: 18px 18px 56px; }
  /* points de navigation centrés en bas : ils ne chevauchent plus le titre de la légende */
  .vdsc-shots .uk-position-bottom-right { left: 0; right: 0; bottom: 12px; margin: 0; }
  .vdsc-shots .uk-dotnav { justify-content: center; }
  .vdsc-shots img { object-position: 74% 50%; }        /* sur écran étroit : on cadre le pictogramme de la fonction */
  .vdsc-shots .el-content { display: none; }          /* sur petit écran : titre seul, pour ne pas masquer l'image */
  .vdsc-shots .uk-slidenav-container, .vdsc-shots [class*="uk-slidenav"] { display: none; }
}
@media (prefers-reduced-motion: reduce) { .vdsc-shots .uk-slideshow-items > * { transition: none !important; } }
