@import url('https://fonts.googleapis.com/css?family=Poppins:400,700&display=swap');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-y: hidden !important; /* Empêche tout scroll vertical et horizontal par défaut */
    font-family: 'Poppins', sans-serif;
    background: #b7f7ff;
}

.site-wrapper {
    display: flex;
    height: 100vh;
    background: #b7f7ff;
}

.vertical-header {
    position: sticky;
    left: 0;
    top: 0;
    height: 100vh;
    width: 5vw;
    min-width: 180px;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    z-index: 10;
    box-shadow: 2px 0 10px #a2eaff;
    transition: width 0.4s cubic-bezier(.77,0,.18,1);
    transform: translateX(-100%);
    animation: header-slide-in 1s cubic-bezier(.77,0,.18,1) forwards;
}

@keyframes header-slide-in {
    to { transform: translateX(0); }
}

.header-section {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(.77,0,.18,1);
    border: none;
    outline: none;
    user-select: none;
    min-height: 0;
    min-width: 0;
    z-index: 2;
    width: 100%;
    text-decoration: none;
    padding: 2.2vh 0;
}

.header-section.axel {
    background: #f7acc0;
    color: #d81b60;
}
.header-section.realisations {
    background: #b7f7ff;
    color: #0097a7;
}
.header-section.compte {
    background: #b5ffbb;
    color: #388e3c;
}

.header-section:hover, .header-section:focus {
    width: 100vw;
    z-index: 20;
    font-size: 2rem;
    box-shadow: 2px 0 24px #b7f7ff80;
}

.vertical-header .header-section:not(:hover):not(:focus) {
    width: 100%;
    font-size: 1.5rem;
    z-index: 2;
}

#horizontal-wrapper {
    display: flex;
    flex-direction: row;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden !important;
    position: relative;
    margin-left: 0;
    gap: 0;
    width: max-content;
    flex-direction: row;
}

.slide {
    min-width: 100vw;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.account-slide {
    background: #b7f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100vw;
    max-width: 100vw;
    padding: 0;
    margin: 0;
}

.account-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 80vh;
    width: 100vw;
    background: #b7f7ff;
    padding-top: 4vh;
    padding-bottom: 2vh;
    overflow-y: auto;
}

#account-content {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: none;
}

.projets-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 4vw;
    justify-content: flex-start;
    align-items: flex-start;

    max-height: 80vh;
    overflow-x: auto;
    overflow-y: hidden;

    padding-bottom: 2em; 
    padding-left: 0 !important;
    margin-left: calc(5vw + 70vh + 32px) !important;
}

@media (max-width: 900px) {
    .projets-list {
        margin-left: calc(18vw + 0px) !important;
    }
}
@media (max-width: 600px) {
    .projets-list {
        margin-left: calc(12vw + 0px) !important;
    }
}

@keyframes slideInProjetsList {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.projet-card {
    background: #eafffa;
    border-radius: 28px;
    box-shadow: 0 8px 32px #b7f7ff80;
    padding: 3em 2.5em 2em 2.5em;
    min-width: 60%;
    max-width: 1000px;
    width: 100%;
    min-height: 540px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.25em;
    margin: 2.5em 2.5em 2.5em 0;
    opacity: 1 !important;
    transform: translateX(80px);
    animation: slideInProjet 0.8s cubic-bezier(.77,0,.18,1) forwards;
    transition: box-shadow 0.2s;
    gap: 1.5em;
    box-sizing: border-box;
    z-index: 2;
    overflow-y: auto; /* Permet de scroller à l'intérieur si le contenu dépasse */
    max-height: 100%;
}


.projet-card:not(:last-child) {
    margin-right: 3vw;
}

.projet-header, .projet-meta, .projet-title {
    width: 100%;
    text-align: center;
}

.projet-title {
    color: #0097a7;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.7em 0;
    letter-spacing: 1px;
}

.projet-meta {
    font-size: 1.1rem;
    color: #0097a7;
    margin-bottom: 0.7em;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2em;
}

.projet-description {
    color: #0097a7 !important;
    font-size: 1.15rem;
    margin: 0 0 0.7em 0;
    font-weight: 500;
    text-align: center;
    width: 100%;
    min-height: 60px;
    line-height: 1.4;
}

.projet-media {
    width: 100%;
    aspect-ratio: 16/9;
    margin-bottom: 1.2em;
    border-radius: 18px;
    overflow: hidden;
    background: #b7f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    max-height: 320px;
}

.projet-media-carousel {
    width: 100%;
    min-height: 220px;
    max-height: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 1.2em;
    background: #b7f7ff;
    overflow: hidden;
}

.projet-media-carousel img,
.projet-media-carousel video,
.projet-media-carousel iframe {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

.media-prev, .media-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #0097a7;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 2em;
    font-weight: 900;
    cursor: pointer;
    z-index: 2;
    opacity: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, transform 0.18s;
    /* Centrage horizontal du chevron */
    padding: 0;
}
.media-prev { left: 12px; }
.media-next { right: 12px; }
.media-prev:hover, .media-next:hover {
    background: #00bcd4;
    transform: translateY(-50%) scale(1.12);
}

.projet-title {
    color: #0097a7;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.5em 0;
    letter-spacing: 1px;
}

.projet-desc {
    color: #388e3c;
    font-size: 1.08rem;
    margin: 0 0 0.7em 0;
    font-weight: 500;
}

.projet-meta {
    font-size: 0.98rem;
    color: #0097a7;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.projet-comments {
    margin-top: 1.2em;
    width: 100%;
    background: #f7fcff;
    border-radius: 10px;
    padding: 0.7em 1em;
    font-size: 1.01rem;
    color: #0097a7;
    box-shadow: 0 1px 8px #b7f7ff20;
}

.projet-comment {
    margin-bottom: 0.7em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #eafffa;
}

.projet-comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.projet-btns {
    display: flex;
    flex-direction: row;
    gap: 1em;
    margin-top: 1.2em;
}

.projet-edit-btn {
    background: #b7f7ff;
    color: #0097a7;
    border: 2px solid #0097a7;
    border-radius: 12px;
    padding: 0.7em 1.5em;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border 0.18s, transform 0.13s;
    box-shadow: 0 2px 8px #b7f7ff30;
}

.projet-edit-btn:hover {
    background: #0097a7;
    color: #fff;
    border-color: #0097a7;
    transform: scale(1.07);
}

.projet-comments-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #0097a7;
    margin-bottom: 0.5em;
}

.projet-comments-empty {
    color: #aaa;
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 0.5em;
}

.section-title {
    font-size: 2.6rem;
    color: #5fff6c;
    margin: 3vh 0 2vh 0;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    position: static;
    left: unset;
    top: unset;
    width: 100%;
    transform: none;
}

.section-title-giant {
    font-size: 6vw;
    font-weight: 900;
    letter-spacing: 2px;
    text-align: center;
    position: absolute;
    left: 0;
    top: 50%;
    width: 70vh;
    height: 70vh;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center center;
    margin: 0;
    line-height: 1;
    z-index: 10;
    pointer-events: none;
    opacity: 0.18;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInTitle 1.2s cubic-bezier(.77,0,.18,1) 0.2s forwards;
    color: #7ad1e6 !important; /* Force bleu pastel */
}
@keyframes slideInTitle {
    to {
        opacity: 0.99;
    }
}

/* Bouton + en bas à droite */
.add-projet-btn {
    position: fixed;
    right: 32px;
    bottom: 32px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #0097a7;
    color: #fff;
    font-size: 2.7rem;
    font-weight: bold;
    border: none;
    box-shadow: 0 4px 24px #0097a760;
    cursor: pointer;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.18s;
}
.add-projet-btn:hover {
    background: #00bcd4;
    color: #fff;
    transform: scale(1.13) rotate(10deg);
}

/* Nouveau style pour le bouton 'Créer un projet' */
.button-creation {
    /* Bouton flottant + pour créer un projet */
    position: fixed;
    right: 50px;
    bottom: 24px;
    z-index: 8; /* Sous le header */
    background: #b7f7ff;
    color: #0097a7;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 2.1rem;
    font-weight: 900;
    box-shadow: 0 4px 18px #0097a740, 0 1.5px 8px #b7f7ff80;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, transform 0.16s, box-shadow 0.16s;
    opacity: 0;
    animation: btn-fade-in 0.7s 0.3s cubic-bezier(.77,0,.18,1) forwards;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    box-sizing: border-box;
    letter-spacing: 0;
}
.button-creation::before {
    content: '+';
    font-size: 2.1rem;
    font-weight: 900;
    color: #0097a7;
    display: block;
    line-height: 1;
    transition: color 0.18s;
}
.button-creation-label {
    display: none;
    position: absolute;
    right: 60px;
    bottom: 50%;
    transform: translateY(50%);
    background: #b7f7ff;
    color: #0097a7;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.5em 1.1em;
    box-shadow: 0 2px 8px #0097a740;
    white-space: nowrap;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.18s, right 0.18s;
    z-index: 9;
    cursor: pointer;
}
.button-creation:hover .button-creation-label,
.button-creation:focus .button-creation-label {
    display: block;
    opacity: 1;
    right: 58px;
}
.button-creation:hover, .button-creation:focus {
    background: #00bcd4;
    color: #fff;
    transform: scale(1.09) rotate(-8deg);
    box-shadow: 0 8px 32px #0097a7a0, 0 2px 12px #b7f7ffb0;
}
.button-creation:hover::before, .button-creation:focus::before {
    color: #fff;
}
@keyframes btn-fade-in {
    from { opacity: 0; transform: translateY(40px) scale(0.8); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Supprime toute barre de scroll horizontale, même en cas de débordement */
html, body, .site-wrapper, main, section, {
    overflow-y: hidden !important;
    box-sizing: border-box;
}

html, body {
    overflow-y: hidden;
}

.site-wrapper,
#horizontal-wrapper {
    overflow-y: hidden;
}

/* Responsive */
@media (max-width: 900px) {
    .vertical-header {
        width: 18vw;
        min-width: 80px;
        max-width: 120px;
    }
    .header-section {
        font-size: 1.1rem;
        padding: 1.2vh 0;
    }
    .section-title-giant {
        position: relative !important;
        height: auto !important;
        left: 0 !important;
        top: 0 !important;
        margin-bottom: 1.5em !important;
        z-index: 1000;
        opacity: 0.18;
        animation: none;
    }
    .projets-list {
        padding-top: 0 !important;
        margin-top: 2em !important;
        flex-wrap: wrap;
        justify-content: center;
    }
    .projet-card {
        width: 95vw;
        min-width: 0;
        max-width: 99vw;
        padding: 1.2em 0.7em 1em 0.7em;
        font-size: 1rem;
        margin: 1em 0.5em 1em 0.5em;
    }
    .projet-media-carousel, .projet-media {
        min-height: 160px;
        max-height: 40vw;
    }
    .add-projet-btn {
        right: 12px;
        bottom: 12px;
        width: 54px;
        height: 54px;
        font-size: 2rem;
    }
    .button-creation {
        width: 38px;
        height: 38px;
        font-size: 1.3rem;
        right: 10px;
        bottom: 10px;
    }
    .button-creation::before {
        font-size: 1.3rem;
    }
    .button-creation-label {
        font-size: 0.95rem;
        right: 44px;
    }
    .no-projet-message {
        font-size: 1.5em;
        margin-left: 0;
        width: 100vw;
        min-width: unset;
        height: 40vh;
    }
}

/* Pour très petits écrans */
@media (max-width: 600px) {
    .vertical-header {
        min-width: 48px;
        width: 12vw;
        max-width: 60px;
    }
    .projet-card {
        font-size: 0.95rem;
        padding: 0.7em 0.3em 0.7em 0.3em;
    }
    .projet-media-carousel, .projet-media {
        min-height: 100px;
        max-height: 30vw;
    }
    .section-title-giant {
        z-index: 10;
        position: relative !important;
        margin-bottom: 2em !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
        width: 100vw !important;
        height: auto !important;
        text-align: center !important;
        display: block !important;
        opacity: 0.18;
    }
    .projets-list {
        margin-top: 5em !important;
        padding-top: 2em !important;
    }
    .projet-card {
        margin-top: 2em !important;
    }
}

.no-projet-message {
    font-size: 4.1em;
    color: #0097a7;
    font-weight: 900;
    text-align: left;
    margin-top: 0;
    margin-left: 3em;
    margin-right: 0;
    margin-bottom: 0;
    padding: 0.2em 0 0.2em 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    width: calc(100vw - 400px);
    min-width: 400px;
    max-width: 1000px;
    display: flex;
    align-items: center;
    height: 60vh;
}

#projets-filtres {
    margin-top: 3em !important;
    margin-bottom: 2em !important;
}

/* Supprime la pagination */
#pagination {
    display: none !important;
}

.projet-actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
    width: 100%;
    margin-top: 1em;
}

/* Optionnel : pour éviter que les boutons soient trop larges */
.projet-actions .button-creation {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    position: static;
    right: unset;
    bottom: unset;
    width: auto;
    height: auto;
    font-size: 1.1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px #b7f7ff30;
    opacity: 1;
    animation: none;
    background: #b7f7ff;
    color: #0097a7;
    font-weight: 700;
    padding: 0.7em 1.2em;
    transition: background 0.18s, color 0.18s, transform 0.13s;
}

.projet-actions .button-creation:hover {
    background: #0097a7;
    color: #fff;
    transform: scale(1.07);
}

.projets-list {
    overflow-y: auto;
}

.projets-list {
    height: 100vh;
}

.projet-card {
    max-height: 80vh;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
}


