/* 1. On prépare la page entière pour le scroll sans barre visible */
html {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
}

html::-webkit-scrollbar {
    display: none;             /* Chrome, Safari, Opera */
}

body {
    margin: 0;
    font-family: Saira;
    background-color: #eee;
    overflow-x: hidden;
    height: auto;              /* Laisse la page grandir selon le contenu */
}

/* 2. On enlève le verrouillage du main */
main {
    width: 100%;
    height: auto;              /* Très important : ne pas mettre 100vh ici */
    display: block;
}

    .hero {
        background:#eee;
        color:#111;
        position: relative;
        text-align: center;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-family: Saira;
        text-transform: uppercase;
        padding: 0 5%;
        box-sizing: border-box;
        margin-bottom: 20rem;
    }

    .hero h1 {
        font-size: clamp(3rem, 6vw, 6rem);
        margin-bottom: 0.3rem;
    }

    .hero h2 {
        font-size: clamp(1.5rem, 3vw, 2.5rem);
        font-weight: 300;
    }

    .hero p {
        font-size: clamp(0.5rem, 2vw, 3.5vw);
        margin-top: 0.3rem;
    }

    #graphisme{
        font-family: Market;
    }

    #developpement{
        font-family: Retrotech;
    }

    .arrow {
        position: absolute;
        bottom: 10%;
        font-size: clamp(5%, 4vw, 4rem);
        animation: bounce 1.5s infinite;
        user-select: none;
    }

    @keyframes bounce {
        0%{transform:translateY(0);opacity:.3;}
        50%{transform:translateY(12px);opacity:1;}
        100%{transform:translateY(0);opacity:.3;}
    }

    /*---------------------------------------*/

    .about {
        background:#eee;
        color:#111;
        font-size: clamp(18px, 2rem + 0.5vw, 36px);
        width:100%;
        height: 60vh;
        min-height: 400px;
        text-transform:none;
        display: flex;
        align-items: center;
        text-align: center;
        text-decoration: none;
        justify-content: center;
        margin-top: 5vw;
        margin-bottom: 10vw;
    }

    #noah {
        width: 50%;   /* taille naturelle respectée */
        height: auto;     /* indispensable pour ne pas l'étirer */
    }

    .competence {
        background:#eee;
        font-size: clamp(1rem, 3.5vw, 2.5rem);
        width:100%;
        padding:0;
        margin-bottom: 2em;
    }

    .crea {
    height: 100vh;
    width: 100vw;
    background-color: #eee;
    margin: 0rem;
    overflow: hidden;
    position: relative;
    }

    .info {
        pointer-events: none;
    }

    .info a {
        pointer-events: auto;
        color: #111;
        text-decoration: none;
        background-color: #eee;
        padding: 1em;
        border-radius: 20%;
        transition: 0.5s ease-in-out;
    }

    .info a:hover{
        color: #eee;
        background-color: #111;
    }

    .block {
        animation: appear linear;
        animation-timeline: view();
        animation-range: entry 0% cover 40%;
    }

    a{
        text-decoration: none;
    }

    #graph{
        font-weight: bold;
        color: #FB5012;
        transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out, transform 0.5s ease-in-out;
        padding: 5px;
        transform: translateY(0px);
        display: inline-block;
        
    }

    #graph:hover{
        background-color: #FB5012;
        color: #eee;
        transform: translateY(-3px);
    }

    #dev{
        font-weight: bold;
        color: #2978A0;
        transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out, transform 0.5s ease-in-out;
        padding: 5px;
        transform: translateY(0px);
        display: inline-block;
        
    }

    #dev:hover{
        background-color: #2978A0;
        color: #eee;
        transform: translateY(-3px);
    }

    .suivant{
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: clamp(18px, 2rem + 0.5vw, 36px);
        margin-bottom: 4em;
        margin-top: 10em;
    }

    .suivant2{
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: clamp(18px, 2rem + 0.5vw, 36px);
        margin-bottom: 1vw;
        margin-top: 10em;
    }

    .carousel{
        margin: 0% auto;
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding-top: 1em;
        padding-bottom: 1em;
        pointer-events: none;

    }

    .carousel::-webkit-scrollbar{
        display: none;
    }

    .group{
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1em;
        animation: spin 30s infinite linear;
        padding-right: 1em;
    }

    .group2{
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1em;
        animation: spin2 30s infinite linear;
        padding-right: 1em;
    }

    .card{
        flex: 0 0 5em;
        height: 5em;
        padding: 1em;
        background:  #eee;
        font-size: 3rem;
        text-align: center;
        align-content: center;
        color: #111;
        box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    }

    svg path {
        fill: #111; /* couleur désirée */
    }

    .card svg {
        height: 50%;
    }

    .card h2 {
        font-size: clamp(0.5rem, 2vw, 3.5vw);
    }

    #contact{
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        align-items: center;
        font-size: clamp(18px, 2rem + 0.5vw, 36px);
        margin-top: 2em;
        background-color: #111;
        color: #eee;
        padding: 20% 0 10% 0;
        width: 100%;

    }

    .lien{
        display: flex;
        gap: 2rem;
        justify-content: center;
        align-items: center;
        padding: 5%;
    }

    .lien a {
        color: #eee;
        text-decoration: none;
        display: flex;
        gap: 2rem;
        justify-content: center;
        align-items: center;
    }

    .lien a svg{
        width: 15%;
        height: auto;
    }

    .tooltip {
        position: fixed;
        pointer-events: none;
        background: #111;
        color: #eee;
        padding: .5rem 1rem;
        font-size: 1rem;
        white-space: nowrap;
        transform: translate(12px, 12px);
        z-index: 9999;
    }

    /* Media queries supplémentaires pour mobile */
    @media (max-width: 480px) {
        .hero h1 { font-size: 6vw; }
        .hero h2 { font-size: 3.5vw; }
        .arrow { font-size: 6vw; }
        .photo-wrap {display: none;}
    }

    @font-face {
        font-family: Market; /* set name */
        src: url(Font/Market_Deco.ttf); /* url of the font */
    }

    @font-face {
        font-family: Retrotech; /* set name */
        src: url(Font/RETROTECH.ttf); /* url of the font */
    }

    @keyframes appear{
        from{
            opacity: 0;
            transform: translateY(-75px);
        }
        to{
            opacity: 1;
            transform: translate(0px);
        }
    }

    @keyframes spin{
        from {translate:0;}
        to {translate: -100%;}
    }

    @keyframes spin2{
        from {translate: -100%;}
        to {translate: 0;}
    }

.portfolio-grid {
  display: grid;
  /* Force exactement 2 colonnes égales */
  grid-template-columns: repeat(2, 1fr); 
  gap: 2rem;
  max-width: 1200px;
  margin: 7rem auto;
  padding: 20px;
    min-height: 100vh;
}

.project-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #fff;
  min-height: 10px;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  border-color: #bbb;
}

.project-card img {
    height: 100%;
    width: auto;
    background-color: #eee; /* Gris clair en attendant l'image */
    object-fit: cover;
}

.project-info {
  padding: 1.5rem;
}

/* Adaptation pour mobile : repasse en 1 colonne sous 768px */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    margin: 2rem auto;
  }
}