* {
    box-sizing: border-box;
}

:root {
    --noire: black;
    --rouge: #E8452B;
    --beige: #EDE7D3;
    --vert: #0F6E5C;
    --blanc: white;
    --jaune: #DDA834;

    --conteneur-max: 90rem;
    --conteneur-marge: clamp(0.75rem, 3vw, 1.5rem);
    --bordure: 2px;

}


/*==================================================================== 
                                Fond
====================================================================*/
body {
    background-color: var(--beige);
    background-image:
        linear-gradient(to right, #F2C1AB 1px, transparent 3px),
        linear-gradient(to bottom, #F2C1AB 1px, transparent 3px),
        linear-gradient(to right, #D1CAB9 1px, transparent 1px),
        linear-gradient(to bottom, #D1CAB9 1px, transparent 1px);
    background-size:
        60px 60px,
        60px 60px,
        20px 20px,
        20px 20px;
    background-attachment: fixed;
}

@media (min-width: 768px) {
    body {
        background-size:
            120px 120px,
            120px 120px,
            40px 40px,
            40px 40px;
    }
}

/*==================================================================== 
                                header
====================================================================*/

header {
    font-family: "DM Mono", monospace;
    font-weight: 500;
    font-style: normal;
    font-size: clamp(0.75rem, 0.55rem + 1vw, 1rem);

    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.5rem, 2vw, 1.5rem);

    max-width: var(--conteneur-max);
    width: 100%;
    margin: 0.5rem auto;
    padding: 0.5rem calc(var(--conteneur-marge) - var(--bordure));
    border: var(--bordure) solid var(--noire);
}

header a {
    text-decoration: none;
    color: var(--noire);
    transition: color 0.3s ease;
}

header a:hover,
header a:focus-visible {
    color: var(--rouge);
}

/*---------- Identité ----------*/
.identite {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.identite img {
    width: 2.25rem;
    height: 2.25rem;
    object-fit: cover;
    display: block;
}

.identite p {
    display: none;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.075rem;
    white-space: nowrap;
}

/*---------- Navigation ----------*/
nav {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2.5vw, 2rem);
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

nav::-webkit-scrollbar {
    display: none;
}

nav a {
    text-transform: uppercase;
    letter-spacing: 0.075rem;
    white-space: nowrap;
}

nav a:hover,
nav a:focus-visible {
    color: var(--rouge);
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

/*---------- Bouton contact ----------*/
.cliquable {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 2rem);
    flex-shrink: 0;
}

.contact-bouton {
    display: none;
    align-items: center;
    justify-content: center;
    height: 2.25rem;
    gap: 0.5rem;
    border: 2px solid var(--noire);
    padding-inline: 0.6875rem;
    transition: background-color 0.3s ease;
}

.contact-bouton a {
    text-transform: uppercase;
    letter-spacing: 0.075rem;
    white-space: nowrap;
}

.contact-bouton:hover {
    background-color: var(--noire);
}

.contact-bouton:hover a {
    color: var(--blanc);
}

.contact-bouton:hover .rond-vert {
    box-shadow: 0 0 0 0 rgba(15, 110, 92, 0);
}

.rond-vert {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--vert);
    box-shadow: 0 0 0 0.25rem rgba(15, 110, 92, 0.3);
    transition: box-shadow 0.3s ease;
    flex-shrink: 0;
    display: none;
}

.contact-bouton .Ordi {
    display: none;
}

/*---------- Langue ----------*/
.langue {
    display: none;
    align-items: center;
    gap: 0.5625rem;
}

.langue img {
    height: 2.25rem;
    width: auto;
    aspect-ratio: 2.625 / 2;
    object-fit: cover;
    display: block;
}

/*---------- Menu burgeur ----------*/

.contact-bouton {
    display: none;
}

.menu-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3125rem;
    width: 1.5rem;
    cursor: pointer;
}

.burger span {
    height: 2px;
    background-color: var(--noire);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle:focus-visible~.burger {
    outline: 2px solid var(--rouge);
}

/*---------- animation ----------*/

.menu-toggle:checked~.burger span:first-child {
    transform: translateY(0.4375rem) rotate(45deg);
}

.menu-toggle:checked~.burger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle:checked~.burger span:last-child {
    transform: translateY(-0.4375rem) rotate(-45deg);
}

/*---------- menu ----------*/

.menu-mobile {
    position: absolute;
    inset: 100% -2px auto -2px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    padding: clamp(0.75rem, 3vw, 1.5rem);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    border: 2px solid var(--noire);
    border-top: none;
    transition: max-height 0.35s ease, opacity 0.3s ease;
}

header:has(.menu-toggle:checked) {
    border-bottom-color: transparent;
}

.menu-mobile a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
}

.menu-mobile .rond-vert {
    display: block;
}

.menu-mobile>a:last-child {
    border: 2px solid var(--noire);
    padding: 0.5rem 0.6875rem;
}

.menu-toggle:checked~.menu-mobile {
    max-height: 20rem;
    opacity: 1;
}

.langue img,
.menu-mobile img {
    height: 2.25rem;
    width: auto;
    aspect-ratio: 2.625 / 2;
    object-fit: cover;
    display: block;
}

.menu-langue {
    display: flex;
    gap: 0.5625rem;
}

@media (min-width: 620px) {
    .contact-bouton {
        display: flex;
    }

    .contact-bouton .Ordi {
        display: inline;
    }

    .rond-vert {
        display: inline;
    }

    .menu-mobile>a:last-child {
        display: none;
    }

}

@media (min-width: 1160px) {

    .contact-bouton {
        display: flex;
    }

    .menu-toggle,
    .burger,
    .menu-mobile {
        display: none;
    }

    header {
        padding: 0.5rem calc(clamp(1rem, 3vw, 1.5rem) - var(--bordure));
    }

    .identite p {
        display: block;
    }

    .langue {
        display: flex;
    }
}

/*==================================================================== 
                                Contenu
====================================================================*/

.contenu {
    max-width: var(--conteneur-max);
    width: 100%;
    margin-inline: auto;
    padding-inline: var(--conteneur-marge);
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
}

@media (min-width: 768px) {
    .contenu {
        grid-template-columns: repeat(2, 1fr);
    }
}

.colonne-principale {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 4vw, 3rem);
    min-width: 0;
}

/*==================================================================== 
                                Hero
====================================================================*/

.hero {
    min-width: 0;
    /* overflow: hidden; */
    margin-left: calc(var(--conteneur-marge) * -1);
    margin-top: 3rem;
    container-type: inline-size;
}

/*---------- Le bloc visuel (image + titres) ----------*/

.visuel-hero {
    position: relative;
    display: grid;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
}

.image-hero,
.titres {
    grid-area: 1 / 1;
    align-self: start;
    justify-self: start;
}

.image-hero {
    width: clamp(15rem, 60cqi, 30rem);
    z-index: 1;
}

.photo-profil {
    width: 100%;
    height: auto;
    aspect-ratio: 487 / 639;

    background-image: url("./Img/Images/photo.jpg");
    background-size: cover;
    background-position: center;

    -webkit-mask-image: url("./Img/Images/forme-photo-profile.svg");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;

    mask-image: url("./Img/Images/forme-photo-profile.svg");
    mask-repeat: no-repeat;
    mask-size: contain;
}

/*---------- Style des "portfolio" ----------*/

.titres {
    text-align: center;
}

.titre-plein,
.titre-contour {
    font-family: "Fraunces", serif;
    font-weight: 600;
    line-height: 1;
    font-size: clamp(2.5rem, 1rem + 13cqi, 9rem);
    margin: 0;
}

.titre-plein {
    position: relative;
    z-index: 10;
    color: var(--rouge);
}

.titre-contour {
    color: transparent;
    -webkit-text-stroke: 1px var(--rouge);
}

@media (min-width: 768px) {
    .visuel-hero {
        display: block;
        width: auto;
        max-width: none;
        margin-inline: 0;
        min-height: clamp(35rem, 65cqi, 46rem);
    }

    .image-hero {
        position: absolute;
        top: 0;
        left: 0;
        width: clamp(11rem, 60%, 30rem);
        z-index: 1;
    }

    .titres {
        text-align: left;
        margin-left: 1%;
    }

    .titre-plein,
    .titre-contour {
        margin-left: clamp(1rem, 6cqi, 4.5rem);
    }
}

/*==================================================================== 
                                Timeline
====================================================================*/

.modele {
    display: none;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.timeline {
    min-width: 0;
    display: none;
    container-type: inline-size;
}

@media (min-width: 768px) {
    .timeline {
        display: flex;
        flex-direction: column;
        gap: clamp(1.5rem, 4cqi, 2.5rem);
        padding: clamp(1.5rem, 4cqi, 2.5rem);
        border: 2px solid var(--noire);
        /* box-shadow: 4px 4px 0 var(--noire); */
        margin-top: 3rem;
        margin-right: calc(var(--conteneur-marge) * -1);
    }
}

/*---------- Titre ----------*/

.timeline-titre {
    font-family: "Fraunces", serif;
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.075rem;
    font-size: clamp(1.75rem, 1rem + 4cqi, 3rem);
    margin: 0;
}

/*---------- Liste + ligne centrale ----------*/

.timeline-liste {
    --taille-etoile: clamp(3rem, 8cqi, 5rem);

    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 5cqi, 2.5rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.timeline-liste::before {
    content: "";
    position: absolute;
    top: calc(var(--taille-etoile) / 2);
    bottom: 0;
    left: 50%;
    width: 0.75rem;
    transform: translateX(-50%);
    border: solid 2px var(--noire);
    border-radius: 999px;
}

/*---------- Une étape : 2 rangées (étoile+titre / texte) ----------*/

.timeline-etape {
    position: relative;
    display: grid;
    grid-template-columns: 1fr var(--taille-etoile) 1fr;
    grid-template-rows: var(--taille-etoile) auto;
    align-items: center;
    column-gap: clamp(1rem, 3cqi, 2rem);
    row-gap: 0.35rem;
    min-height: clamp(7rem, 20cqi, 8.5rem);
}

.timeline-marqueur {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: var(--taille-etoile);
    aspect-ratio: 1;
    fill: var(--jaune);
    stroke: var(--noire);
    stroke-width: 1px;
}

.timeline-etape--gauche .timeline-etape-titre,
.timeline-etape--gauche .timeline-etape-texte {
    grid-column: 1;
    text-align: right;
}

.timeline-etape--droite .timeline-etape-titre,
.timeline-etape--droite .timeline-etape-texte {
    grid-column: 3;
    text-align: left;
}

.timeline-etape-titre {
    grid-row: 1;
    font-family: "Fraunces", serif;
    font-weight: 600;
    font-size: clamp(1rem, 0.8rem + 1cqi, 1.25rem);
    margin: 0;
}

.timeline-etape-texte {
    grid-row: 2;
    font-family: "Fraunces", serif;
    font-weight: 300;
    font-size: clamp(0.85rem, 0.75rem + 0.5cqi, 1rem);
    letter-spacing: 0.05rem;
    margin: 0;
}

/*---------- Bouton ----------*/

.bouton {
    align-self: center;
    text-align: center;
    text-decoration: none;
    color: var(--noire);
    border: 2px solid var(--noire);
    padding: 0.5rem 1.5rem;
    font-family: "Fraunces", serif;
    letter-spacing: 0.075rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.bouton:hover,
.bouton:focus-visible {
    background-color: var(--noire);
    color: var(--blanc);
}

/*==================================================================== 
                                Skills
====================================================================*/

.skills {
    min-width: 0;
    container-type: inline-size;
    margin-inline: calc(var(--conteneur-marge) * -1);
    margin-top: -1rem;
}

/*---------- Titre principal ----------*/

.entete {
    padding-bottom: clamp(1rem, 3cqi, 1.5rem);
    border-bottom: 2px solid var(--noire);
}

.titre {
    font-family: "Fraunces", serif;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.02em;
    font-size: clamp(2rem, 1rem + 5cqi, 4.5rem);
    margin: 0;
    /* margin-bottom: -1.5rem; */
}

/*---------- Grille des blocs ----------*/

.skills-grille {
    --gap-blocs: clamp(1.5rem, 5cqi, 2.5rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "software soft"
        "software dev";
    gap: var(--gap-blocs);
    margin-top: clamp(1.5rem, 4cqi, 2.5rem);
    padding: clamp(1.5rem, 4cqi, 2.5rem) clamp(1rem, 3cqi, 1.75rem);
    border: 2px solid var(--noire);
}

.skill-bloc {
    --icone-slot: clamp(1.5rem, 4cqi, 2rem);
}

.skill-bloc--soft {
    grid-area: soft;
    color: var(--vert);
}

.skill-bloc--software {
    grid-area: software;
    color: var(--jaune);
}

.skill-bloc--dev {
    grid-area: dev;
    color: var(--rouge);
    margin-top: calc(var(--gap-blocs) * -1);
}

/*---------- En-tête d’un bloc (icône + nom + trait) ----------*/
.skill-bloc {
    --icone-slot: clamp(1.5rem, 4cqi, 2rem);
    --ecart-etoile: clamp(1.5rem, 4cqi, 2rem);
}

.skill-bloc--soft {
    grid-area: soft;
    color: var(--vert);
}

.skill-bloc--software {
    grid-area: software;
    color: var(--jaune);
}

.skill-bloc--dev {
    grid-area: dev;
    color: var(--rouge);
}

/*---------- Liste : étoile / écart / ligne / écart ----------*/

.skill-liste {
    display: flex;
    flex-direction: column;
    gap: 0rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.skill-etape {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.2rem;
}

.skill-etape:not(:first-child)::before {
    content: "";
    width: 2px;
    height: 2rem;
    margin-left: calc(var(--icone-slot) / 2 - 1px);
    background-color: currentColor;
}

/*---------- Contenu d'une étape : étoile + texte ----------*/

.skill-item {
    display: grid;
    grid-template-columns: var(--icone-slot) 1fr;
    align-items: center;
    column-gap: 0.6rem;
}

.skill-nom {
    font-family: "Fraunces", serif;
    font-weight: 700;
    font-size: clamp(1rem, 0.85rem + 1cqi, 1.25rem);
    color: var(--noire);
    margin: 0;
}

.skill-item span {
    font-family: "Fraunces", serif;
    font-weight: 300;
    font-size: clamp(0.85rem, 0.75rem + 0.3cqi, 1rem);
    letter-spacing: 0.03rem;
    color: var(--noire);
}

.skill-bloc--dev .skill-etape:first-child::before {
    content: "";
    display: block;
    width: 2px;
    height: 2rem;
    margin-left: calc(var(--icone-slot) / 2 - 1px);
    background: linear-gradient(to bottom, var(--vert), var(--rouge));
}

/*---------- Étoiles ----------*/

.skill-icone,
.skill-etoile {
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1px;
    flex-shrink: 0;
    justify-self: center;
}

.skill-icone {
    width: var(--icone-slot);
    height: var(--icone-slot);
}

.skill-etoile {
    width: clamp(0.85rem, 2cqi, 1.1rem);
    height: clamp(0.85rem, 2cqi, 1.1rem);
}

.skills-visuel {
    grid-row: 2;
    grid-column: 1;
    align-self: start;
    justify-self: start;
    width: 100%;
    max-width: 8.75rem;
    aspect-ratio: 8.75 / 13.375;
    border-radius: 5.75rem 5.75rem 0.4375rem 0.4375rem;
    border: 2px solid #000;
    overflow: hidden;
    margin-top: 7rem;
}

.skills-visuel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.skill-bouton {
    margin-top: -0.5rem;
    grid-column: 1 / -1;
}

@media (min-width: 841px) {
    .skills-grille {
        grid-template-columns: repeat(3, 1fr);
        grid-template-areas: "soft software dev";
    }

    .skills {
        margin-right: 0;
    }

    .skill-bloc--dev {
        margin-top: 0;
    }

    .skills-visuel {
        display: none;
    }

    .skill-bouton {
        display: none;
    }

    .skill-bloc--dev .skill-etape:first-child::before {
        display: none;
    }
}

/*==================================================================== 
                                Citation
====================================================================*/

.citation {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    max-width: 30rem;
    margin-inline: auto;
    margin-top: 1rem;
    color: var(--rouge);
}

.citation-guillemet {
    width: clamp(1.25rem, 4vw, 1.75rem);
    height: auto;
}

.citation-guillemets {
    display: flex;
    align-self: flex-start;
    margin-left: -0.5rem;
}


.citation-texte {
    font-family: "Fraunces", serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1rem, 0.85rem + 1vw, 1.375rem);
    color: var(--noire);
    margin: 0;
}
.citation-guillemet:last-child {
    margin-left: 0.2rem;
}
@media (min-width: 768px) {
    .citation {
        max-width: 34rem;
    }
}

/*==================================================================== 
                                Mes projets
====================================================================*/

.projets {
    grid-column: 1 / -1;
    margin-inline: calc(var(--conteneur-marge) * -1);
    container-type: inline-size;
}

/*---------- Titre ----------*/

.projet-entete{
    margin-bottom: 2rem;
}
/*---------- Filtres ----------*/

.projets-filtres {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 2px solid var(--noire);
}

.filtre-bouton {
    font-family: "Fraunces", serif;
    font-weight: 700;
    font-size: clamp(0.8rem, 0.65rem + 0.8cqi, 1.1rem);
    color: var(--noire);
    background: none;
    border: none;
    border-right: 2px solid var(--noire);
    padding: clamp(0.5rem, 2cqi, 0.75rem) 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.filtre-bouton:last-child {
    border-right: none;
}

.filtre-bouton:hover,
.filtre-bouton:focus-visible {
    background-color: var(--noire);
    color: var(--blanc);
}