/* ─── Police personnalisée ───────────────────────────────────── */
@font-face {
    font-family: 'Vogue';
    src: url('font/Vogue.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ─── Variables de thème (clair) ─────────────────────────────── */
:root {
    --primary:     #F0F4FF;
    --surface:     #FFFFFF;
    --accent:      #4F46E5;
    --accent-2:    #7C3AED;
    --text:        #0F172A;
    --text-muted:  #64748B;
    --border:      rgba(0, 0, 0, 0.08);
    --shadow-sm:   0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md:   0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg:   0 10px 30px rgba(0, 0, 0, 0.10);
    --gradient-1:  linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    --gradient-2:  linear-gradient(180deg, rgba(79, 70, 229, 0.06) 0%, rgba(124, 58, 237, 0.06) 100%);
    --font-title:  'Vogue', 'Syne', sans-serif;
}

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

body {
    font-family: 'Manrope', sans-serif;
    background: var(--primary);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.72;
}

/* ─── Barre de progression de scroll ─────────────────────────── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    z-index: 2000;
    box-shadow: 0 1px 6px rgba(79, 70, 229, 0.4);
    transition: width 0.15s ease-out;
}

/* ─── Décoration de fond (blobs flottants) ───────────────────── */
.bg-decoration {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-decoration::before,
.bg-decoration::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.07;
    animation: float 26s ease-in-out infinite;
}

.bg-decoration::before {
    width: 600px; height: 600px;
    background: var(--accent);
    top: -200px; right: -200px;
}

.bg-decoration::after {
    width: 500px; height: 500px;
    background: var(--accent-2);
    bottom: -150px; left: -150px;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(50px, -50px) scale(1.1); }
    66%       { transform: translate(-30px, 30px) scale(0.9); }
}

/* ─── Conteneur principal ────────────────────────────────────── */
.container {
    position: relative;
    z-index: 1;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ─── Utilitaires ────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ─── En-tête ────────────────────────────────────────────────── */
header {
    padding: 40px 0 30px;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.hero-text { flex: 1; }

.hero-text h1 {
    font-family: var(--font-title);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text .subtitle {
    font-size: 1.12rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-text .subtitle.subtitle-dynamic {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-text .subtitle.subtitle-dynamic:not(.is-visible) {
    opacity: 0;
    transform: translateY(-6px);
}

.hero-text .description {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    max-width: 600px;
}

/* ─── Stats rapides ──────────────────────────────────────────── */
.quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.stat-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.stat-value {
    font-family: var(--font-title);
    font-size: 1rem;
    color: var(--text);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ─── Infos de contact ───────────────────────────────────────── */
.contact-info {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
}

.contact-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--accent);
}

/* ─── Photo de profil ────────────────────────────────────────── */
.hero-visual {
    flex: 0 0 250px;
    height: 250px;
    position: relative;
}

.profile-container {
    width: 100%; height: 100%;
    border-radius: 30px;
    background: var(--gradient-2);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.profile-container::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--accent), transparent);
    animation: rotate 6s linear infinite;
    opacity: 0.15;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.profile-inner {
    position: relative;
    z-index: 1;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    overflow: hidden;
}

.profile-inner .initials {
    font-family: var(--font-title);
    font-size: 5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.4s ease;
}

.profile-inner .profile-photo {
    position: absolute;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 28px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.profile-inner .profile-photo.visible { opacity: 1; }
.profile-inner.has-photo .initials    { opacity: 0; }

/* ─── Overlay mobile ─────────────────────────────────────────── */
.mobile-info-overlay { display: none; }

/* ─── Section Carrousel ──────────────────────────────────────── */
.careers-section { padding: 30px 0; }

.careers-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    margin-bottom: 24px;
}

.careers-heading { text-align: center; }

.careers-heading h2 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.section-lead {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.section-help {
    margin-top: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.85;
}

/* ─── Outils de filtrage ─────────────────────────────────────── */
.career-tools {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    padding: 10px 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.search-icon {
    opacity: 0.6;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 0.95rem;
    font-family: 'Manrope', sans-serif;
}

.search-box input::placeholder { color: var(--text-muted); }
.search-box input:focus        { outline: none; }

.search-clear {
    width: 22px; height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.7rem;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.search-clear.visible {
    opacity: 1;
    pointer-events: auto;
}

.profile-selector { width: 100%; }

.profile-selector select {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    color: var(--text);
    font-size: 0.95rem;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-selector select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.profile-selector select option {
    background: var(--surface);
    color: var(--text);
}

/* ─── Carrousel wrapper ──────────────────────────────────────── */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 8px;
    background: transparent;
    mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.carousel-track {
    display: flex;
    gap: 16px;
    padding: 10px 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar { height: 6px; }

.carousel-track::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 999px;
}

.carousel-empty {
    margin: 16px auto 0;
    width: fit-content;
    max-width: min(600px, 100%);
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border: 1px dashed var(--border);
    background: var(--surface);
}

/* ─── Carte Métier ───────────────────────────────────────────── */
.career-card {
    flex: 0 0 280px;
    min-height: 360px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    padding: 25px;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
}

.career-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.career-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.career-card:hover::before { opacity: 1; }

.career-card.active {
    background: rgba(79, 70, 229, 0.04);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.career-card.active::before { opacity: 1; }

/* Portrait dans la carte */
.card-portrait {
    width: 100%;
    height: 120px;
    background: var(--gradient-2);
    border-radius: 12px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}

.card-portrait img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.card-portrait:has(img)::after { display: none; }

.card-portrait .placeholder-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    opacity: 0.4;
}

.card-portrait::after {
    content: 'Photo';
    position: absolute;
    bottom: 8px; right: 10px;
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: var(--font-title);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-description {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-action {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-action span {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}

.card-action .arrow {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: all 0.25s ease;
}

.career-card:hover .card-action .arrow {
    background: var(--accent);
    color: #FFFFFF;
    transform: translateX(4px);
}

/* ─── Bouton modifier (discret) ──────────────────────────────── */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-edit {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 8px 15px;
    opacity: 0.7;
}

.btn-edit:hover {
    opacity: 1;
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(79, 70, 229, 0.06);
}

.btn-icon { font-size: 1rem; }

/* ─── Détail du profil ───────────────────────────────────────── */
#professionDetail {
    display: none;
    animation: fadeIn 0.35s ease;
}

#professionDetail.visible { display: block; }

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.detail-title {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-back:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(79, 70, 229, 0.06);
    box-shadow: var(--shadow-md);
}

/* ─── Sections ───────────────────────────────────────────────── */
section {
    padding: 60px 0;
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.section-title {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 32px;
    position: relative;
    display: inline-block;
    color: var(--text);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px; left: 0;
    width: 60px; height: 3px;
    background: var(--gradient-1);
    border-radius: 2px;
}

/* ─── Photo du profil métier ─────────────────────────────────── */
.profession-photo-container {
    flex: 0 0 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profession-photo {
    width: 180px; height: 180px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.profession-photo.visible { opacity: 1; }

/* ─── Spider chart (compétences) ─────────────────────────────── */
.skills-section {
    display: flex;
    gap: 40px;
    align-items: center;
}

.spider-container {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

/* ─── Labels HTML du spider chart ───────────────────────────── */
.spider-labels {
    position: absolute;
    top: 0; left: 0;
    pointer-events: none;
    overflow: visible;
}

.spider-label {
    position: absolute;
    transform: translate(-50%, -50%);
    font-family: var(--font-title);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
    /* background: rgba(255, 255, 255, 0.92); */
    padding: 3px 6px;
    border-radius: 4px;
    text-align: center;
    max-width: 110px;
    line-height: 1.35;
    word-break: break-word;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

#skillsCanvas {
    max-width: 100%;
    filter: drop-shadow(0 4px 12px rgba(79, 70, 229, 0.15));
    border-radius: 8px;
}

.skills-controls {
    display: none; /* masqué par défaut — visible uniquement en mode admin */
    flex: 0 0 380px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    padding: 30px;
}

.skills-controls-title {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: var(--text);
    font-weight: 600;
}

.skill-control { margin-bottom: 22px; }

.skill-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.skill-value {
    color: var(--accent);
    font-family: var(--font-title);
}

.skill-slider {
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 5px;
    outline: none;
    transition: all 0.3s ease;
}

.skill-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px; height: 18px;
    background: var(--gradient-1);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.skill-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.skill-slider::-moz-range-thumb {
    width: 18px; height: 18px;
    background: var(--gradient-1);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-sm);
}

/* ─── Bouton télécharger PDF ─────────────────────────────────── */
.btn-download-spider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    padding: 13px 28px;
    background: var(--gradient-1);
    border: none;
    border-radius: 50px;
    color: #FFFFFF;
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-md);
}

.btn-download-spider:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ─── Timeline Expérience ────────────────────────────────────── */
.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.timeline-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateX(6px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -56px; top: 32px;
    width: 12px; height: 12px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.timeline-date {
    font-family: var(--font-title);
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-title {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.timeline-company {
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 0.9rem;
}

.timeline-description {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.92rem;
}

.timeline-description ul {
    margin-top: 10px;
    padding-left: 18px;
}

.timeline-description li { margin-bottom: 5px; }

.timeline-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}
.timeline-link:hover { text-decoration: underline; }

/* ─── Certifications ─────────────────────────────────────────── */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.cert-card {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.cert-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.cert-name {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.cert-issuer {
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.88rem;
}

.cert-date {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ─── Pied de page ───────────────────────────────────────────── */
footer {
    text-align: center;
    padding: 50px 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.footer-content { font-size: 0.9rem; }

.footer-content strong { color: var(--accent); font-weight: 600; }

.footer-location {
    margin-top: 8px;
    opacity: 0.7;
    font-size: 0.85rem;
}

/* ─── Responsive — tablette ──────────────────────────────────── */
@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1   { font-size: 2.8rem; }
    .hero-visual    { flex: 0 0 200px; height: 200px; }

    .skills-section { flex-direction: column; }

    .profession-photo-container {
        flex: none;
        order: -1;
        margin-bottom: 16px;
    }

    .profession-photo { width: 100px; height: 100px; border-radius: 15px; }

    .skills-controls { flex: 1; width: 100%; }

    .contact-info { justify-content: center; }
    .quick-stats  { justify-content: center; }

    .career-card   { flex: 0 0 240px; min-height: 340px; }
    .card-portrait { height: 100px; }

    .careers-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }

    .careers-heading { text-align: left; }

    .career-tools { width: min(520px, 100%); }
}

/* ─── Responsive — mobile ────────────────────────────────────── */
@media (max-width: 768px) {
    .container { padding: 0 20px; }

    header { padding: 30px 0 20px; }

    .header-content {
        flex-direction: column-reverse;
        gap: 20px;
    }

    .hero-text { text-align: center; }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-text .subtitle { font-size: 1rem; }

    /* Masqués dans le hero (déjà visibles dans le profil photo overlay) */
    .hero-text .description  { display: none; }
    .hero-text .contact-info { display: none; }

    .hero-visual {
        flex: 0 0 200px;
        height: 200px;
        width: 200px;
        margin: 0 auto;
    }

    .profile-container { cursor: pointer; }

    /* ─── OPTION A — Badge ℹ en coin (sur hero-visual pour éviter overflow:hidden) ───── */
    .hero-visual { position: relative; }
    .hero-visual::after {
        content: 'i';
        position: absolute;
        top: 8px; right: 8px;
        width: 26px; height: 26px;
        background: var(--accent);
        color: white;
        border-radius: 50%;
        font-size: 0.9rem;
        font-style: italic;
        font-weight: 700;
        line-height: 26px;
        text-align: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.25);
        pointer-events: none;
        z-index: 10;
    }
   
    /* /* ─── OPTION B — Banderole en bas de la photo (décommenter pour activer) ───── */
    /* .profile-container::after {
        content: 'Toucher pour les contacts';
        position: absolute;
        bottom: 0; left: 0; right: 0;
        background: rgba(79, 70, 229, 0.85);
        backdrop-filter: blur(4px);
        color: white;
        font-size: 0.62rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        padding: 8px;
        text-align: center;
        text-transform: uppercase;
        z-index: 5;
    } */

    /* ─── OPTION C — Anneau pulsant autour de la photo (décommenter pour activer) ───── */
    /* .hero-visual { position: relative; overflow: visible; }

    @keyframes pulse-ring {
        0%   { transform: scale(1);    opacity: 0.8; }
        60%  { transform: scale(1.07); opacity: 0; }
        100% { transform: scale(1.07); opacity: 0; }
    }

    .hero-visual::after {
        content: '';
        position: absolute;
        inset: -5px;
        border: 3px solid var(--accent);
        border-radius: 35px;
        animation: pulse-ring 2s ease-out infinite;
        pointer-events: none;
        z-index: 1;
    }


    .profile-inner .initials { font-size: 3.5rem; } */

    /* Overlay infos sur mobile */
    .mobile-info-overlay {
        display: block;
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(255, 255, 255, 0.97);
        border-radius: 28px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 10;
        padding: 20px;
        overflow: auto;
    }

    .mobile-info-overlay.visible {
        opacity: 1;
        visibility: visible;
    }

    .mobile-info-content {
        font-size: 0.85rem;
        color: var(--text);
        text-align: center;
    }

    .mobile-info-content p {
        margin-bottom: 10px;
        color: var(--text-muted);
    }

    .mobile-info-content a {
        display: block;
        color: var(--accent);
        text-decoration: none;
        margin: 8px 0;
        font-size: 0.82rem;
    }

    .mobile-info-content .close-hint {
        margin-top: 15px;
        font-size: 0.7rem;
        color: var(--text-muted);
        opacity: 0.6;
    }

    .spider-label { font-size: 0.68rem; max-width: 88px; padding: 2px 5px; }

    .section-title { font-size: 1.7rem; }

    .careers-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .careers-heading { text-align: center; }
    .careers-heading h2 { font-size: 1.4rem; }
    .career-tools { width: 100%; }

    /* Carousel mobile */
    .carousel-wrapper {
        margin: 0 -20px;
        padding: 0 20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .carousel-track {
        gap: 15px;
        padding: 10px 5px;
    }

    .carousel-track::-webkit-scrollbar { display: none; }

    .career-card {
        flex: 0 0 80vw;
        max-width: 280px;
        min-height: 300px;
        scroll-snap-align: center;
    }

    .quick-stats {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        margin-bottom: 12px;
    }
    .stat-chip  { padding: 5px 10px; gap: 4px; }
    .stat-value { font-size: 0.82rem; }
    .stat-label { font-size: 0.65rem; }
    .action-buttons   { flex-direction: column; padding: 0 10px; }
    .btn-action       { width: 100%; justify-content: center; }

    .timeline         { padding-left: 25px; }
    .timeline-item::before { left: -31px; width: 10px; height: 10px; }

    .detail-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .detail-title  { font-size: 1.5rem; }
    .spider-container { min-height: 320px; }

    #skillsCanvas { width: 100%; height: auto; }
}

/* ─── Responsive — très petit ────────────────────────────────── */
@media (max-width: 480px) {
    .hero-text h1 { font-size: 1.8rem; }

    .contact-info    { flex-direction: column; gap: 8px; }
    .contact-item    { justify-content: center; }

    .career-card  { flex: 0 0 90vw; padding: 18px; }
    .card-title   { font-size: 1rem; }
    .card-description { font-size: 0.8rem; -webkit-line-clamp: 3; line-clamp: 3; }
}

/* ─── Accessibilité : mouvement réduit ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
