:root{
    --bg:#fff;
    --text:#0b0b0b;
    --muted:#6b6b6b;
    --accent:#111;
    --glass: rgba(255,255,255,0.6);
    --radius:12px;
    --container:1100px;
    --gap:24px;
    --shadow: 0 6px 20px rgba(16,24,40,0.08);
    font-size:16px;
}
*{box-sizing:border-box}
body{
    background: url("../img/bg.png") no-repeat center center fixed;
    background-size: cover;
    margin:0;
    font-family: Andalé Mono, Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    color:var(--text);
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    line-height:1.45;

}

/* container */
.container{max-width:var(--container);margin:0 auto;padding:0 20px}

/* header */
.site-header{background-color:#ede4db;position:sticky;top:0;z-index:50}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:18px 0}
.primary-nav a{margin:0 12px;text-decoration:none;color:var(--muted);font-weight:600}
.cv-cta{padding:8px 12px;border-radius:10px;background:var(--accent);color:#fff;text-decoration:none;font-size:0.9rem}
.nav-toggle{display:none}
.logo img {
    height: 40px !important;   /* FORCE la hauteur */
    width: auto !important;    /* Préserve les proportions */
    max-height: 50px !important;
    display: block;
    object-fit: contain;
}

/* Hero */
.hero {
    padding: 20px 10px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    width: 100%;
    gap: 20px;
}

.hero-text h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin: 0;
}

.hero-text .lead {
    margin: 12px 0 18px;
    color: var(--muted);
    max-width: 700px;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.hero-ctas .btn {
    margin: 0;
}
.visionboard-container {
    display: flex;
    justify-content: center;
    margin: 0px 0; /* espace autour, optionnel */
}

.visionboard-container img {
    width: 1400px; /* ajuste ici pour modifier la taille */
    max-width: 1400px; /* taille max pour éviter un truc énorme */
    height: auto; /* pour garder les proportions */
    display: block;
}

								  
/* sections */
.section{padding:48px 0}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.section h2{margin:0;font-size:1.25rem}

/* about */
.about-grid{display:grid;grid-template-columns:1fr 300px;gap:30px;align-items:center;background-color: #ede4db; padding: 10px; border-radius: 10px}
.portrait img{width:100%;border-radius:12px;box-shadow:var(--shadow)}
.meta{color:var(--muted);font-size:0.95rem;margin-top:8px}

/* projects */
.filters{display:flex;gap:8px}
.chip{background:#f3f3f3;border:none;padding:8px 12px;border-radius:999px;cursor:pointer;font-weight:600}
.chip.active{background:var(--accent);color:#fff}
.projects-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}
.project-card{background:#ffffff;border-radius:12px;padding:0;overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column}
.card-media img{width:100%;height:180px;object-fit:cover;display:block}
.card-body{padding:16px}
.excerpt{color:var(--muted);margin:8px 0}

/* buttons */
.btn{display:inline-block;padding:10px 14px;background:var(--accent);color:#fff;border-radius:8px;text-decoration:none;border:none;cursor:pointer}
.btn.small{padding:8px 10px;font-size:0.9rem}
.btn.ghost{background:transparent;border:1px solid #ddd;color:var(--text)}
.btn.outline{background:transparent;border:1px dashed #ccc;color:var(--muted)}

/* modal */
.modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:80}
.modal[aria-hidden="false"]{display:flex}
.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,0.45)}
.modal-panel{position:relative;background:var(--bg);border-radius:12px;padding:22px;max-width:820px;width:95%;z-index:81;box-shadow:0 20px 40px rgba(0,0,0,0.2)}
.modal-close{position:absolute;right:12px;top:12px;border:none;background:transparent;font-size:1.2rem;cursor:pointer}

/* responsive */
@media (max-width:900px){
    .hero-inner{grid-template-columns:1fr}
    .about-grid{grid-template-columns:1fr}
    .nav-toggle{display:block}
    .primary-nav{display:none}
}
/* Modal scroll fix */
.project-modal-content {
    max-height: 90vh;
    overflow-y: auto;
    padding-right: 10px;
}
.pdf-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.pdf-content {
    width: 80%;
    height: 80%;
    background: white;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.close-pdf {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 25px;
    cursor: pointer;
}
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    margin: 20px 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Pour les shorts (format vertical) */
.video-wrapper.vertical {
    padding-bottom: 100%; /* 9:16 */
}
/* CAROUSEL */
.carousel {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-track img {
    width: 100%;
    flex-shrink: 0;
    border-radius: 12px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass);
    border: none;
    padding: 10px 14px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(6px);
    font-size: 1.2rem;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-btn:hover {
    background: rgba(0,0,0,0.1);
}
.carousel {
    max-width: 500px; /* réduit la largeur du carousel */
}

.carousel-track img {
    max-height: 350px;   /* limite la hauteur */
    object-fit: contain; /* l’image est entière sans être coupée */
    background: #f7f7f7; /* optionnel, joli fond */
    padding: 10px;       /* optionnel, apporte de l’air autour */
}
.modal img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}
.site-footer {
    background: #111;
    color: #eee;
    padding: 20px 0;
    margin-top: 30px;
    font-size: 0.95rem;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.site-footer a:hover {
    opacity: 0.7;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-inner div:first-child {
    line-height: 1.4;
}

.back-top {
    font-weight: 600;
    border: 1px solid #fff;
    padding: 4px 8px;
    border-radius: 6px;
}

.back-top:hover {
    opacity: 0.8;
}
/* Contact */
.form-contact {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre vertical si la section est grande */
    align-items: center;     /* Centre horizontal */
    text-align: center;
    padding: 60px 20px;      /* Pour respirer */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 600px;        /* Taille parfaite pour un formulaire */
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    outline: none;
}

.form-row {
    display: flex;
    gap: 12px;
}

@media(max-width:700px) {
    .form-row {
        flex-direction: column;
    }
}

/* Button styling (optionnel, mais joli) */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn:hover {
    opacity: 0.9;
}
.linkedin-icon svg {
    width: 24px;
    height: 24px;
    color: #000; /* noir */
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.linkedin-icon:hover svg {
    transform: scale(1.1);
    opacity: 0.7;
}
