/* ============================================================
   Jules le dev — Site styles
   Palette inspirée du CV : bleu sombre, fond clair, sérigraphie.
   ============================================================ */

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

:root {
    --blue-dark: #2f5597;
    --blue-section: #374976;
    --blue-photo: #0070c0;
    --rule: #b9c3d8;
    --ink: #1c1c1c;
    --muted: #555;
    --bg: #eef1f5;
    --card: #ffffff;
    --sans: "Segoe UI", Calibri, Arial, sans-serif;
    --serif: Georgia, "Times New Roman", Times, serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--blue-dark);
}

img {
    max-width: 100%;
    display: block;
}

/* ============================================================
   Barre de navigation
   ============================================================ */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #e9edf3;
    border-bottom: 1px solid #d5dce6;
    box-shadow: 0 2px 10px rgba(30, 45, 80, 0.08);
}

.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 20px;
    min-height: 62px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 17px;
    color: var(--blue-dark);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.site-brand:hover {
    color: var(--blue-section);
}

.site-brand img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--blue-section);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 6px 10px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    display: block;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-dark);
    padding: 8px 14px;
    border-radius: 20px;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.nav-links a:hover {
    background: #dde4ee;
    color: var(--blue-section);
}

.nav-links a.active {
    background: #cfd9e8;
    color: var(--blue-dark);
}

.nav-links .nav-external {
    opacity: 0.85;
}

.nav-links .nav-external::after {
    content: " ↗";
    font-size: 12px;
}

@media (max-width: 720px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 62px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: #e9edf3;
        border-bottom: 1px solid #d5dce6;
        padding: 10px 14px 14px;
        box-shadow: 0 8px 16px rgba(30, 45, 80, 0.12);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 14px;
        border-radius: 8px;
    }
}

/* ============================================================
   Conteneurs communs
   ============================================================ */
.page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Titre de section façon CV (boîte bleue + règle) */
.section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 46px 0 26px;
}

.section-head .label {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 700;
    color: var(--blue-section);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1.5px solid var(--blue-section);
    border-radius: 3px;
    padding: 5px 14px;
    white-space: nowrap;
}

.section-head .rule {
    flex: 1 1 auto;
    height: 1.5px;
    background: var(--rule);
}

/* ============================================================
   Pied de page
   ============================================================ */
.site-footer {
    margin-top: 56px;
    background: #e9edf3;
    border-top: 1px solid #d5dce6;
    color: var(--muted);
    text-align: center;
    padding: 26px 20px;
    font-family: var(--sans);
    font-size: 13.5px;
}

.site-footer a {
    color: var(--blue-dark);
    text-decoration: underline;
}

.site-footer a:hover {
    color: var(--blue-section);
}

.site-footer .footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 22px;
    margin: 10px 0 0;
}

.site-footer .footer-links a {
    text-decoration: none;
    opacity: 0.85;
}

.site-footer .footer-links a:hover {
    opacity: 1;
}

/* ============================================================
   Page d'accueil — héro
   ============================================================ */
.hero {
    background: linear-gradient(160deg, #ffffff 0%, #e6ecf5 100%);
    border-bottom: 2px solid var(--blue-section);
}

.hero-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 64px 20px 56px;
    display: flex;
    align-items: center;
    gap: 44px;
}

.hero-photo {
    flex: 0 0 auto;
    width: 168px;
    height: 168px;
    border-radius: 50%;
    border: 5px solid var(--blue-photo);
    object-fit: cover;
    background: #dfe6ef;
    box-shadow: 0 6px 20px rgba(30, 45, 80, 0.18);
}

.hero-text h1 {
    font-family: var(--sans);
    font-size: 38px;
    font-weight: 700;
    color: var(--blue-dark);
    line-height: 1.15;
    letter-spacing: 0.5px;
}

.hero-role {
    font-family: var(--sans);
    font-size: 19px;
    font-weight: 700;
    color: var(--blue-section);
    letter-spacing: 2.5px;
    margin: 6px 0 16px;
}

.hero-text p {
    max-width: 640px;
    margin-bottom: 22px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: 24px;
    transition: background 0.15s ease, transform 0.1s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--blue-section);
    color: #fff;
}

.btn-primary:hover {
    background: var(--blue-dark);
    color: #fff;
}

.btn-outline {
    border: 1.5px solid var(--blue-section);
    color: var(--blue-section);
}

.btn-outline:hover {
    background: var(--blue-section);
    color: #fff;
}

@media (max-width: 720px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
        padding: 44px 20px 40px;
        gap: 24px;
    }

    .hero-photo {
        width: 132px;
        height: 132px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-actions {
        justify-content: center;
    }
}

/* ============================================================
   Page d'accueil — cartes projets
   ============================================================ */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
    padding-bottom: 8px;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid #dde3ec;
    border-top: 4px solid var(--blue-section);
    border-radius: 8px;
    padding: 26px 26px 24px;
    box-shadow: 0 3px 14px rgba(30, 45, 80, 0.08);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.project-card:hover {
    box-shadow: 0 8px 22px rgba(30, 45, 80, 0.16);
    transform: translateY(-3px);
}

.project-card .card-tag {
    align-self: flex-start;
    font-family: var(--sans);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 14px;
}

.card-tag.perso {
    background: #e3eaf6;
    color: var(--blue-dark);
}

.card-tag.pro {
    background: #e9eef2;
    color: #51606f;
}

.project-card h3 {
    font-family: var(--sans);
    font-size: 19px;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 6px;
}

.project-card .card-url {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--blue-photo);
    margin-bottom: 12px;
}

.project-card p {
    font-size: 14.5px;
    color: #333;
    margin-bottom: 18px;
    flex: 1 1 auto;
}

.project-card .card-link {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-section);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-card .card-link::after {
    content: "→";
    transition: transform 0.15s ease;
}

.project-card:hover .card-link::after {
    transform: translateX(4px);
}

/* ============================================================
   Page contact
   ============================================================ */
.page-head {
    background: linear-gradient(160deg, #ffffff 0%, #e6ecf5 100%);
    border-bottom: 2px solid var(--blue-section);
}

.page-head-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 48px 20px 42px;
    text-align: center;
}

.page-head-inner h1 {
    font-family: var(--sans);
    font-size: 32px;
    font-weight: 700;
    color: var(--blue-dark);
    letter-spacing: 0.5px;
}

.page-head-inner p {
    max-width: 620px;
    margin: 10px auto 0;
    font-size: 15px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
    padding-bottom: 8px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--card);
    border: 1px solid #dde3ec;
    border-top: 4px solid var(--blue-section);
    border-radius: 8px;
    padding: 26px;
    box-shadow: 0 3px 14px rgba(30, 45, 80, 0.08);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.contact-card:hover {
    box-shadow: 0 8px 22px rgba(30, 45, 80, 0.16);
    transform: translateY(-3px);
}

.contact-card .contact-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #e3eaf6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.contact-card .contact-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--blue-dark);
}

.contact-card h3 {
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 6px;
}

.contact-card .contact-value {
    font-size: 14.5px;
    color: #333;
    margin-bottom: 14px;
    flex: 1 1 auto;
}

.contact-card .contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-card .contact-actions .btn {
    padding: 9px 16px;
    font-size: 13px;
}

/* ============================================================
   Bouton WhatsApp flottant
   ============================================================ */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 60;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
    transition: transform 0.15s ease;
}

.wa-float:hover {
    transform: scale(1.1);
}

.wa-float svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

.wa-float::before,
.wa-float::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.45);
    z-index: -1;
    animation: wa-pulse 2s ease-out infinite;
}

.wa-float::after {
    animation-delay: 1s;
}

@keyframes wa-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.9);
        opacity: 0;
    }
}

@media (max-width: 720px) {
    .page-head-inner {
        padding: 34px 20px 30px;
    }

    .page-head-inner h1 {
        font-size: 26px;
    }

    .wa-float {
        bottom: 18px;
        right: 18px;
        width: 54px;
        height: 54px;
    }
}

/* ============================================================
   Page CV
   ============================================================ */
.cv-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 36px 20px 8px;
}

.cv {
    background: #fff;
    padding: 40px 46px 44px;
    box-shadow: 0 4px 24px rgba(30, 45, 80, 0.14);
    border-radius: 6px;
}

.cv-header {
    display: flex;
    align-items: center;
    gap: 30px;
    border-bottom: 2px solid var(--blue-section);
    padding-bottom: 24px;
    margin-bottom: 30px;
}

.cv-photo {
    flex: 0 0 auto;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    border: 4px solid var(--blue-photo);
    object-fit: cover;
    background: #e8ecf2;
}

.cv-identity {
    flex: 1 1 auto;
    min-width: 0;
}

.cv-identity h1 {
    font-family: var(--sans);
    font-size: 30px;
    font-weight: 700;
    color: var(--blue-dark);
    letter-spacing: 0.5px;
    line-height: 1.15;
}

.cv-role {
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 700;
    color: var(--blue-section);
    letter-spacing: 2px;
    margin-top: 4px;
}

.cv-contact {
    list-style: none;
    margin-top: 14px;
    font-size: 13.5px;
    line-height: 1.9;
}

.cv-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cv-contact svg {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    fill: var(--blue-section);
}

.cv-section {
    margin-bottom: 26px;
}

.cv-section-title {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.cv-section-title .label {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 700;
    color: var(--blue-section);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1.5px solid var(--blue-section);
    border-radius: 3px;
    padding: 5px 14px;
    white-space: nowrap;
}

.cv-section-title .rule {
    flex: 1 1 auto;
    height: 1.5px;
    background: var(--rule);
    margin-left: 10px;
}

.cv-objectif p {
    text-align: justify;
}

.formation {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.formation .year {
    flex: 0 0 auto;
    font-weight: 700;
}

.job {
    margin-bottom: 20px;
}

.job:last-child {
    margin-bottom: 0;
}

.job-title {
    font-weight: 700;
}

.job-dates {
    font-style: italic;
    color: var(--muted);
    margin-bottom: 6px;
}

.job ul,
.skills,
.cert-group ul,
.two-col ul,
.references {
    list-style: none;
}

.job ul li,
.skills li,
.cert-group ul li,
.two-col ul li {
    padding-left: 18px;
    position: relative;
    margin-bottom: 3px;
}

.job ul li::before,
.skills li::before,
.two-col ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--blue-section);
}

.skills li {
    margin-bottom: 5px;
}

.skills strong {
    font-weight: 700;
}

.cert-group {
    margin-bottom: 12px;
}

.cert-group h3 {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 700;
    color: var(--blue-section);
    margin-bottom: 6px;
}

.cert-group ul li {
    padding-left: 30px;
}

.cert-group ul li::before {
    content: "-";
    left: 3px;
    top: -1px;
    font-family: monospace;
    font-size: 13px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.two-col h3 {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 700;
    color: var(--blue-section);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.two-col ul li {
    margin-bottom: 4px;
}

.references li {
    margin-bottom: 5px;
}

.references .role {
    font-style: italic;
}

.print-btn {
    position: fixed;
    top: 76px;
    right: 16px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--blue-section);
    border: none;
    border-radius: 20px;
    padding: 9px 18px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(30, 45, 80, 0.25);
    z-index: 40;
}

.print-btn:hover {
    background: var(--blue-dark);
}

@media (max-width: 640px) {
    .cv-wrap {
        padding: 20px 0 0;
    }

    .cv {
        padding: 24px 20px 32px;
        box-shadow: none;
        border-radius: 0;
    }

    .cv-header {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }

    .cv-photo {
        width: 116px;
        height: 116px;
    }

    .cv-identity h1 {
        font-size: 25px;
    }

    .cv-contact {
        text-align: left;
        max-width: 300px;
        margin: 14px auto 0;
    }

    .cv-section-title .label {
        font-size: 12.5px;
        padding: 4px 10px;
        letter-spacing: 1px;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ============================================================
   Impression
   ============================================================ */
@media print {
    body {
        background: #fff;
        font-size: 12pt;
    }

    .site-nav,
    .site-footer,
    .print-btn {
        display: none;
    }

    .cv-wrap {
        padding: 0;
    }

    .cv {
        max-width: 100%;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }

    .cv-section {
        break-inside: avoid;
        margin-bottom: 18px;
    }
}
