@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Micro+5&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jersey+10&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bangers&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Architects+Daughter&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap');

:root {
    --accent: #E66E8B;
    --fond: #ffffff;
    --texte: #1a1a1a;
    --gris-clair: #f4f4f4;
    --shadow-subtle: 0 10px 20px rgba(0,0,0,0.08);
}

html {
    scroll-snap-type: y mandatory;
    timeline-scope: --section, --main;
    scroll-behavior: smooth;
}

body {
    background-color: var(--fond);
    color: var(--texte);
    margin: 0;
    font-family: "Outfit", sans-serif;
    overflow-x: hidden;
    background-image: url('../fichiers/timbre.png'), url('../fichiers/teste3.png');
    background-position: 95% 90%, center center;
    background-size: 300px auto, cover;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed, fixed;
}

body::before {
    display: none;
}

main {
    view-timeline: --main;
}

.section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    view-timeline: --section;
    height: 100dvh;
    position: relative;
    z-index: 1;
}

.content {
    overflow: hidden;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    --contrast: 4;
    --blur: 0.5rem;
    animation: blink ease-in-out both;
    animation-timeline: --section;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    color: var(--texte);
    z-index: 0;
}

@keyframes blink {
    0%, 100% { filter: blur(var(--blur)) contrast(var(--contrast)); opacity: 0; visibility: hidden; pointer-events: none; }
    50% { filter: blur(0) contrast(1); opacity: 1; visibility: visible; pointer-events: auto; }
}

.site-header { position: fixed; top: 50%; right: 20px; transform: translateY(-50%); z-index: 1000; }
.indicator { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-end; }
.indicator a {
    display: flex; align-items: center; text-decoration: none;
    color: var(--texte);
    font-family: "Outfit", sans-serif; font-weight: bold; text-transform: uppercase; letter-spacing: 1px;
    transition: 0.3s; padding: 10px 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 30px;
}
.indicator a:hover, .indicator a.active { background: var(--accent); color: #ffffff; }
.nav-text { margin-right: 10px; }
.indicator a::after {
    content: ''; display: block; width: 10px; height: 10px; background: var(--texte); border-radius: 50%; transition: 0.3s;
}
.indicator a:hover::after, .indicator a.active::after { background: #ffffff; transform: scale(1.2); }

.center-content { text-align: center; width: 100%; position: relative; }

.titre-split {
    font-family: "Luckiest Guy", sans-serif;
    font-size: 16em;
    color: transparent;
    text-transform: uppercase;
    position: relative;
    line-height: 1;
    margin-bottom: 20px;
    cursor: pointer;
    z-index: 10;
    display: inline-block;
}

.titre-split span:nth-child(1), .titre-split span:nth-child(2) {
    position: absolute; top: 0; left: 0; width: 100%;
    color: var(--texte);
    transition: transform 0.5s ease-in-out; pointer-events: none;
}

.titre-split span:nth-child(1) { clip-path: polygon(0 0, 100% 0, 100% 50.5%, 0 50.5%); }
.titre-split span:nth-child(2) { clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%); }

.titre-split span.texte-cache {
    position: absolute; top: 50%; left: 0; width: 100%;
    transform: translateY(-50%) scaleY(0);
    background: var(--accent); color: #ffffff;
    font-family: "Outfit", sans-serif;
    font-size: 0.18em; height: 0.7em;
    letter-spacing: 0.3em; font-weight: 500;
    text-align: center; text-transform: uppercase;
    transition: transform 0.5s ease-in-out;
    display: flex; justify-content: center; align-items: center;
    white-space: nowrap; pointer-events: none;
}
.titre-split:hover span:nth-child(1) { transform: translateY(-20px); }
.titre-split:hover span:nth-child(2) { transform: translateY(20px); }
.titre-split:hover span.texte-cache { transform: translateY(-50%) scaleY(1); }

.soustitre {
    font-family: "Outfit", sans-serif; color: var(--texte); font-weight: lighter; font-size: 2.5em;
    display: flex; justify-content: center; gap: 10px; margin-top: 20px;
}
.accolade { color: var(--accent); font-weight: bold; }
.typewriter::before { content: ""; animation: typing 10s infinite; color: var(--texte); }
.typewriter.thick::after { content: ""; border-right: 0.4em solid var(--accent); animation: blinkCursor 0.5s infinite; }
@keyframes typing { 0%, 30% { content: "Développeuse"; } 33%, 63% { content: "Graphiste"; } 66%, 100% { content: "Communicante"; } }
@keyframes blinkCursor { 50% { opacity: 0; } }

.rose-titre {
    font-family: "Luckiest Guy", cursive; color: var(--accent); font-size: 6em; margin-bottom: 20px;
}
.corps { font-size: 1.3em; color: var(--texte); }

.btn-group { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.btn-contact {
    display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px;
    background: var(--texte); color: var(--fond);
    text-decoration: none; font-family: "Outfit", sans-serif; font-weight: bold;
    border-radius: 50px; transition: all 0.3s ease; border: 2px solid var(--texte);
}
.btn-contact:hover { background: var(--accent); border-color: var(--accent); color: #ffffff; transform: translateY(-5px); }

.projets-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.projet-card {
    position: relative;
    width: 300px;
    height: auto;
    background: #ffffff;
    padding: 15px 15px 40px 15px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.2);
    transform: rotate(-2deg);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: 1px solid #e0e0e0;
}

.projet-card:nth-child(even) { transform: rotate(2deg) translateY(10px); }
.projet-card:nth-child(odd) { transform: rotate(-1deg) translateY(-5px); }

.projet-card:hover {
    transform: rotate(0deg) scale(1.05) !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    z-index: 10;
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.5s ease;
    border: 1px solid #eee;
}

.projet-card:hover .card-img { filter: grayscale(0%); }

.projet-card::before {
    content: "";
    position: absolute;
    top: -15px; left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 120px; height: 35px;
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    backdrop-filter: blur(2px);
    z-index: 20;
}

.card-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 40px;
    display: flex; justify-content: center; align-items: center;
    background: transparent;
    color: var(--texte);
    padding: 0;
}

.card-overlay h3 {
    margin: 0;
    font-family: "Architects Daughter", cursive;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--texte);
}

.card-badge {
    position: absolute;
    top: 5px; right: 5px; left: auto;
    background: var(--accent); color: #ffffff;
    padding: 3px 10px;
    border-radius: 0;
    font-family: "Bangers", cursive;
    font-size: 0.9em;
    letter-spacing: 1px;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
    transform: rotate(5deg);
    z-index: 5;
}

/* ============================================================
   MODALE
   ============================================================ */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    justify-content: center; align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    display: grid;
    grid-template-columns: 55% 45%;
    grid-template-rows: auto 1fr;
    gap: 30px;
    width: 90%; max-width: 1100px;
    min-height: 600px; height: auto;
    background: var(--fond);
    color: var(--texte);
    padding: 40px;
    border-radius: 5px;
    border: 3px solid var(--texte);
    box-shadow: 15px 15px 0px rgba(0,0,0,0.1);
    position: relative;
    text-align: left;
}

#modalMediaContainer {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    width: 100%; height: 100%;
    min-height: 400px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modalMediaContainer img,
#modalMediaContainer video {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.modal-info {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-title {
    font-family: "Luckiest Guy", cursive;
    color: var(--accent);
    font-size: 3.5em;
    margin: 0 0 15px 0;
    line-height: 1;
}

.modal-desc {
    font-family: "Outfit", sans-serif;
    color: var(--texte);
    font-size: 1.15em;
    line-height: 1.6;
    margin-bottom: 25px;
}

.close-btn {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 40px;
    color: var(--texte);
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
    line-height: 1;
}
.close-btn:hover { color: var(--accent); transform: rotate(90deg); }

/* ============================================================ */

.sous-titre-outils { font-family: "Luckiest Guy", sans-serif; color: var(--accent); font-size: 4em; margin-bottom: 35px; }
.badges-wrapper { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; margin-top: 15px; }
.badge-outil {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 25px;
    border: 2px solid var(--gris-clair); color: var(--texte); border-radius: 50px;
    font-family: "Outfit", sans-serif; font-size: 1em; font-weight: 600; background: var(--fond); transition: all 0.3s ease;
}
.badge-outil:hover { background: var(--accent); border-color: var(--accent); color: #ffffff; transform: translateY(-3px); }
.badge-outil.dev { border-color: var(--accent); color: var(--accent); }
.badge-outil.dev:hover { background: var(--accent); color: #ffffff; }

.competences-box {
    margin-top: 50px;
    padding: 30px;
    background-color: #ffffff;
    transform: rotate(-2deg);
    box-shadow: 5px 8px 0px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    border-left: none;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    max-width: 90%;
}

.competences-box:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 10px 10px 0px rgba(186, 79, 96, 0.2);
}

.competences-box::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.competences-box::after {
    content: "";
    position: absolute;
    top: -15px; left: 50%; transform: translateX(-50%);
    width: 100px; height: 30px;
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    backdrop-filter: blur(2px);
    z-index: 2;
}

.competences-box h4, .competences-box ul {
    position: relative; z-index: 1;
}

.titre-mmi {
    font-family: "Luckiest Guy", cursive;
    font-size: 1.5em; margin-bottom: 20px;
    color: var(--texte); text-align: center;
}

.titre-mmi .accent {
    color: var(--accent);
    text-decoration: none;
}

.liste-mmi {
    list-style: none; padding: 0; margin: 0;
    font-family: "Outfit", sans-serif; font-size: 1.2em;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 15px;
}

.liste-mmi li {
    background: var(--gris-clair);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-weight: bold; font-size: 0.9em;
    color: #555;
}

.liste-mmi li::before { display: none; }

@media screen and (max-width: 992px) {
    html { scroll-snap-type: none; height: auto; }
    body { overflow-y: auto; }
    .section { height: auto; min-height: 100vh; padding-bottom: 100px; }
    .content { position: relative; height: auto; padding: 50px 0; overflow: visible; }
    .titre-split { font-size: 5em; margin-top: 100px; }
    .titre-split span.texte-cache { font-size: 0.3em; height: 1.2em; letter-spacing: 0.1em; }
    .soustitre { font-size: 1.5em; flex-direction: column; align-items: center; gap: 5px; }
    .rose-titre { font-size: 3.5em; text-align: center; }
    .site-header { top: auto; bottom: 20px; right: 50%; transform: translateX(50%); width: 90%; max-width: 400px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); padding: 10px 20px; border-radius: 50px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); border: 1px solid rgba(0,0,0,0.1); }
    .indicator { flex-direction: row; justify-content: space-between; align-items: center; gap: 0; width: 100%; }
    .indicator a { padding: 8px 12px; background: transparent; font-size: 0.8em; }
    .indicator a.active { background: var(--accent); color: white; }
    .indicator a::after { display: none; }
    .nav-text { font-size: 0.9em; }
    .competences-box { transform: rotate(0deg); width: 100%; margin-top: 30px; }
    .competences-box:hover { transform: scale(1); }
    .badges-wrapper { justify-content: center; }
    .sous-titre-outils { text-align: center; margin-top: 40px; font-size: 3em; }
    .projets-grid { gap: 40px; }
    .modal-content { display: flex; flex-direction: column; height: auto; max-height: 90vh; overflow-y: auto; padding: 20px; width: 95%; }
    #modalMediaContainer { min-height: 250px; max-height: 300px; }
    .modal-title { font-size: 2em; margin-top: 20px; }
}

@media screen and (max-width: 400px) {
    .titre-split { font-size: 4em; }
    .nav-text { font-size: 0.7em; }
}