/* ============================================================================
   AKRO DIGITAL — Feuille de style
   ----------------------------------------------------------------------------
   DÉCISION DE DESIGN (refonte page d'accueil, juin 2026)
   Direction retenue : "tech sombre premium".
   - Pourquoi : l'ancien design (noir plat #000, police système, gris
     translucide) était l'esthétique "IA générique" sans identité. On garde
     l'esprit sombre mais on lui donne profondeur, couleur de marque et typo.
   - Ce que ça remplace : fond noir uni -> bleu-nuit dégradé + lueurs + grain
     + grille en filigrane ; police système -> Bricolage Grotesque (titres) /
     Hanken Grotesk (corps) ; accent inexistant -> cyan électrique.
   - Tokens centralisés dans :root (couleurs, polices) pour cohérence et
     déclinaison future sur les autres pages.
   - Risques connus : les polices viennent de Google Fonts (dépendance réseau) ;
     un fallback sans-serif est prévu. Le grain/grille sont décoratifs et
     pointer-events:none pour ne jamais gêner les clics.
   - CORRECTIF PERF (juin 2026) : le défilement molette ramait fortement sous
     Firefox (latence puis saut). Cause : effets coûteux à recalculer à chaque
     image pendant le scroll. Retirés/allégés -> backdrop-filter blur du header
     (remplacé par fond translucide opaque), mask-image sur la grille fixe
     (supprimé, opacité abaissée), scroll-behavior:smooth (retiré). Le rendu
     reste quasi identique. Ne PAS réintroduire backdrop-filter ni mask-image
     sur des couches en position:fixed sans tester le scroll sous Firefox.
   - Page jobs.php + fiches d'offres (juin 2026) : mise en page améliorée
     UNIQUEMENT via CSS (aucun fichier PHP modifié), car toutes ces pages
     partagent les mêmes classes. Ajouts : cartes avec flèche + barre d'accent
     au survol, méta transformées en pastilles (les spans "•" pairs sont
     masqués via :nth-child(even), structure vérifiée identique partout),
     titres en dégradé blanc, repère cyan devant les titres de section,
     <strong> en blanc franc. Si la structure HTML des .job-meta change
     (ajout/retrait de séparateurs), revérifier le masquage nth-child.
   ============================================================================ */

:root {
    --bg: #070b18;
    --bg-2: #0a1024;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(140, 170, 255, 0.12);
    --border-strong: rgba(140, 170, 255, 0.22);
    --text: #eef2ff;
    --muted: #9aa6c8;
    --muted-2: #6f7da3;
    --accent: #34e3ff;
    --accent-deep: #14b8d6;
    --accent-glow: rgba(52, 227, 255, 0.45);
    --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
    --font-body: 'Hanken Grotesk', system-ui, sans-serif;
    --maxw: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Atmosphère : dégradé profond + lueurs cyan en arrière-plan */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(60rem 60rem at 75% -10%, rgba(52, 227, 255, 0.16), transparent 60%),
        radial-gradient(50rem 50rem at 5% 15%, rgba(99, 102, 241, 0.14), transparent 55%),
        linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 55%);
}

/* Grain + grille en filigrane façon dashboard tech */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(140, 170, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(140, 170, 255, 0.03) 1px, transparent 1px);
    background-size: 64px 64px, 64px 64px;
}

/* ---------- Header ---------- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(8, 12, 26, 0.92);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.header-content {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 1.1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

/* Point cyan lumineux devant le logo */
.logo a::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px 2px var(--accent-glow);
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: color 0.25s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    transition: width 0.25s ease;
}

nav a:hover {
    color: var(--text);
}

nav a:hover::after {
    width: 100%;
}

/* ---------- Main / layout ---------- */
main {
    padding-top: 80px;
    min-height: calc(100vh - 300px);
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 2rem;
}

.page-content {
    padding: 4rem 2rem;
}

/* Bouton de candidature en bas de fiche : un peu d'air au-dessus */
.page-content > .btn {
    margin-top: 0.5rem;
}

/* ---------- Hero ---------- */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 5.5vw, 4.25rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -1.8px;
    line-height: 1.08;
    background: linear-gradient(180deg, #ffffff 30%, #aeb9e0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* Met l'accent cyan sur le mot "SEO" si on l'enveloppe ; sinon ignoré */
.hero h1 .accent {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Paragraphe unique du hero : lisible, discret, aéré */
.hero-text {
    font-size: clamp(1rem, 1.7vw, 1.15rem);
    color: var(--muted);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    text-wrap: pretty;
    animation: fadeUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}

/* ---------- Boutons ---------- */
.btn {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: #04121a;
    padding: 0.95rem 1.9rem;
    border-radius: 10px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 30px -8px var(--accent-glow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: fadeUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px -6px var(--accent-glow);
}

.btn:active {
    transform: translateY(0);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Section Contact ---------- */
.contact {
    padding: 6rem 0 7rem;
    text-align: center;
}

.contact .container {
    max-width: 640px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3.5rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.contact .container::before {
    content: "";
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 80%;
    background: radial-gradient(closest-side, rgba(52, 227, 255, 0.18), transparent);
    pointer-events: none;
}

.contact h2 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 1.2rem;
}

.contact p {
    color: var(--muted);
    font-size: 1.05rem;
}

.contact a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease;
}

.contact a:hover {
    border-bottom-color: var(--accent);
}

/* ---------- Jobs (conservé, adapté aux nouveaux tokens) ---------- */
.jobs-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.jobs-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #ffffff 30%, #aeb9e0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.jobs-header p {
    color: var(--muted);
    font-size: 1.1rem;
}

/* Encadré "Craft + AI" en tête de la liste des offres */
.jobs-notice {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 2.5rem;
    max-width: 760px;
}

.jobs-notice-label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.55rem;
}

.jobs-notice p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.98rem;
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 4rem;
}

.job-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.75rem 3.5rem 1.75rem 2rem;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
    color: var(--text);
    display: block;
    position: relative;
    overflow: hidden;
}

/* Barre d'accent cyan à gauche, révélée au survol */
.job-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), var(--accent-deep));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.25s ease;
}

/* Flèche à droite, révélée au survol */
.job-card::after {
    content: "\2192";
    position: absolute;
    right: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.3rem;
    opacity: 0;
    transition: opacity 0.25s ease, right 0.25s ease;
}

.job-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
    transform: translateX(4px);
}

.job-card:hover::before {
    transform: scaleY(1);
}

.job-card:hover::after {
    opacity: 1;
    right: 1.4rem;
}

.job-card h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 0.6rem;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
}

/* Méta en pastilles ; les séparateurs "•" (spans pairs) sont masqués.
   Structure vérifiée identique sur toutes les pages : libellé, •, libellé... */
.job-meta span:nth-child(even) {
    display: none;
}

.job-meta span:nth-child(odd) {
    background: rgba(140, 170, 255, 0.07);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
}

/* ---------- Job Detail ---------- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.25s ease;
}

.back-link:hover {
    color: var(--accent);
}

.job-detail-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.job-detail-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 1.25rem;
    background: linear-gradient(180deg, #ffffff 30%, #aeb9e0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.job-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.job-section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

/* Petit repère cyan devant chaque titre de section */
.job-section h2::before {
    content: "";
    width: 4px;
    height: 1.05em;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--accent), var(--accent-deep));
    flex-shrink: 0;
}

.job-section p,
.job-section li {
    color: var(--muted);
    line-height: 1.8;
}

/* Les mots importants ressortent en blanc franc */
.job-section strong {
    color: var(--text);
    font-weight: 600;
}

.job-section ul {
    list-style: none;
}

.job-section li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.job-section li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.job-section ol {
    list-style: decimal;
    padding-left: 2rem;
}

.job-section ol li {
    padding-left: 0;
}

.job-section ol li:before {
    content: none;
}

.job-section h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.job-section ul ul {
    margin-top: 0.5rem;
    margin-left: 1.5rem;
}

.job-section ul ul li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* ---------- Footer ---------- */
footer {
    border-top: 1px solid var(--border);
    padding: 3.5rem 0 2.5rem;
    background: rgba(7, 11, 24, 0.4);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-section h4 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
}

.footer-section p,
.footer-section a {
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    color: var(--muted-2);
    font-size: 0.85rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .header-content {
        padding: 1rem 1.25rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    nav {
        gap: 1.25rem;
    }

    main {
        padding-top: 110px;
    }

    .container {
        padding: 0 1.25rem;
    }

    .contact .container {
        padding: 2.5rem 1.5rem;
    }
}

/* ---------- Accessibilité : respect des préférences de mouvement ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
