/* Ajustements propres à la version Django : liens qui remplacent d'anciens boutons React
   et états pilotés par site.js. Le reste du style est dans site.css (inchangé). */

.lang a { padding: 4px 0; color: #9aa3aa; }
.lang a.active { color: var(--heading); }

.service-card-content > a { display: flex; gap: 10px; align-items: center; color: var(--white); font-weight: 700; font-size: 12px; }

/* Navigation à 7 entrées (avec « Offres d'emploi ») : libellés sur une ligne */
.site-header nav a { white-space: nowrap; }
@media (max-width: 1280px) and (min-width: 761px) {
  .site-header nav { gap: 18px; }
  .header-actions { gap: 14px; }
}
@media (max-width: 1180px) and (min-width: 761px) {
  .site-header nav { gap: 13px; }
  .site-header nav a { font-size: 12px; }
}

/* Icônes à deux états (thème, menu mobile, pause/lecture) */
.theme-icon, .menu-icon-close, .play-icon { display: none; }
.theme-icon { line-height: 0; }
:root[data-theme="light"] .theme-icon-light, :root:not([data-theme]) .theme-icon-light { display: inline-flex; }
:root[data-theme="dark"] .theme-icon-dark { display: inline-flex; }
.menu-btn[aria-expanded="true"] .menu-icon-open { display: none; }
.menu-btn[aria-expanded="true"] .menu-icon-close { display: inline; }
.pause-icon, .play-icon { line-height: 0; }
.is-paused .pause-icon { display: none; }
.is-paused .play-icon { display: inline-flex; }

/* Icônes Flaticon (police) : mêmes réglages que les anciennes icônes SVG */
.album-nav.prev .fi, .album-back .fi { transform: rotate(180deg); }
.album-tile span .fi { width: 36px !important; height: 36px !important; padding: 9px; font-size: 18px !important; color: var(--navy); background: var(--gold); }
.empty .fi { display: flex; margin: auto auto 15px; }
.footer-credit { opacity: .7; font-size: 11px; }
.footer-credit a { color: inherit; text-decoration: underline; }

/* Cartes (points forts, engagements) : remplissage en dégradé au survol.
   Le dégradé est posé sur un calque qui apparaît en fondu (un dégradé ne s'anime pas directement). */
.value, .testimonial-card { position: relative; overflow: hidden; isolation: isolate; }
.value::before, .testimonial-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, #061554 0%, #0a2380 45%, #1537bd 100%);
  opacity: 0; transform: scale(1.04); transition: opacity .45s ease, transform .45s ease;
}
.value::after, .testimonial-card::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; z-index: -1; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 209, 10, .35), rgba(253, 209, 10, 0) 70%);
  opacity: 0; transition: opacity .45s ease;
}
.value:hover::before, .testimonial-card:hover::before,
.value:focus-within::before, .testimonial-card:focus-within::before { opacity: 1; transform: none; }
.value:hover::after, .testimonial-card:hover::after { opacity: 1; }
.value, .value h3, .value p, .value .icon-box,
.testimonial-card h3, .testimonial-card p, .testimonial-card strong, .testimonial-card small,
.testimonial-card .quote-mark, .testimonial-card .testimonial-index { transition: color .35s ease, background-color .35s ease; }
.value:hover h3, .value:hover p, .testimonial-card:hover h3, .testimonial-card:hover p,
.testimonial-card:hover strong, .testimonial-card:hover .testimonial-index { color: #fff; }
.testimonial-card:hover small { color: rgba(255, 255, 255, .7); }
.value:hover .icon-box, .testimonial-card:hover .quote-mark { color: var(--navy-deep); background: var(--gold); }
.testimonial-card:hover .testimonial-author { border-color: rgba(255, 255, 255, .18); }
@media (prefers-reduced-motion: reduce) {
  .value::before, .testimonial-card::before { transition: none; transform: none; }
}

/* Réalisations : boutons de service (liens) et photos du service choisi */
.filter-bar a { padding: 11px 18px; border: 1px solid var(--line); color: var(--muted); background: var(--surface-raised); font-size: 12px; font-weight: 600; transition: border-color .2s ease, color .2s ease; }
.filter-bar a:hover { border-color: var(--navy); color: var(--heading); }
.filter-bar a.active { color: var(--white); background: var(--navy); border-color: var(--navy); }
.project-browser, .service-browser { scroll-margin-top: 110px; }
.selected-service { padding-top: 0; }
.selected-service .album-bar { align-items: flex-end; }
.selected-service-title h2 { margin: 6px 0 0; font-size: clamp(22px, 2.4vw, 30px); }
.selected-service-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 16px; }
.service-detail .button-row { margin-top: 8px; }
@media (max-width: 760px) {
  /* Boutons de service sur une ligne qui défile, plutôt qu'un bloc de 15 boutons */
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; margin-bottom: 30px; padding-bottom: 6px; scrollbar-width: thin; }
  .filter-bar a { flex: none; white-space: nowrap; }
  .selected-service .album-bar { flex-direction: column; align-items: flex-start; }
  .selected-service-actions { justify-content: flex-start; }
}

/* Offres d'emploi */
.job-list { display: grid; gap: 16px; margin-top: 48px; }
.job-card { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 30px 32px; border: 1px solid var(--line); border-left: 4px solid var(--gold); background: var(--surface-raised); transition: border-color .25s ease, transform .25s ease; }
.job-card:hover { border-color: var(--navy); border-left-color: var(--gold); transform: translateY(-3px); }
.job-card h3 { margin: 14px 0 8px; color: var(--heading); font-size: 22px; }
.job-card p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.job-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.job-tags span { padding: 5px 10px; color: var(--heading); background: var(--soft); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.job-card-side { display: grid; justify-items: end; gap: 4px; text-align: right; }
.job-card-side small { color: var(--text-muted); font-size: 11px; }
.job-card-side strong { color: var(--heading); font-size: 15px; }
.job-apply { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--heading); font-size: 13px; font-weight: 700; }

.job-detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.job-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; margin: 32px 0 40px; background: var(--line); border: 1px solid var(--line); }
.job-facts div { padding: 16px 18px; background: var(--surface-raised); }
.job-facts dt { color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.job-facts dd { margin: 6px 0 0; color: var(--heading); font-weight: 700; }
.job-description h2 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 18px; }
.job-text p { margin: 0 0 16px; }
.job-apply-box { position: sticky; top: 110px; }
.job-form-title { margin: 8px 0 24px; color: var(--heading); font-size: 22px; }
.file-field small { color: var(--text-muted); font-weight: 400; }
.file-field input[type="file"] { padding: 11px 12px; cursor: pointer; }
.file-field input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 0; color: var(--white); background: var(--navy); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.job-closed h3 { margin: 0 0 12px; color: var(--heading); }
.job-closed p { margin: 0 0 24px; }

@media (max-width: 900px) {
  .job-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .job-apply-box { position: static; }
}
@media (max-width: 640px) {
  .job-card { grid-template-columns: 1fr; gap: 16px; padding: 24px 20px; }
  .job-card-side { justify-items: start; text-align: left; }
}

/* Curseur personnalisé (créé par site.js, souris uniquement) : anneau + point central.
   Couleurs modifiables ici ; pour le rouge de la capture : #e4002b (anneau) et #f2a7b8 (point). */
:root { --cursor-ring: var(--navy); --cursor-dot: var(--gold); }
:root[data-theme="dark"] { --cursor-ring: var(--gold); --cursor-dot: var(--gold); }
.has-custom-cursor, .has-custom-cursor * { cursor: none !important; }
.has-custom-cursor.cursor-text input, .has-custom-cursor.cursor-text textarea, .has-custom-cursor.cursor-text [contenteditable] { cursor: text !important; }
.cursor-ring, .cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 10000; pointer-events: none; border-radius: 50%;
  opacity: 0; transition: opacity .25s ease; will-change: transform;
}
.cursor-ring { width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 1.5px solid var(--cursor-ring); }
.cursor-ring::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; background: var(--cursor-ring); opacity: 0; transform: scale(.3); transition: opacity .3s ease, transform .3s ease; }
.cursor-dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--cursor-dot); opacity: 0; }
.cursor-visible .cursor-ring { opacity: 1; }
.cursor-visible .cursor-dot { opacity: .85; }
/* Survol d'un lien ou d'un bouton : l'anneau grossit et se teinte légèrement */
.cursor-ring { transition: opacity .25s ease, width .3s ease, height .3s ease, margin .3s ease; }
.cursor-hover .cursor-ring { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
.cursor-hover .cursor-ring::after { opacity: .12; transform: scale(1); }
.cursor-down .cursor-ring { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
/* Dans un champ de saisie : seul le curseur texte natif reste */
.cursor-text .cursor-ring, .cursor-text .cursor-dot { opacity: 0; }

/* Crédit « Developed by Altis Sphere Group » sous le copyright */
.footer-made-by { display: block; margin-top: 6px; font-size: 11px; opacity: .75; }
.footer-made-by a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.footer-made-by a:hover { opacity: 1; color: var(--gold); }

/* Curseur sur un fond bleu, sombre ou une photo : anneau blanc */
.cursor-on-dark .cursor-ring { border-color: #fff; }
.cursor-on-dark .cursor-ring::after { background: #fff; }
.cursor-ring { transition: opacity .25s ease, width .3s ease, height .3s ease, margin .3s ease, border-color .2s ease; }

/* Bandeau visible uniquement par le compte qui a coupé le site (mode maintenance) */
.maintenance-preview { position: relative; z-index: 1000; padding: 10px 20px; text-align: center; font-size: 14px; font-weight: 600; color: #fff; background: #b42318; }
.maintenance-preview a { color: #fff; text-decoration: underline; margin-left: 8px; }
