html, body {
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
    background-color: #1d1d1b;
    
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
header{
    width: 100%;
    height: 100vh;
    background-color:#1d1d1b;
}
#navigation{
    display: flex;
    height: 10vh;
    
}
.logo img{
    width: 20%;
    margin-left: 17%;
    margin-top: 7%;
   
}
#navigation ul{
    display: flex;
    gap: 15px;
    padding-top: 12vh;
    padding-left: 30%;
    
    
}
#navigation ul li{
    height: 3vh;
    width: 125px;
    background-color: white;
    list-style: none;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #1d1d1b;
    text-align: center;
}
#navigation ul :hover{
    background-color: #ed8809;
    color: white;
}
#navigation ul li a {
  text-decoration: none; 
  color: inherit;  
        
}
.box{
    position: relative;
    width: 90%;
    height: 70vh;
    background-color: white;
    margin: 5%;
    padding: 10vh;
}
.box h1{
    font-family:"Rock Salt", cursive;
    font-size: 20px;
}
.box h2{
    font-family: "Montserrat", sans-serif;
    font-size: 75px;
    font-weight: 700;
}
.box h3{
    width: 33%;
    font-family:"Open Sans", sans-serif;
    font-size: 15px;
    font-weight: 300;
}
.link{
    display: flex;
    padding-top: 5vh;
    gap: 25px;
}
.link a{
  text-decoration: none;
}
.decouvrir{
    width: 10%;
    height: 5vh;
    background-color: #ed8809;
    color: white;
    font-family: "Rock Salt", cursive;
    text-align: center;
}
.contact{
    width: 10%;
    height: 5vh;
    background-color: #e742ce;
    color: white;
    font-family: "Rock Salt", cursive;
    text-align: center;
}
.logo2 img{
   position: absolute;
   top: 10%;
   right: 5%;
   width: 30%;
   opacity: 0;
   transform: scale(3) rotate(25deg);
   animation: stamp 1s cubic-bezier(0.6, 0.04, 0.98, 0.33) forwards;
   animation-delay: 0.5s; 
}

@keyframes stamp {
  0% {
    opacity: 0;
    transform: scale(3) rotate(25deg);
  }
  75% {
    opacity: 0.85;
    transform: scale(0.9) rotate(25deg); 
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(25deg);
  }
}
.banderolle{
    position: absolute;
    height: 15px;
    width: 100%;
    background-color: #e742ce;
    bottom: 0;
    left: 0;
}
.logo-accueil {
    position: fixed;
    bottom: 20px;   
    right: 20px;  
    z-index: 9999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ed8809; 
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.logo-accueil img {
    width: 70%;  
    height: 70%;
    object-fit: contain;
}
.logo-accueil:hover {
    transform: scale(1.3); 
    opacity: 0.9;
}    

#presentation{
    position: relative;
    width: 100%;
    height: 115vh;
    background-color: #1d1d1b;
}
.portrait img{
    position: absolute;
    width: 35%;
    height: 60vh;
    object-fit: contain;
    top: 28%;
    left: 10%;
    
}
#presentation h2{
    position: absolute;
    font-family:"Rock Salt", cursive;
    font-size: 30px; 
    color: #e742ce;
    left: 45%;
    top: 13vh;
}
#presentation h3{
    position: absolute;
    width: 30%;
    font-family: "Montserrat", sans-serif;
    font-size: 75px;
    font-weight: 700;
    color: white;
    left: 45%;
    top: 20vh;
}
#presentation h4{
    position: absolute;
    font-family:"Rock Salt", cursive;
    font-size: 30px; 
    color: #e742ce;
    left: 65%;
    top: 35vh;
    transform: rotate(-20deg);
}
#presentation h5{
    position: absolute;
    width: 45%;
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: white;
    left: 45%;
    top: 50vh;
    line-height: 1.6;
}
.color{
    color: #e742ce;
}
.skills {
  position: absolute;
  display: flex;
  flex-direction: column;
  padding: 7%;
  gap: 20px;
}

.skills h2 {
  position: absolute;
  font-family: "Rock Salt", cursive;
  font-size: 30px; 
  color: #ed8809 !important;
  transform: rotate(-20deg);
  left: 10% !important;
  top: 10% !important;
}

/* Grille/Liste des icônes */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 50px;
}

/* Conteneur individuel pour chaque icône */
.skill-item {
  position: relative;
  display: inline-block;
  width: 75px;
  height: 75px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Zoom au survol */
.skill-item:hover {
  transform: scale(1.3);
}

/* Image de fond grise */
.skill-item img {
  width: 100%;
  height: 100%;
  filter: grayscale(100%) opacity(0.3);
  transition: filter 0.3s ease;
}

.skill-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2; 
  filter: saturate(0.6) brightness(0.95);
  opacity: 0.85;
  pointer-events: none; 
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.5s ease-in-out;
}

.skill-item.html::after    { -webkit-mask-image: url('../photos/HTML.svg'); mask-image: url('../photos/HTML.svg'); background-color: #E34F26; }
.skill-item.css::after     { -webkit-mask-image: url('../photos/CSS.svg'); mask-image: url('../photos/CSS.svg'); background-color: #1572B6; }
.skill-item.js::after      { -webkit-mask-image: url('../photos/JS.svg'); mask-image: url('../photos/JS.svg'); background-color: #F7DF1E; }
.skill-item.sass::after    { -webkit-mask-image: url('../photos/Sass.svg'); mask-image: url('../photos/Sass.svg'); background-color: #CC6699; }
.skill-item.php::after     { -webkit-mask-image: url('../photos/PHP.svg'); mask-image: url('../photos/PHP.svg'); background-color: #777BB4; }
.skill-item.python::after  { -webkit-mask-image: url('../photos/Python.svg'); mask-image: url('../photos/Python.svg'); background-color: #3776AB; }
.skill-item.symfony::after { -webkit-mask-image: url('../photos/Symfony.svg'); mask-image: url('../photos/Symfony.svg'); background-color: #000000; }
.skill-item.react::after   { -webkit-mask-image: url('../photos/React.svg'); mask-image: url('../photos/React.svg'); background-color: #61DAFB; }

.skill-item:hover::after {
  clip-path: inset(calc(100% - var(--level, 100%)) 0 0 0);
}
#galerie {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #1d1d1b;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

.galerie-titre {
    text-align: center;
    font-family: "Rock Salt", cursive;
    font-size: 35px;
    color: #e742ce;
    background-color: #1d1d1b;
}

.carte {
    position: relative;
    background-color: #2a2a28;
    border-radius: 8px;
    color: white;
    display: block;
    overflow: hidden;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.carte:hover {
    background-color: #2a2a28;
    transform: translateY(-7px);
}

.carte a img {
    display: block;
    opacity: 0.5;
    width: 100%;
    aspect-ratio: 2 / 1;
}

.competences {
    position: relative;
    z-index: 2;
}

.competences img {
    opacity: 1;
    display: inline-flex;
    top: 0;
    width: 8%;
}

.carte h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    background-color: #e742ce;
    height: 40px;
    width: 250px;
    text-align: center;
    padding-top: 10px;
    border-radius: 8px;
}

.description {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 20px 60px;     
    background: rgba(29, 29, 27, 0.92);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    pointer-events: none;     
}

.description p {
    margin: 0;
    color: white;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.carte:hover .description,
.carte:focus-within .description {
    transform: translateY(0);
}
.bouton-voir {
    position: absolute;
    right: 15px;
    bottom: 8px;
    z-index: 3;
    pointer-events: auto;       
    padding: 8px 22px;
    border: 2px solid #e742ce;
    border-radius: 8px;
    background-color: transparent;
    color: #e742ce;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.bouton-voir:hover,
.bouton-voir:focus-visible {
    background-color: #e742ce;
    color: #1d1d1b;
    transform: translateY(-2px);
}

@media (hover: none) {
    .description {
        transform: translateY(0);
    }
}
.fond{
    background-image: url(photos/codage.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    height: 30vh;
    position: relative;
    z-index: 1;
}
.citation h4{
    display: flex;
    font-family:"Montserrat", sans-serif;
    font-size: 30px; 
    color: white;
    text-align: center;
    min-height: 30vh;
    align-items: center;
    justify-content: center;
}
.banderolle2{
    position: absolute;
    height: 15px;
    width: 100%;
    background-color: #ed8809;
    bottom: 0;
    left: 0;
}
.about-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  padding: 60px 40px;
  
}

.about-block--reverse {
  flex-direction: row-reverse;
}

.about-card {
  flex: 1 1 50%;
  background: #ed8809;
  border-radius: 30px;
  padding: 70px 80px;
  box-sizing: border-box;
  box-shadow: 0 20px 40px rgba(42, 14, 140, 0.25);
}

.code-window {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 22px 24px;
}

.dots {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.dots span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}
.dots span:nth-child(1) { background: #ff5f57; }
.dots span:nth-child(2) { background: #febc2e; }
.dots span:nth-child(3) { background: #28c840; }

.code-window pre {
  margin: 0;
  overflow-x: auto;
}

.code-window code {
  font-family: "Courier New", Consolas, monospace;
  font-size: 18px;
  line-height: 1.5;
  color: #d8d8d8;
}

.code-window .kw  { color: #4ec9d4; }
.code-window .var { color: #b08cf5; }
.code-window .key { color: #e0a96d; }
.code-window .str { color: #6fb7ff; }
.code-window .fn  { color: #4ec9d4; }


.about-text {
  flex: 1 1 45%;
}

.about-text h2 {
  margin: 0 0 24px;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  color: #e742ce;
}

.about-text h2 span {
  color: #e742ce;
  font-family:"Rock Salt", cursive;
}

.about-text p {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  color: #e742ce;
}

.about-text strong {
  color: #6fb7ff;
  font-weight: 700;
}


@media (max-width: 900px) {
  .about-block,
  .about-block--reverse {
    flex-direction: column;
    gap: 40px;
    padding: 40px 20px;
  }

  .about-card {
    width: 100%;
    padding: 30px 20px;
  }

  .code-window code {
    font-size: 14px;
  }
}

#contact{
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: white;
    padding: 5%;
    
}
#contact h2{
    position: absolute;
    font-family:"Rock Salt", cursive;
    color: #e742ce;
    font-size: 45px;
    transform: rotate(-10deg);
    left: 10% !important;
    top: 0 !important;
}
#contact h3{
    font-family: "Montserrat", sans-serif;
    font-size: 75px;
    font-weight: 700;
}
#contact h4{
    width: 33%;
    font-family:"Open Sans", sans-serif;
    font-size: 18px;
    font-weight: 300;
}
.coordonnees{
    position: absolute;
    top: 55%;
    width: 700PX;
    height: 200PX;
    background-color: #1d1d1b;
    border-radius: 8px;
    padding-left: 5%;
    padding-top: 2%;
    line-height: 1.6;
    font-size: 20px;
    font-family: "JetBrains Mono", monospace;
    
}
.coordonnees .cord{
    color: #6c6c6c;
}
.coordonnees .imp{
    color: #3fc7f0;
}
.coordonnees .em{
    color: #ec1876;
}
.coordonnees .fr{
    color: #3fc7f0;
}
.coordonnees .fn{
    color: #f5a428;
}

.code-editor {
  position: absolute;
  left: 55%;
  top: 10%;
  width: 100%;
  max-width: 650px;
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #2d2d2d;
}

.editor-header {
  background-color: #141414;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 1px solid #262626;
}

.window-buttons {
  display: flex;
  gap: 8px;
}

.window-buttons .btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.window-buttons .close { background-color: #ff5f56; }
.window-buttons .minimize { background-color: #ffbd2e; }
.window-buttons .maximize { background-color: #27c93f; }

.filename {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #7a7a7a;
  font-size: 13px;
}
.editor-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.line {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.line-number {
  color: #4a4a4a;
  font-size: 14px;
  user-select: none;
  padding-top: 2px;
}

.code-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.keyword { color: #00b0ff; } 
.var-name { color: #ff2a6d; }

.input-wrapper {
  position: relative;
  width: 100%;
}

.quote-single::before { content: "'"; position: absolute; left: 14px; top: 12px; color: #f7c95c; z-index: 1; }
.quote-single::after  { content: "'"; position: absolute; right: 14px; top: 12px; color: #f7c95c; z-index: 1; }

.quote-backtick::before { content: "`"; position: absolute; left: 14px; top: 12px; color: #f7c95c; z-index: 1; }
.quote-backtick::after  { content: "`"; position: absolute; right: 14px; bottom: 12px; color: #f7c95c; z-index: 1; }

.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  background-color: #222222;
  border: 1px solid #333333;
  border-radius: 6px;
  padding: 12px 24px;
  color: #f7c95c; /* Couleur du texte saisi */
  font-family: 'Fira Code', monospace;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.input-wrapper textarea {
  resize: vertical;
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
  color: #d4a341;
  opacity: 0.8;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
  border-color: #555555;
}

.btn-submit {
  background-color: #f7a01d;
  color: #000000;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-family: 'Fira Code', monospace;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  margin-top: 4px;
}

.btn-submit:hover {
  background-color: #ffb13b;
}

.btn-submit:active {
  transform: scale(0.98);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: 'Fira Code', monospace;
  font-size: 15px;
  font-weight: 500;
  color: #000000;
  text-decoration: none;
  background-color: #ffffff;
  border: 1.5px solid #e2e2e2;
  border-radius: 10px;
  transition: all 0.2s ease-in-out;
}
.btn-link:hover {
  border-color: #b0b0b0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.groupe-liens {
    position: absolute;
    bottom: 70px;
    right: 110px;
    display: inline-flex;
    align-items: center;
    gap: 25px;
    padding: 25px 75px; 
}
.groupe-liens h5{
    font-family:"Rock Salt", cursive;
    font-size: 35px; 
    color: #ed8809;
    position: absolute;
    bottom: 80px;

}
.cercle-svg {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    width: 145%; 
    height: 160%;
    pointer-events: none; 
    z-index: 2;
}
.btn-link {
    position: relative;
    z-index: 1;
}
.cercle-svg path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dessiner 2.5s ease-in-out infinite;
}

@keyframes dessiner {
    to {
        stroke-dashoffset: 0;
    }
}

/* ==========================================
   TABLETTES ET PETITS ÉCRANS (Max 1024px)
   ========================================== */
@media (max-width: 1024px) {
    /* Navigation */
    #navigation {
        flex-direction: column;
        height: auto;
        padding-bottom: 20px;
    }
    .logo img {
        width: 40%;
        margin-left: 0;
        margin-top: 20px;
    }
    #navigation ul {
        padding-left: 0;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Section Box (Accueil) */
    .box {
        height: auto;
        padding: 40px 20px;
    }
    .box h2 {
        font-size: 45px;
    }
    .box h3 {
        width: 100%;
    }
    .decouvrir, .contact {
        width: 120px;
    }
    .logo2 img {
        position: relative;
        top: auto;
        right: auto;
        width: 50%;
        margin: 20px auto 0 auto;
        display: block;
    }

    /* Section Présentation */
    #presentation {
        height: auto;
        padding: 50px 20px;
    }
    .portrait img {
        position: relative;
        width: 60%;
        height: auto;
        top: auto;
        left: auto;
        display: block;
        margin: 0 auto 30px auto;
    }
    #presentation h2, 
    #presentation h3, 
    #presentation h4, 
    #presentation h5 {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        transform: none;
        text-align: center;
        margin-bottom: 15px;
    }
    #presentation h3 {
        font-size: 45px;
    }

    /* Galerie */
    #galerie {
        height: auto;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    /* Contact */
    #contact {
        height: auto;
        padding: 50px 20px;
    }
    #contact h2 {
        position: relative;
        left: auto !important;
        top: auto !important;
        transform: none;
        text-align: center;
        margin-bottom: 10px;
    }
    #contact h3, #contact h4 {
        text-align: center;
        width: 100%;
    }
    .coordonnees {
        position: relative;
        top: auto;
        width: 100%;
        max-width: 100%;
        height: auto;
        margin-top: 30px;
    }
    .code-editor {
        position: relative;
        left: auto;
        top: auto;
        margin-top: 30px;
        max-width: 100%;
    }
}

/* ==========================================
   SMARTPHONES (Max 768px)
   ========================================== */
@media (max-width: 768px) {
    /* Navigation & Liens */
    #navigation ul {
        gap: 10px;
    }
    #navigation ul li {
        width: 100px;
        font-size: 13px;
    }

    /* Box Accueil */
    .box h2 {
        font-size: 35px;
    }
    .link {
        flex-direction: column;
        gap: 15px;
    }
    .decouvrir, .contact {
        width: 100%;
    }

    /* Galerie sur une seule colonne */
    #galerie {
        grid-template-columns: 1fr;
    }
    .carte h3 {
        width: 100%;
        font-size: 13px;
    }

    /* Citation */
    .citation h4 {
        font-size: 20px;
        padding: 0 15px;
    }

    /* Contact / Editeur */
    #contact h3 {
        font-size: 35px;
    }
    .coordonnees {
        font-size: 14px;
        padding: 15px;
    }
}
