/* =========================================================
   Fonts
   - Roboto: texte
   - Proxima Nova: titres (si dispo localement). Sinon fallback.
   ========================================================= */

:root{
    /* Tu dois ajuster si tu veux coller exactement au PNG/PDF */
    --page-w: 794px;        /* ~A4 à 96dpi */
    --page-h: 1123px;

    --text: #1e1e1e;
    --muted: #5a5a5a;

    --rule: #2f2f2f;

    --hero-bg1: #000000;
    --hero-bg2: #141517;

    --tagline-bg: #efefef;

    --font-text: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    --font-title: "Montserrat", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    --fs: 14px;
    --lh: 1.45;
}

*{ box-sizing: border-box; }

html,body{
    margin:0;
    padding:0;
    color: var(--text);
    font-family: var(--font-text);
    font-size: var(--fs);
    line-height: var(--lh);
    background:#d9d9d9;
}

a {
    color:#FFF;
}

.cv{
    display:flex;
    flex-direction:column;
    gap:16px;
    padding:16px;
}

/* Page A4-like */
.page{
    width: var(--page-w);
    min-height: var(--page-h);
    background:#fff;
    margin: 0 auto;
    box-shadow: 0 8px 26px rgba(0,0,0,.18);
    overflow:hidden;
    padding-left:20px;
    padding-right:20px;
}

/* Header */
.hero{
    display:flex;
    gap:18px;
    padding:20px 26px;
    background: linear-gradient(90deg, var(--hero-bg1), var(--hero-bg2));
    color:#fff;
    align-items:center;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: 10px;
}

.avatar{
    width:140px;
    height:140px;
    border-radius:50%;
    object-fit:cover;
    display:block;
}

.hero__right{ flex:1; }

.name{
    font-family: var(--font-title);
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: .6px;
    margin:0 0 6px 0;
    text-transform: uppercase;
    font-weight: 700;
}

.title{
    margin:0;
    font-size: 16px;
    font-weight: 500;
}

.hero__divider{
    height:1px;
    background: rgba(255,255,255,.28);
    margin: 10px 0 10px 0;
}

.contact{
    margin:0;
    font-size: 12px;
    opacity:.92;
}

/* Tagline */
.tagline{
    padding: 10px 26px;
    text-align:center;
    font-family: var(--font-title);
    font-weight: 600;
    color:#444;
    font-size:16px;
}

/* Blocks */
.block{
    padding: 18px 26px 6px 26px;
}

.block__titleline{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom: 10px;
}

.block__titleline--center{
    justify-content:center;
}

.h2{
    font-family: var(--font-title);
    font-size: 18px;
    letter-spacing: .4px;
    margin:0;
    font-weight: 700;
}

.rule{
    height:1px;
    background: var(--rule);
    flex:1;
    opacity:.9;
}

/* Trait gauche fixe (20px) */
.rule--fixed{
    flex: 0 0 20px;
    width: 20px;
}

/* =========================================================
   Responsive (mobile)
   - Tout ce qui est en colonnes passe en 1 colonne
   - Largeur page fluide (pas de A4 fixe)
   ========================================================= */

@media (max-width: 860px){
    html,body{ background:#fff; }

    .cv{
        padding:0;
        gap:0;
    }

    .page{
        width: 100%;
        min-height: auto;
        margin: 0;
        box-shadow: none;
        overflow: visible;
        padding-left: 0;
        padding-right: 0;
    }

    .hero{
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 16px;
        gap: 12px;
        margin:0;
    }

    .avatar{
        width: 96px;
        height: 96px;
    }

    .name{ font-size: 28px; }
    .title{ font-size: 14px; }

    .contact{
        line-height: 1.35;
        word-break: break-word;
    }

    .tagline{
        padding: 10px 16px;
        font-size: 14px;
        line-height: 1.3;
    }

    .block{ padding: 14px 16px 6px 16px; }

    .block__titleline{ gap: 10px; margin-bottom: 14px; }

    /* Multi-colonnes -> 1 colonne */
    .xp{
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .xp__date{
        font-weight: 600;
        color:#2a2a2a;
    }

    .grid-2{
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .langs{
        flex-direction: column;
        align-items: flex-start;
    }

    .langs > div{ min-width: 0; }
}

/* Text */
.p{
    margin: 0 0 10px 0;
}

.muted{ color: var(--muted); }

/* Bullets */
.bullets{
    margin: 0 0 10px 0;
    padding-left: 18px;
}

.bullets li{
    margin: 4px 0;
}

.bullets--indent{
    padding-left: 22px;
}

/* XP layout */
.xp{
    display:grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    align-items:start;
    margin-bottom: 8px;
}

.xp--spaced{ margin-top: 12px; }

.xp__date{
    font-family: var(--font-title);
    font-weight: normal;
    color:#111111;
    text-align:left;
    padding-top: 2px;
}

.h3{
    font-family: var(--font-title);
    font-size: 16px;
    margin: 0 0 6px 0;
    font-weight: 800;
    letter-spacing: .2px;
}

/* Page 2 discreet top line */
.topline{
    padding: 14px 26px 8px 26px;
}

.topline__name{
    font-family: var(--font-title);
    font-size: 13px;
    font-weight: 600;
    color: #4b4b4b;
}

.topline__role{
    font-size: 12px;
    color:#6a6a6a;
    margin-top: 3px;
}

/* Skills grid */
.grid-2{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.skill .p{ margin-bottom: 6px; }

.h4{
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 800;
    margin: 10px 0 20px 0;
}

.h4--mt{ margin-top: 14px; }

/* Langues line */
.langs{
    display:flex;
    justify-content:space-between;
    gap: 12px;
    flex-wrap:wrap;
}

.langs > div{
    min-width: 210px;
}

/* Print */
@media print{
    body{ background:#fff; }
    .cv{ padding:0; gap:0; }
    .page{
        width:auto;
        min-height:auto;
        margin:0;
        box-shadow:none;
        page-break-after: always;
    }
}
/* Floating Action Buttons */

.floating-actions{
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px; 
    z-index: 999;
}
.fab{
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(15,15,15,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    box-shadow: 0 12px 28px rgba(0,0,0,.15);
    transition: all .25s ease;
    backdrop-filter: blur(6px);
}

.fab svg{
    width: 22px;
    height: 22px;
}

.fab:hover{
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(0,0,0,.22);
    background: #fff;
}