/* Design sombre ARKHEMIA */
:root {
  --bg: #0b0d12;
  --surface: #121520;
  --text: #e6e9f3;
  --muted: #a3aac2;
  --primary: #7c5cff;
  --primary-2: #00d1ff;
  --accent: #2cf2b1;
  --danger: #ff5c7c;
  --ring: rgba(124,92,255,.35);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.03);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% -10%, rgba(124,92,255,.2), transparent 60%) no-repeat,
              radial-gradient(900px 600px at -10% 20%, rgba(0,209,255,.12), transparent 60%) no-repeat,
              var(--bg) no-repeat;
  line-height: 1.6;
}

a {
    text-decoration: underline;
    color: var(--text);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  outline: 2px solid var(--primary);
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}



.section { padding: 88px 0; }
.section-title { font-size: clamp(28px, 2.6vw, 36px); margin: 0 0 20px; letter-spacing: .4px; }
.section-title { position: relative; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: -8px; height: 2px; width: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-2)); transform: scaleX(0); transform-origin: left; transition: transform .6s ease .1s; }
.section-title.is-visible::after { transform: scaleX(1); }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 26px; }

.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
@media (max-width: 980px) { .grid-2 { grid-template-columns: 1fr; } }

.hero { padding-top: 120px; }
.hero { position: relative; overflow: hidden; }
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: saturate(110%) contrast(105%); z-index: 0; }
.hero .container { position: relative; z-index: 1; }
.hero-text h1 { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.05; margin: 0 0 14px; }
.hero-text p { color: var(--muted); font-size: clamp(16px, 2vw, 20px); }
.cta-group { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }



.hero-art { position: relative; min-height: 320px; }
.orb { position: absolute; border-radius: 999px; filter: blur(24px) saturate(120%); opacity: .75; animation: float 12s ease-in-out infinite; }
.orb-a { width: 240px; height: 240px; right: 10%; top: 10%; background: radial-gradient(circle at 30% 30%, var(--primary), transparent 70%); }
.orb-b { width: 180px; height: 180px; left: 2%; bottom: 4%; background: radial-gradient(circle at 40% 40%, var(--accent), transparent 70%); animation-duration: 14s; }
.grid-anim { position: absolute; inset: 0; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0)); mask-image: radial-gradient(600px 380px at 70% 0%, black 50%, transparent 60%); }

@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0; list-style: none; }
.values h3 { margin: 0 0 6px; }
.values p { margin: 0; color: var(--muted); }
@media (max-width: 880px) { .values { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 1rem; }
.card-ico { width: 128px; height: 128px; display: inline-flex; align-items: center; justify-content: center; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: var(--text); margin: 0 auto 12px; }
.card-ico svg { width: 128px; height: 128px; display: block; }

/* Services: icônes 64px, sans bordure ni fond, centrées en haut */
#services .card-ico { width: 100%; height: 128px; border: none; background: transparent; border-radius: 0; margin: 0 auto 12px; }

/* Services & Expertise: traits plus fins pour les icônes */
#services .card-ico svg, #services .card-ico svg * { stroke-width: 1.2; }

/* Rotation subtile de la boussole au survol de la card */
#services .card:hover .compass { transform: rotate(18deg); transition: transform .35s ease; transform-origin: 50% 50%; }


/* Revenir au style compact pour la section Processus uniquement */
#processus .card-ico { width: 42px; height: 42px; border-radius: 12px; margin: 0 0 10px 0; }

.card h3 { margin: 4px 0 8px; }
.card p { margin: 0 0 10px; color: var(--muted); }

/* Processus: affiner le trait des icônes SVG */
#processus .card-ico svg, #processus .card-ico svg * { stroke-width: 1.2; }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); }
@media (max-width: 880px) { .cards { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { margin: 0; overflow: hidden; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.tile img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.6,0,1); }
.tile:hover img { transform: scale(1.06); }
.tile figcaption { padding: 10px 12px; font-size: 14px; color: var(--muted); }
@media (max-width: 980px) { .gallery { grid-template-columns: 1fr; } .tile img { height: 180px; } }




/* Bouton retour en haut */
.to-top { position: fixed; right: 18px; bottom: 18px; width: 42px; height: 42px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(12,14,20,.6); color: var(--text); backdrop-filter: blur(6px); box-shadow: var(--shadow); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: translateX(16px); pointer-events: none; transition: opacity .25s ease, transform .25s ease, background .2s ease; }
.to-top:hover { background: rgba(12,14,20,.8); }
.to-top.is-visible { opacity: 1; transform: translateX(0); pointer-events: auto; }

/* Révélations au scroll */
.reveal { opacity: 0; transform: translateY(14px); will-change: transform, opacity; }
.reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity .7s ease, transform .7s ease; }

/* Groupes avec animation en cascade */
.reveal-group { will-change: opacity, transform; }
.reveal-group > * { opacity: 0; transform: translateY(16px); }
.reveal-group.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-group.is-visible > * { transition: opacity .6s ease, transform .6s ease; }
.reveal-group.is-visible > *:nth-child(1){ transition-delay: .02s; }
.reveal-group.is-visible > *:nth-child(2){ transition-delay: .08s; }
.reveal-group.is-visible > *:nth-child(3){ transition-delay: .14s; }
.reveal-group.is-visible > *:nth-child(4){ transition-delay: .2s; }
.reveal-group.is-visible > *:nth-child(5){ transition-delay: .26s; }
.reveal-group.is-visible > *:nth-child(6){ transition-delay: .32s; }

/* Préférence utilisateur: réduire les animations */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}


/* Onglets: section A propos de moi */

/* --- */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.09);
    color: var(--text);
    text-decoration: none;
    background: rgba(255,255,255,.02);
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    min-width: 100px;
    cursor: pointer;
}
.btn:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.3);
    box-shadow: 0 12px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
}
.btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border-color: var(--primary);
}

/* Cards */
.card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    transition: all .22s ease;
}
.card.hovered:hover, .card.hovered:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 18px 50px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05);
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
}
.card.hovered2:hover, .card.hovered2:focus-within {
    transform: rotate(-2deg);
    box-shadow: 0 18px 50px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05);
    border-color: var(--primary-2);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
}

/* Socials */
.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    background: rgba(255,255,255,.05);
    color: var(--text);
    text-decoration: none;
    transition: all .5s ease;
}
.socials a:hover {
    background: rgba(255,255,255,.3);
}
.socials a svg { width: 18px; height: 18px; display: block; }

/* --- HEADER ---*/
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(140%) blur(8px);
    background: linear-gradient(180deg, rgba(11,13,18,.75), rgba(11,13,18,.45) 40%, transparent);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: .6px;
    color: var(--text);
    text-decoration: none;
}
.brand img {
    filter: drop-shadow(0 4px 12px rgba(124,92,255,.35));
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    position: relative;
}
.nav-toggle span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .3s ease, top .3s ease, opacity .3s ease;
}
.nav-toggle span:nth-child(1){
    top: 14px;
}
.nav-toggle span:nth-child(2){
    top: 21px;
}
.nav-toggle span:nth-child(3){
    top: 28px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){
    top: 21px;
    transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2){
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3){
    top: 21px;
    transform: rotate(-45deg);
}

.site-nav ul {
    display: flex;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 10px 8px;
    transition: color .2s ease, background .2s ease;
}
.site-nav a[aria-current="page"], .site-nav a.is-active {
    color: var(--text);
    background: rgba(255,255,255,.04);
    border-bottom: solid 2px var(--primary-2);
}
.site-nav a:hover {
    color: var(--text);
    background: rgba(255,255,255,.04);
    border-bottom: solid 2px var(--primary);
}

@media (max-width: 880px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .site-nav {
        position: absolute;
        top: 64px;
        right: 0;
        left: 0;
        padding: 10px 0 20px;
        background: linear-gradient(180deg, rgba(11,13,18,.95), rgba(11,13,18,.8));
        border-bottom: 1px solid rgba(255,255,255,.06);
        display: none;
    }
    .site-nav.open {
        display: block;
    }
    .site-nav ul {
        flex-direction: column;
        gap: 6px;
        width: min(560px, 92%);
        margin: 0 auto;
    }
}

/* --- HERO ---*/


/* --- ARKHEMIA ---*/


/* --- ME ---*/
.tabs {
    margin-top: 10px;
}
.tabbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px; margin-bottom: 12px;
}
.tablist {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.tablist [role="tab"] {
  appearance: none; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); color: var(--text);
  padding: 10px 14px; border-radius: 12px; cursor: pointer; font-weight: 500; letter-spacing: .2px;
}
.tablist [role="tab"] { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 640px){ .tabbar { flex-direction: column; align-items: stretch; } .cv-btn { align-self: flex-end; } }
.tab-ico { display: inline-flex; width: 18px; height: 18px; color: var(--muted); }
.tablist [role="tab"][aria-selected="true"] .tab-ico { color: white; }
.tablist [role="tab"][aria-selected="true"] { background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: transparent; }
.tablist [role="tab"]:focus { outline: 2px solid var(--ring); outline-offset: 2px; }
.tabpanels { background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.skills { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 14px; padding-left: 18px; }
@media (max-width: 640px){ .skills { grid-template-columns: 1fr; } }

/* Compétences avec barres */
.skill-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.skill { display: grid; gap: 6px; }
.skill-name { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--muted); }
.skill-bar { position: relative; height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.skill-bar > span { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: linear-gradient(90deg, var(--primary), var(--primary-2)); border-radius: inherit; transition: width .9s cubic-bezier(.2,.6,0,1); }
@media (max-width: 820px){ .skill-list { grid-template-columns: 1fr; } }

/* Timeline 2 colonnes */
.timeline { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.08); transform: translateX(-1px); }
.tl-item { position: relative; padding-top: 6px; }
.tl-card { position: relative; overflow: visible; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px 14px; }
.tl-card:hover { border-color: rgba(255,255,255,.16); }
.tl-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.tl-date { font-variant-numeric: tabular-nums; }
.tl-tag { padding: 2px 8px; border-radius: 999px; background: rgba(124,92,255,.18); color: #cfc6ff; border: 1px solid rgba(124,92,255,.35); }
/* Repères: point + connecteur */
.tl-card::before { content: ""; position: absolute; top: 18px; width: 10px; height: 10px; border-radius: 999px; background: radial-gradient(circle at 30% 30%, var(--primary), var(--primary-2)); box-shadow: 0 0 0 2px rgba(255,255,255,.06), 0 0 18px rgba(124,92,255,.5); }
.tl-card::after { content: ""; position: absolute; top: 22px; width: 8px; height: 2px; background: rgba(255,255,255,.12); }
/* Colonne gauche (éléments impairs) : point à droite, connecteur sortant vers l'axe */
.timeline .tl-item:nth-child(odd) .tl-card::before { right: -15px; }
.timeline .tl-item:nth-child(odd) .tl-card::after { right: -8px; }
/* Colonne droite (éléments pairs) : point à gauche */
.timeline .tl-item:nth-child(even) .tl-card::before { left: -15px; top: 50%; transform: translateY(-50%); }
.timeline .tl-item:nth-child(even) .tl-card::after { left: -8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 820px){
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { left: 8px; transform: none; }
  /* En mobile: repère toujours à gauche, connecteur plus court */
  .timeline .tl-item .tl-card::before { left: -6px; right: auto; top: 18px; transform: none; }
  .timeline .tl-item .tl-card::after { left: -18px; right: auto; width: 12px; top: 22px; transform: none; }
}

/* Variantes de couleur pour ÉTUDES et EXPÉRIENCE */
#tab-etudes .tl-card::before { background: radial-gradient(circle at 30% 30%, #7c5cff, #a78bfa); box-shadow: 0 0 0 2px rgba(255,255,255,.06), 0 0 18px rgba(124,92,255,.55); }
#tab-etudes .tl-tag { background: rgba(124,92,255,.18); color: #e8e1ff; border-color: rgba(124,92,255,.45); }

#tab-experience .tl-card::before { background: radial-gradient(circle at 30% 30%, #00d1ff, #2cf2b1); box-shadow: 0 0 0 2px rgba(255,255,255,.06), 0 0 18px rgba(0,209,255,.55); }
#tab-experience .tl-tag { background: rgba(0,209,255,.18); color: #d8f8ff; border-color: rgba(0,209,255,.45); }

/* --- CONTACT --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 22px;
    align-items: start;
}

.contact-info {
    padding: 16px;
}
.contact-info h3 {
    margin-top: 0;
}
.contact-info address {
    font-style: normal;
    color: var(--muted);
}
.contact-info .socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.contact-info .socials a {
    padding: 8px 10px;
}

.contact-form {
    display: grid;
    gap: 12px;
}
.form-row {
    display: grid;
    gap: 8px;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(12,14,20,.6);
  color: var(--text);
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: 2px solid var(--ring);
    border-color: transparent;
}
.form-actions {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.form-note {
    color: var(--muted);
    font-size: 13px;
    padding-top: 12px;
}

@media (max-width: 880px){
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* --- FOOTER --- */
.site-footer {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 22px 0 38px;
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content:
    space-between; gap: 12px;
}
.site-footer .socials a {
    width: 34px;
    height: 34px;
}


