/* =========================================
   VARIABLES ET STYLES DE BASE
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root { 
    --primaire: #818CF8;
    --primaire-dark: #6366F1;
    --primaire-glow: rgba(129, 140, 248, 0.12);
    --fond: #0D0F14;
    --fond-card: #13151C;
    --fond-elevated: #1A1D27;
    --texte: #E8EAF0;
    --texte-doux: #7B8194;
    --texte-subtil: #4A4F63;
    --bordure: #222536;
    --bordure-hover: #3A3F56;
    --or: #C9A84C;
    --or-subtil: rgba(201, 168, 76, 0.12);
    --ombre: 0 4px 24px rgba(0, 0, 0, 0.4);
    --rayon: 10px;
    --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; }

body { 
    font-family: 'Inter', 'Segoe UI', Helvetica, sans-serif;
    margin: 0; 
    padding: 0; 
    color: var(--texte); 
    background-color: var(--fond);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { 
    margin-top: 0;
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: -0.02em;
    color: var(--texte);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.05rem; font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: 0; }

section { padding: 5rem 8%; }

/* =========================================
   MENU DE NAVIGATION (HEADER)
   ========================================= */
header { 
    background: rgba(13, 15, 20, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.1rem 8%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid var(--bordure);
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

.logo { 
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem; 
    font-weight: 600; 
    color: var(--texte);
    text-decoration: none;
    letter-spacing: -0.03em;
    transition: color var(--transition);
}

.logo:hover { color: var(--primaire); }

nav { display: flex; align-items: center; }

nav a { 
    margin-left: 2.5rem; 
    text-decoration: none; 
    color: var(--texte-doux); 
    font-weight: 400;
    font-size: 0.88rem;
    transition: color var(--transition);
    position: relative;
    padding-bottom: 4px;
    letter-spacing: 0.01em;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--primaire);
    transition: width var(--transition);
}

nav a:hover { color: var(--texte); }
nav a:hover::after { width: 100%; }

.active { color: var(--texte) !important; }
.active::after { width: 100% !important; }

/* =========================================
   BOUTONS
   ========================================= */
.btn { 
    background: var(--primaire-dark);
    color: white; 
    padding: 0.75rem 1.75rem; 
    text-decoration: none; 
    border-radius: 6px; 
    font-weight: 500;
    font-size: 0.88rem;
    display: inline-block; 
    margin-top: 1rem; 
    border: 1px solid rgba(129, 140, 248, 0.25);
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
    letter-spacing: 0.02em;
}

.btn:hover { 
    background: var(--primaire);
    box-shadow: 0 0 24px var(--primaire-glow);
    transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

.btn-outline { 
    border: 1px solid var(--bordure-hover);
    color: var(--texte-doux); 
    padding: 0.6rem 1.2rem; 
    text-decoration: none; 
    border-radius: 6px; 
    font-weight: 500;
    font-size: 0.86rem;
    text-align: center; 
    transition: all var(--transition);
    display: inline-block;
    background: transparent;
}

.btn-outline:hover { 
    border-color: var(--primaire);
    color: var(--primaire);
    background: var(--primaire-glow);
}

/* =========================================
   PAGE ACCUEIL — HERO
   ========================================= */
.hero { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    min-height: 78vh; 
    background: var(--fond);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.07) 0%, transparent 70%);
    top: -100px; right: 0;
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.04) 0%, transparent 70%);
    bottom: -60px; left: 0;
    border-radius: 50%;
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 1;
    animation: fadeInDown 0.6s ease forwards;
}

.hero-badge::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    background: #4ade80;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.75); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-desc {
    font-size: 1rem;
    color: var(--texte-doux);
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    position: relative; z-index: 1;
    text-align: center;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Fix hero h1 animation */
.hero h1 {
    animation: fadeInDown 0.7s 0.1s ease both;
}
.hero h2 {
    animation: fadeInDown 0.7s 0.2s ease both;
}
.hero-desc {
    animation: fadeInDown 0.7s 0.3s ease both;
}
.hero-actions {
    animation: fadeInDown 0.7s 0.4s ease both;
}



.hero h2 {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--texte-doux);
    margin-bottom: 2.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative; z-index: 1;
}

.hero p { 
    font-size: 1rem; 
    color: var(--texte-doux); 
    max-width: 540px;
    position: relative; z-index: 1;
}

/* =========================================
   COMPÉTENCES
   ========================================= */
#competences {
    background: var(--fond-card) !important;
    border-top: 1px solid var(--bordure);
    border-bottom: 1px solid var(--bordure);
}

#competences h2 { text-align: center; margin-bottom: 3rem; }

.competences-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 1.25rem; 
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.competence-carte { 
    background: var(--fond-elevated);
    padding: 2rem 1.5rem; 
    border-radius: var(--rayon); 
    border: 1px solid var(--bordure);
    text-align: center;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.competence-carte:hover {
    border-color: var(--primaire-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.08);
}

.competence-carte h3 { color: var(--texte); margin-bottom: 0.6rem; }

.competence-carte img {
    margin: 0.5rem 0;
    opacity: 0.65;
    filter: grayscale(30%) brightness(1.1);
}

.competence-carte p { color: var(--texte-doux); font-size: 0.88rem; margin-bottom: 0; }

/* =========================================
   SECTION À PROPOS
   ========================================= */
#propos { background: var(--fond); }

#propos h2 {
    margin-bottom: 1.75rem;
    position: relative;
    display: inline-block;
}

#propos h2::after {
    content: '';
    position: absolute;
    left: 0; bottom: -10px;
    width: 28px; height: 1px;
    background: var(--primaire);
}

#propos p {
    color: var(--texte-doux);
    font-size: 0.98rem;
    line-height: 1.85;
    margin-bottom: 1rem;
    max-width: 680px;
}

/* =========================================
   FORMULAIRES (propos.html — standard)
   ========================================= */
form:not(.form) { 
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
    max-width: 520px; 
    margin: 2rem auto 0;
}

form:not(.form) input,
form:not(.form) textarea { 
    padding: 0.85rem 1rem; 
    border: 1px solid var(--bordure);
    border-radius: 6px; 
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--texte);
    background: var(--fond-elevated);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

form:not(.form) input::placeholder,
form:not(.form) textarea::placeholder { color: var(--texte-subtil); }

form:not(.form) input:focus,
form:not(.form) textarea:focus {
    border-color: var(--primaire-dark);
    box-shadow: 0 0 0 3px var(--primaire-glow);
}

form:not(.form) textarea { resize: vertical; min-height: 130px; }

#contact {
    background: var(--fond-card);
    border-top: 1px solid var(--bordure);
}

#contact h2 { text-align: center; }

/* =========================================
   PAGE PORTFOLIO — TITRE
   ========================================= */
.titre-page { text-align: center; margin-bottom: 3.5rem; }

.titre-page h1 { display: inline-block; position: relative; }

.titre-page h1::after {
    content: '';
    position: absolute;
    left: 50%; transform: translateX(-50%);
    bottom: -12px;
    width: 28px; height: 1px;
    background: var(--primaire);
}

/* =========================================
   PAGE PORTFOLIO — GRILLE PROJETS
   ========================================= */
.portfolio-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.projet-carte { 
    background: var(--fond-card);
    border-radius: var(--rayon); 
    overflow: hidden; 
    border: 1px solid var(--bordure);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    display: flex; 
    flex-direction: column;
}

.projet-carte:hover { 
    transform: translateY(-5px);
    border-color: var(--bordure-hover);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.projet-image {
    width: 100%;
    overflow: hidden;
    background: var(--fond-elevated);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--texte-subtil);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--bordure);
}

.projet-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.projet-contenu { 
    padding: 1.5rem; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}

.projet-tags { 
    font-size: 0.7rem; 
    color: var(--primaire);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.6rem;
}

.projet-titre { 
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--texte);
}

.projet-desc { 
    color: var(--texte-doux); 
    font-size: 0.88rem; 
    line-height: 1.7;
    margin-bottom: 1.5rem; 
    flex-grow: 1; 
}

/* =========================================
   TIMELINE — PARCOURS SCOLAIRE
   ========================================= */
.timeline-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 130px; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--or), transparent);
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.visible { opacity: 1; transform: translateY(0); }

.timeline-year {
    text-align: right;
    font-weight: 600;
    color: var(--or);
    padding-top: 4px;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.timeline-dot {
    position: absolute;
    left: 122px; top: 8px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--fond);
    border: 1px solid var(--or);
    transition: background var(--transition), box-shadow var(--transition);
}

.timeline-item:hover .timeline-dot {
    background: var(--or);
    box-shadow: 0 0 10px var(--or-subtil);
}

.timeline-content { padding-left: 1.5rem; padding-bottom: 0.5rem; }

.timeline-school { 
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--texte);
}

.timeline-degree {
    font-style: italic;
    color: #E2B171; /* Un or plus doux que le rouge-orangé précédent */
    margin: 0.3rem 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.timeline-desc {
    font-size: 0.84rem;
    color: var(--texte-doux);
    line-height: 1.7;
}

.timeline-desc a {
    color: var(--primaire);
    text-decoration: none;
    border-bottom: 1px solid rgba(129, 140, 248, 0.25);
    transition: border-color var(--transition), color var(--transition);
}

.timeline-desc a:hover { color: var(--texte); border-color: var(--primaire); }

.badge {
    display: inline-block;
    margin-top: 0.6rem;
    padding: 0.2rem 0.75rem;
    border: 1px solid var(--or);
    color: var(--or);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 20px;
    font-weight: 600;
    background: var(--or-subtil);
}

/* =========================================
   FOOTER
   ========================================= */
footer { 
    text-align: center; 
    padding: 2.5rem; 
    background: #080A0E;
    border-top: 1px solid var(--bordure);
    color: var(--texte-subtil);
    font-size: 0.82rem;
    letter-spacing: 0.03em;
}

/* =========================================
   BOUTON LINKEDIN (Btn)
   ========================================= */
.Btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 45px; height: 45px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition-duration: 0.3s;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.4);
    background-color: #0a66c2;
}

.sign {
    width: 100%;
    transition-duration: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sign svg { width: 25px; }
.sign svg path { fill: white; }

.text {
    position: absolute;
    right: 0%;
    width: 0%;
    opacity: 0;
    color: white;
    font-size: 1.2em;
    font-weight: 600;
    transition-duration: 0.3s;
}

.Btn:hover { width: 135px; border-radius: 40px; }
.Btn:hover .sign { width: 30%; padding-left: 10px; }
.Btn:hover .text { opacity: 1; width: 70%; padding-right: 10px; }
.Btn:active { transform: translate(2px, 2px); }

/* =========================================
   FORMULAIRE DE CONTACT (contact.html — .form)
   ========================================= */
.form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    background-color: var(--fond-card);
    padding: 2.5rem;
    border-radius: var(--rayon);
    border: 1px solid var(--bordure);
    position: relative;
    margin: 3rem auto;
}

.message { color: var(--texte-doux); font-size: 14px; }

.flex { display: flex; width: 100%; gap: 8px; }

.form label { position: relative; display: block; }

.form label .input {
    width: 100%;
    padding: 10px 10px 20px 10px;
    outline: 0;
    border: 1px solid var(--bordure);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--texte);
    background: var(--fond-elevated);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form label .input:focus {
    border-color: var(--primaire-dark);
    box-shadow: 0 0 0 3px var(--primaire-glow);
    background: var(--fond-card);
}

.form label .input + span {
    position: absolute;
    left: 10px; top: 15px;
    color: var(--texte-subtil);
    font-size: 0.88em;
    cursor: text;
    transition: 0.3s ease;
    pointer-events: none;
}

.form label .input:placeholder-shown + span { top: 15px; font-size: 0.88em; }

.form label .input:focus + span,
.form label .input:valid + span {
    top: 30px;
    font-size: 0.7em;
    font-weight: 600;
    color: var(--primaire);
}

.form label .input:valid + span { color: #4ade80; }

.input01 {
    width: 100%;
    padding: 10px 10px 20px 10px;
    outline: 0;
    border: 1px solid var(--bordure);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--texte);
    background: var(--fond-elevated);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.input01:focus {
    border-color: var(--primaire-dark);
    box-shadow: 0 0 0 3px var(--primaire-glow);
}

.form label .input01 + span {
    position: absolute;
    left: 10px; top: 50px;
    color: var(--texte-subtil);
    font-size: 0.88em;
    cursor: text;
    transition: 0.3s ease;
    pointer-events: none;
}

.form label .input01:placeholder-shown + span { top: 40px; font-size: 0.88em; }

.form label .input01:focus + span,
.form label .input01:valid + span {
    top: 50px;
    font-size: 0.7em;
    font-weight: 600;
    color: var(--primaire);
}

.form label .input01:valid + span { color: #4ade80; }

/* Bouton "fancy" submit */
.fancy {
    background-color: transparent;
    border: 1px solid var(--bordure-hover);
    border-radius: 0;
    color: var(--texte-doux);
    cursor: pointer;
    display: inline-block;
    font-weight: 400;
    letter-spacing: 2px;
    margin: 4px 0 0;
    outline: none;
    overflow: visible;
    padding: 10px 30px;
    position: relative;
    text-align: center;
    transition: all 0.3s ease-in-out;
    user-select: none;
    font-size: 12px;
    font-family: inherit;
}

.fancy::before {
    content: " ";
    width: 1.7rem; height: 1px;
    background: var(--bordure-hover);
    top: 50%; left: 1.5em;
    position: absolute;
    transform: translateX(230%);
    transform-origin: center;
    transition: background 0.3s linear, width 0.3s linear;
}

.fancy .text {
    opacity: 1;
    position: relative;
    width: auto;
    font-size: 0.95em;
    line-height: 1.5em;
    padding-left: 2em;
    display: block;
    text-align: left;
    transition: all 0.3s ease-in-out;
    text-transform: lowercase;
    color: var(--texte-doux);
    transform: translateX(30%);
}

.fancy .top-key {
    height: 1px; width: 1.5625rem;
    top: -1px; left: 0.625rem;
    position: absolute;
    background: var(--fond-card);
    transition: width 0.5s ease-out, left 0.3s ease-out;
}

.fancy .bottom-key-1 {
    height: 1px; width: 1.5625rem;
    right: 1.875rem; bottom: -1px;
    position: absolute;
    background: var(--fond-card);
    transition: width 0.5s ease-out, right 0.3s ease-out;
}

.fancy .bottom-key-2 {
    height: 1px; width: 0.625rem;
    right: 0.625rem; bottom: -1px;
    position: absolute;
    background: var(--fond-card);
    transition: width 0.5s ease-out, right 0.3s ease-out;
}

.fancy:hover {
    color: var(--texte);
    border-color: var(--primaire);
    box-shadow: 0 0 16px var(--primaire-glow);
}

.fancy:hover::before { width: 1.5rem; background: var(--primaire); }
.fancy:hover .text { color: var(--texte); padding-left: 1.5em; }
.fancy:hover .top-key { left: -2px; width: 0; }
.fancy:hover .bottom-key-1,
.fancy:hover .bottom-key-2 { right: 0; width: 0; }


/* =========================================
   Ham radio
   ========================================= */

.radio-hero {
            background: var(--fond);
            border-bottom: 1px solid var(--bordure);
            padding: 4rem 8% 3rem;
        }

        .radio-hero-inner {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            align-items: center;
            max-width: 1000px;
        }

        .radio-hero-inner img {
            width: 100%;
            border-radius: var(--rayon);
            border: 1px solid var(--bordure);
            object-fit: cover;
            max-height: 340px;
        }

        .radio-hero h2 {
            margin-bottom: 1rem;
        }

        .radio-hero p {
            color: var(--texte-doux);
            font-size: 0.96rem;
            line-height: 1.85;
            margin-bottom: 0.85rem;
        }

        .indicatif-badge {
            display: inline-block;
            padding: 0.3rem 1rem;
            background: var(--or-subtil);
            border: 1px solid var(--or);
            color: var(--or);
            font-size: 0.78rem;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            border-radius: 20px;
            font-weight: 600;
            margin-bottom: 1.25rem;
        }

        /* Club card */
        .club-card {
            display: flex;
            align-items: center;
            gap: 1.25rem;
            background: var(--fond-elevated);
            border: 1px solid var(--bordure);
            border-radius: var(--rayon);
            padding: 1.25rem 1.5rem;
            margin-top: 1.5rem;
            max-width: 480px;
            transition: border-color var(--transition);
        }

        .club-card:hover { border-color: var(--primaire-dark); }

        .club-card img {
            width: 200px;
            height: 200px;
            object-fit: contain;
            border-radius: 6px;
            background: var(--fond-card);
            padding: 4px;
        }

        .club-card-info h4 {
            margin: 0 0 0.25rem;
            font-size: 0.95rem;
            color: var(--texte);
        }

        .club-card-info p {
            margin: 0;
            font-size: 0.83rem;
            color: var(--texte-doux);
        }

        /* Section matériel */
        .materiel-section {
            background: var(--fond-card);
            border-top: 1px solid var(--bordure);
            border-bottom: 1px solid var(--bordure);
        }

        .materiel-section h2 { text-align: center; margin-bottom: 2.5rem; }

        .materiel-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 1.25rem;
            max-width: 960px;
            margin: 0 auto;
        }

        .materiel-carte {
            background: var(--fond-elevated);
            border: 1px solid var(--bordure);
            border-radius: var(--rayon);
            padding: 1.5rem;
            transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
        }

        .materiel-carte:hover {
            border-color: var(--primaire-dark);
            transform: translateY(-3px);
            box-shadow: 0 8px 28px rgba(99, 102, 241, 0.08);
        }

        .materiel-carte .mat-icon {
            font-size: 1.8rem;
            margin-bottom: 0.75rem;
            display: block;
        }

        .materiel-carte h3 {
            font-size: 0.95rem;
            margin-bottom: 0.35rem;
            color: var(--texte);
        }

        .materiel-carte .mat-model {
            font-size: 0.82rem;
            color: var(--primaire);
            font-weight: 500;
            margin-bottom: 0.5rem;
        }

        .materiel-carte p {
            font-size: 0.84rem;
            color: var(--texte-doux);
            margin: 0;
            line-height: 1.7;
        }

        /* Section ClubLog */
        .clublog-section {
            background: var(--fond);
        }

        .clublog-section h2 {
            margin-bottom: 0.5rem;
        }

        .clublog-section .subtitle {
            color: var(--texte-doux);
            font-size: 0.9rem;
            margin-bottom: 2rem;
        }

        .clublog-wrapper {
            border: 1px solid var(--bordure);
            border-radius: var(--rayon);
            overflow: hidden;
            max-width: 1000px;
        }

        .clublog-wrapper iframe {
            display: block;
            background: white;
        }

        @media (max-width: 768px) {
            .radio-hero-inner {
                grid-template-columns: 1fr;
            }
        }
        .qrz-section {
            background: var(--fond-card);
            text-align: center;
            padding: 3rem 8%;
           
        }
/* From Uiverse.io by kleenpulse */ 
        .btn-qrz {
        --border-color: linear-gradient(-45deg, #ffae00, #7e03aa, #00fffb);
        --border-width: 0.125em;
        --curve-size: 0.5em;
        --blur: 30px;
        --bg: #080312;
        --color: #afffff;
        color: var(--color);
        cursor: pointer;
        /* use position: relative; so that BG is only for .btn */
        position: relative;
        isolation: isolate;
        display: inline-grid;
        place-content: center;
        padding: 0.5em 1.5em;
        font-size: 17px;
        border: 0;
        text-transform: uppercase;
        box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.6);
        clip-path: polygon(
            /* Top-left */ 0% var(--curve-size),
            var(--curve-size) 0,
            /* top-right */ 100% 0,
            100% calc(100% - var(--curve-size)),
            /* bottom-right 1 */ calc(100% - var(--curve-size)) 100%,
            /* bottom-right 2 */ 0 100%
        );
        transition: color 250ms;
        }

        .btn-qrz::after,
        .btn-qrz::before {
        content: "";
        position: absolute;
        inset: 0;
        }

        .btn-qrz::before {
        background: var(--border-color);
        background-size: 300% 300%;
        animation: move-bg7234 5s ease infinite;
        z-index: -2;
        }

        @keyframes move-bg7234 {
        0% {
            background-position: 31% 0%;
        }

        50% {
            background-position: 70% 100%;
        }

        100% {
            background-position: 31% 0%;
        }
        }

        .btn-qrz::after {
        background: var(--bg);
        z-index: -1;
        clip-path: polygon(
            /* Top-left */ var(--border-width)
            calc(var(--curve-size) + var(--border-width) * 0.5),
            calc(var(--curve-size) + var(--border-width) * 0.5) var(--border-width),
            /* top-right */ calc(100% - var(--border-width)) var(--border-width),
            calc(100% - var(--border-width))
            calc(100% - calc(var(--curve-size) + var(--border-width) * 0.5)),
            /* bottom-right 1 */
            calc(100% - calc(var(--curve-size) + var(--border-width) * 0.5))
            calc(100% - var(--border-width)),
            /* bottom-right 2 */ var(--border-width) calc(100% - var(--border-width))
        );
        transition: clip-path 500ms;
        }

        .btn-qrz:where(:hover, :focus)::after {
        clip-path: polygon(
            /* Top-left */ calc(100% - var(--border-width))
            calc(100% - calc(var(--curve-size) + var(--border-width) * 0.5)),
            calc(100% - var(--border-width)) var(--border-width),
            /* top-right */ calc(100% - var(--border-width)) var(--border-width),
            calc(100% - var(--border-width))
            calc(100% - calc(var(--curve-size) + var(--border-width) * 0.5)),
            /* bottom-right 1 */
            calc(100% - calc(var(--curve-size) + var(--border-width) * 0.5))
            calc(100% - var(--border-width)),
            /* bottom-right 2 */
            calc(100% - calc(var(--curve-size) + var(--border-width) * 0.5))
            calc(100% - var(--border-width))
        );
        transition: 200ms;
        }

        .btn-qrz:where(:hover, :focus) {
        color: #fff;
        }
        .btn-qrz a {
        color: inherit; /* Force le lien à prendre la couleur afffff du bouton */
        text-decoration: none; /* Enlève le soulignement natif */
        }

    
/* =========================================
   PAGE CONTACT — LAYOUT
   ========================================= */
.contact-section {
    padding: 5rem 8%;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--texte);
}

.contact-info p {
    color: var(--texte-doux);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--fond-elevated);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    text-decoration: none;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.contact-link-item:hover {
    border-color: var(--primaire-dark);
    transform: translateX(4px);
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.08);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--primaire-glow);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--primaire);
}

.contact-icon-emoji {
    font-size: 1.2rem;
    background: var(--fond-card);
}

.clink-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--texte-subtil);
}

.clink-value {
    display: block;
    font-size: 0.9rem;
    color: var(--texte);
    margin-top: 2px;
}

.contact-form {
    max-width: 100%;
    margin: 0;
}

.form-note {
    font-size: 0.78rem;
    color: var(--texte-subtil);
    text-align: center;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}


                .photos-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.75rem;
            margin-top: 2.5rem;
            max-width: 1200px;
            margin-left: auto;
            margin-right: auto;
        }

        @media (max-width: 900px) {
            .photos-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 500px) {
            .photos-grid {
                grid-template-columns: 1fr;
            }
        }

        .photo-carte {
            background: var(--fond-elevated);
            border: 1px solid var(--bordure);
            border-radius: var(--rayon);
            overflow: hidden;
            transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
            display: flex;
            flex-direction: column;
            cursor: pointer;
        }

        .photo-carte:hover {
            border-color: var(--primaire);
            transform: translateY(-6px) scale(1.02);
            box-shadow: 0 20px 48px rgba(99, 102, 241, 0.18), 0 0 0 1px var(--primaire-dark);
        }

        .photo-carte .img-wrapper {
            width: 100%;
            aspect-ratio: 3 / 2;
            overflow: hidden;
            background: var(--fond-card);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .photo-carte .img-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            opacity: 0.85;
            transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            transform: scale(1.08);
        }

        .photo-carte:hover .img-wrapper img {
            opacity: 1;
            transform: scale(1.18);
        }

        .photo-carte .photo-label {
            padding: 0.85rem 1rem;
            font-size: 0.88rem;
            font-weight: 500;
            color: var(--texte);
            border-top: 1px solid var(--bordure);
        }

        .photo-carte .photo-label span {
            display: block;
            font-size: 0.78rem;
            color: var(--texte-doux);
            font-weight: 400;
            margin-top: 0.2rem;
        }
        /* Amélioration de la lisibilité des labels sur la page À propos */
        .photo-carte .photo-label {
            background: var(--fond-card); /* Pour bien séparer du fond */
            padding: 1rem;
            line-height: 1.4;
        }

        .photo-carte .photo-label span {
            color: var(--texte-doux);
            font-size: 0.8rem;
            margin-top: 5px;
            display: block;
        }
        /* Icône placeholder si pas d'image */
        .photo-placeholder {
            width: 48px;
            height: 48px;
            opacity: 0.18;
        }

        /* LinkedIn */
        .linkedin-btn {
    display: inline-flex;
    align-items: center;
    background-color: #0369a1; /* sky-700 */
    color: white;
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    width: 45px;
    overflow: hidden;
    transition: width 0.5s ease;
    white-space: nowrap;
}

.linkedin-btn:hover {
    width: 215px;
    background-color: #0284c7; /* sky-600 */
}

.linkedin-icon {
    width: 30px;
    height: 30px;
    fill: white;
    flex-shrink: 0;
}

.linkedin-text {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 2px solid white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.linkedin-btn:hover .linkedin-text {
    opacity: 1;
}



/* SECTION EXPÉRIENCE HARMONISÉE */
.exp-section {
    padding: 60px 0;
    max-width: 900px;
    margin: 0 auto;
}

.exp-container {
    position: relative;
    margin-top: 40px;
}

/* La ligne verticale adaptée au thème sombre */
.exp-line {
    position: absolute;
    left: 140px; 
    top: 0; 
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #0ea5e9, transparent); /* Dégradé bleu */
}

.exp-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    opacity: 0; /* Pour l'animation JS */
    transform: translateX(-20px);
    transition: all 0.6s ease-out;
}

.exp-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Côté Dates */
.exp-date {
    text-align: right;
    color: #0ea5e9; /* Bleu clair */
    font-weight: bold;
    font-size: 0.9rem;
    padding-top: 5px;
}

/* Contenu de la carte */
.exp-content {
    background: rgba(255, 255, 255, 0.05); /* Fond sombre transparent */
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.exp-content:hover {
    border-color: #0ea5e9;
    transform: scale(1.02);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.exp-company {
    font-size: 1.2rem;
    color: #fff;
    margin: 0;
}

.exp-role {
    color: #94a3b8; /* Gris clair */
    font-style: italic;
    margin-bottom: 15px;
}

/* Badges de contrat */
.badge-type {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    background: #0670a1;
    color: #fff;
}

/* Tags de compétences */
.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.exp-tag {
    font-size: 0.75rem;
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
    padding: 3px 8px;
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 4px;
}

/* Mobile */
@media (max-width: 768px) {
    .exp-item { grid-template-columns: 1fr; gap: 10px; }
    .exp-line { display: none; }
    .exp-date { text-align: left; }
}
/* =========================================
   LANGUE — BOUTON FR/EN
   ========================================= */
#lang-btn {
    background: transparent;
    border: 1px solid var(--bordure-hover);
    color: var(--texte-doux);
    border-radius: 5px;
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
    margin-left: 1.5rem;
    font-family: inherit;
    flex-shrink: 0;
}

#lang-btn:hover {
    border-color: var(--primaire);
    color: var(--primaire);
    background: var(--primaire-glow);
}

/* =========================================
   HAMBURGER — MENU MOBILE
   ========================================= */
#burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
    flex-shrink: 0;
    z-index: 1100;
}

#burger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--texte-doux);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
    transform-origin: center;
}

#burger-btn.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); background: var(--primaire); }
#burger-btn.open span:nth-child(2) { opacity: 0; }
#burger-btn.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background: var(--primaire); }

/* =========================================
   HAM RADIO — ZOOM PHOTO AU SURVOL
   ========================================= */
.radio-photo-wrapper {
    overflow: hidden;
    border-radius: var(--rayon);
    border: 1px solid var(--bordure);
    max-height: 340px;
    transition: border-color var(--transition), box-shadow var(--transition);
    cursor: zoom-in;
}

.radio-photo-wrapper:hover {
    border-color: var(--primaire-dark);
    box-shadow: 0 0 32px rgba(99, 102, 241, 0.18);
}

.radio-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1);
}

.radio-photo-wrapper:hover img {
    transform: scale(1.12);
}

/* Override old style on radio hero img */
.radio-hero-inner > img {
    display: none; /* remplacé par .radio-photo-wrapper */
}

/* =========================================
   RESPONSIVE — MOBILE (max 768px)
   ========================================= */
@media (max-width: 768px) {
    /* Header layout */
    header {
        padding: 1rem 5%;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    /* Show burger, hide regular nav items by default */
    #burger-btn { display: flex; }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13, 15, 20, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--bordure);
        padding: 1rem 5% 1.5rem;
        gap: 0;
        z-index: 999;
    }

    nav.nav-open { display: flex; }

    nav a {
        margin-left: 0;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--bordure);
        font-size: 0.95rem;
        width: 100%;
    }

    nav a:last-child { border-bottom: none; }

    nav a::after { display: none; }

    /* Lang button on mobile — in header */
    #lang-btn { margin-left: auto; }

    /* Sections padding */
    section { padding: 3rem 5%; }

    /* Hero */
    .hero { min-height: 65vh; padding: 3rem 5%; }
    .hero h1 { font-size: clamp(1.8rem, 8vw, 2.5rem); }

    /* Ham radio hero */
    .radio-hero { padding: 3rem 5% 2rem; }
    .radio-hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .radio-photo-wrapper { max-height: 260px; }

    /* Contact wrapper */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-section { padding: 3rem 5%; }

    /* Timeline */
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .timeline-line { display: none; }
    .timeline-year { text-align: left; }
    .timeline-dot { display: none; }
    .timeline-content { padding-left: 0; }

    /* Exp items */
    .exp-item { grid-template-columns: 1fr; gap: 8px; }
    .exp-line { display: none; }
    .exp-date { text-align: left; }

    /* Photos grid */
    .photos-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

    /* Form */
    .form { padding: 1.5rem; margin: 1.5rem auto; }
    .flex { flex-direction: column; }

    /* Club card */
    .club-card { flex-direction: column; text-align: center; }
    .club-card img { width: 120px; height: 120px; margin: 0 auto; }
}

@media (max-width: 480px) {
    .photos-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions a { text-align: center; }
    .materiel-grid { grid-template-columns: 1fr; }
}


img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none; /* Désactive le menu contextuel sur iOS/Safari */
    pointer-events: auto;
}
