/* ============================================================
   PORTFOLIO — Julien Bouvet · Modern Redesign
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --bg:        #141414;
    --bg-mid:    #1a1a1a;
    --bg-card:   #1f1f1f;
    --bg-light:  #242424;
    --accent:    #1db954;
    --accent-dim:#15803d;
    --text:      #e8e8e8;
    --muted:     #888;
    --border:    rgba(255,255,255,0.07);
    --radius:    14px;
    --radius-lg: 22px;
    --font-head: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ── Layout ─────────────────────────────────────────────────── */
#conteneur {
    display: flex;
    align-items: flex-start;
}

.cote {
    flex: 1;
    background: var(--bg);
}

#centrale {
    flex: 9;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Bandeau / Hero ─────────────────────────────────────────── */
#bandeau {
    background: linear-gradient(135deg, #0d2b1a 0%, #0f3d22 50%, #167331 100%);
    width: 100%;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#bandeau::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 70% 50%, rgba(29,185,84,0.15) 0%, transparent 70%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2329a85a' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

#bandeau::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
}

.titre {
    position: relative;
    z-index: 2;
    text-align: center;
    background: none;
    border: none;
    width: auto;
    margin: 0;
    top: auto;
    left: auto;
    padding: 0 24px;
}

.titre h1:first-child {
    font-family: var(--font-head);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 0 40px rgba(29,185,84,0.4);
    line-height: 1;
}

.titre .sousTitre {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 300;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 10px;
}

/* ── Section blocks ─────────────────────────────────────────── */
#groupe1, #groupe2 {
    background: transparent;
    padding: 60px 40px;
}

#groupe2 {
    background: var(--bg-mid);
}

#groupe1 > h1, #groupe2 > h1 {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    gap: 14px;
}

#groupe1 > h1::after, #groupe2 > h1::after {
    content: '';
    display: block;
    height: 2px;
    flex: 1;
    background: linear-gradient(to right, var(--accent), transparent);
    opacity: 0.5;
    border-radius: 2px;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2 { font-family: var(--font-head); }

h2 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 40px 0 16px;
    text-align: left;
}

C

p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(232,232,232,0.8);
    text-align: justify;
    padding: 0;
    max-width: 100%;
}

hr { display: none; }

/* ── Cards (Projets) ────────────────────────────────────────── */
.card-wrapper {
    position: relative;
    display: inline-block;
    margin: 12px;
    vertical-align: top;
}

.card {
    width: 300px;
    height: 200px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    z-index: 2;
    border: 1px solid var(--border);
    box-shadow:
        0 4px 24px rgba(0,0,0,0.4),
        0 0 0 0px rgba(29,185,84,0);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow:
        0 16px 48px rgba(0,0,0,0.5),
        0 0 0 1px rgba(29,185,84,0.3);
    border-color: rgba(29,185,84,0.3);
}

/* ── Legend animation ───────────────────────────────────────── */
.legend {
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translateX(100%) translateY(-50%);

    width: 56px;
    min-height: 160px;
    background: linear-gradient(160deg, var(--accent), var(--accent-dim));
    border-radius: 0 0 0 var(--radius);
    padding: 16px 10px;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform var(--transition), z-index 0s 0s;
    box-shadow: -4px 4px 20px rgba(29,185,84,0.25);
}

.legend p {
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding: 0;
    text-align: center;
}

.card-wrapper:hover .legend {
    transform: translateX(-50%) translateY(-50%);
    z-index: 3;
    transition: transform var(--transition), z-index 0s 0.15s;
}

/* ── divClaire (timeline/skills items) ─────────────────────── */
.divClaire {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    height: auto;
    width: 280px;
    margin: 10px;
    display: inline-block;
    vertical-align: top;
    padding: 0;
    transition: border-color var(--transition), transform var(--transition);
    overflow: hidden;
}

.divClaire:hover {
    border-color: rgba(29,185,84,0.3);
    transform: translateY(-3px);
}

.divClaire p {
    font-size: 0.9rem;
    padding: 14px 18px;
    color: var(--muted);
    text-align: left;
    line-height: 1.5;
}

/* Skills image divs */
.divClaire[id]:not([id=""]) {
    height: 110px;
    width: 180px;
    position: relative;
}

.divClaire[id]:not([id=""])::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 60%);
    border-radius: var(--radius);
    pointer-events: none;
}

/* ── Horizontal sections ────────────────────────────────────── */
.divHorizontale {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: block;
    width: 90%;
    margin: 16px auto;
    padding: 24px 32px;
}

.divShema {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: inline-block;
    width: 90%;
    margin: 16px;
    padding: 32px;
    text-align: center;
}

/* ── Contact section ────────────────────────────────────────── */
#contact {
    background: linear-gradient(135deg, #0d2b1a 0%, #0f3622 100%);
    padding: 60px 40px 50px;
    border-top: 1px solid rgba(29,185,84,0.2);
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(29,185,84,0.12) 0%, transparent 70%);
    pointer-events: none;
}

#contact h1 {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    text-align: center;
}

.contenuContact {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 36px;
}

form {
    margin: 0 auto;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

form label {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

form textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 14px 18px;
    resize: vertical;
    transition: border-color var(--transition);
    outline: none;
}

form textarea:focus {
    border-color: var(--accent);
    background: rgba(29,185,84,0.05);
}

input[type="submit"] {
    background: var(--accent);
    color: #0a1a0f;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 32px;
    cursor: pointer;
    align-self: flex-start;
    margin: 0;
    transition: background var(--transition), transform var(--transition);
}

input[type="submit"]:hover {
    background: #25d468;
    transform: translateY(-2px);
}

/* ── Buttons ─────────────────────────────────────────────────── */
button {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 10px 22px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition);
}

button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.bouttonAcceuil { text-align: center; }

/* ── Image IDs (unchanged logic, updated sizes) ─────────────── */
#veille  { background-image: url("../IMAGES/Veille.JPG");             background-position:center; background-size:cover; background-repeat:no-repeat; height:200px; width:300px; border-radius:var(--radius-lg); }
#site    { background-image: url("../IMAGES/Logo_Final.png");         background-position:center; background-size:cover; background-repeat:no-repeat; height:200px; width:300px; border-radius:var(--radius-lg); }
#pdf     { background-image: url("../IMAGES/Logo_C_sharp.svg.png");   background-position:center; background-size:cover; background-repeat:no-repeat; height:200px; width:300px; border-radius:var(--radius-lg); }
#pdf2    { background-image: url("../IMAGES/Logo_C_sharp.svg.png");   background-position:center; background-size:cover; background-repeat:no-repeat; height:200px; width:300px; border-radius:var(--radius-lg); }
#appli1  { background-image: url("../IMAGES/CaptureAppli1.PNG");      background-position:center; background-size:cover; background-repeat:no-repeat; height:200px; width:300px; border-radius:var(--radius-lg); }
#appli2  { background-image: url("../IMAGES/Appli2-3.PNG");           background-position:center; background-size:cover; background-repeat:no-repeat; height:200px; width:300px; border-radius:var(--radius-lg); }

#C            { background-image:url("../IMAGES/C.png");              background-position:center;background-size:cover;background-repeat:no-repeat; }
#Cpp          { background-image:url("../IMAGES/C++.png");            background-position:center;background-size:cover;background-repeat:no-repeat; }
#python       { background-image:url("../IMAGES/python.png");         background-position:center;background-size:cover;background-repeat:no-repeat; }
#java         { background-image:url("../IMAGES/Logo_Java.GIF");      background-position:center;background-size:cover;background-repeat:no-repeat; }
#xaml         { background-image:url("../IMAGES/XAML.jpg");           background-position:center;background-size:cover;background-repeat:no-repeat; }
#html         { background-image:url("../IMAGES/HTML_CSS_JS.jpg");    background-position:center;background-size:cover;background-repeat:no-repeat; }
#php          { background-image:url("../IMAGES/PHP.png");            background-position:center;background-size:cover;background-repeat:no-repeat; }
#sql          { background-image:url("../IMAGES/SQL.webp");           background-position:center;background-size:cover;background-repeat:no-repeat; }
#vs           { background-image:url("../IMAGES/VS.png");             background-position:center;background-size:cover;background-repeat:no-repeat; }
#eclipse      { background-image:url("../IMAGES/eclipse.png");        background-position:center;background-size:cover;background-repeat:no-repeat; }
#gms          { background-image:url("../IMAGES/GMS.png");            background-position:center;background-size:cover;background-repeat:no-repeat; }
#mysql        { background-image:url("../IMAGES/MySQL.jpg");          background-position:center;background-size:cover;background-repeat:no-repeat; }
#looping      { background-image:url("../IMAGES/Looping.png");        background-position:center;background-size:cover;background-repeat:no-repeat; }
#packettracer { background-image:url("../IMAGES/PacketTracer.jpg");   background-position:center;background-size:cover;background-repeat:no-repeat; }