/* =============== GOOGLE FONTS =============== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Tilt+Warp&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Tilt+Warp&display=swap');

/* =============== VARIABLES CSS =============== */ 
:root{
    /* ===== COULEURS ===== */
    /*
            Changement de couleur : 
            Defaut (red) : hsl(358, 80%, 49%)
            Purple : hsl(265, 80%, 49%) - Blue : hsl(220, 80%, 49%)
            Pink : hsl(330, 80%, 49%) - Green : hsl(162, 80%, 49%)
            Orange : hsl(14, 80%, 49%)

            Pour avoir d'autres couleurs : https://htmlcolorcodes.com
    */
    --hue: 265;
    --first-color: hsl(var(--hue), 80%, 49%);
    --first-color-alt: hsl(var(--hue), 76%, 45%);
    --white-color: #f2f5e4;
    /* --dark-color: #111010; */
    --dark-color: #2f2c2b;
    --text-color: hsl(var(--hue), 2%, 66%);
    /* --body-color: hsl(var(--hue), 100%, 1%); */
    --body-color: #2f2c2b;
    --container-color: hsl(var(--hue), 2%, 10%);
    /* --container-color: #2f2c2b; */
    --conic-gradient: conic-gradient(from 150deg at 50% 45%,
                    hsl(var(--hue), 80%, 20%) 0deg,
                    hsl(var(--hue), 80%, 48%) 140deg,
                    hsl(var(--hue), 80%, 20%) 360deg);

    --error-color: hsl(358, 80%, 49%);
    --reflection-color: hsla(48, 30%, 95%, 0.3);
    
    /* ===== POLICE ET TYPOGRAPHIE ===== */
    /* 5rem = 8px | 1rem = 16px ... */
    --body-font: 'Poppins';
    --second-font: 'Montserrat';
    --biggest-font-size: 2.5rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.813rem;
    --smaller-font-size: 0.75rem;

    /* ===== ÉPAISSEURS ===== */
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;

    /* ===== Z INDEX ===== */
    --z-tooltip: 10;
    --z-fixed: 100;
}

/* =============== TYPOGRAPHIE RESPONSIVE =============== */
@media screen and (min-width: 1168px){
    :root{
        --biggest-font-size: 3.5rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: 0.875rem;
        --smaller-font-size: 0.813rem;
    }
}

/* =============== BASE =============== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body,
input,
textarea,
button {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
}

body {
    background-color: var(--body-color);
    background-size: 30%;
    background-repeat: repeat;
    color: var(--white-color);
}

input,
textarea,
button {
    border: none;
    outline: none;
}

h1, h2, h3, h4 {
    color: var(--white-color);
    font-weight: var(--font-semi-bold);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    background-size: 300px 150px;

}

::selection {
  background: var(--first-color); /* ou #8A2BE2, par exemple */
  color: var(--white-color); /* pour que le texte reste lisible */
}

/* =============== CLASSES CSS RÉUTILISABLES =============== */
.container {
    max-width: 1168px;
    margin-inline: 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.section {
    padding-block: 2rem 3rem;
}

.section__title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.main {
    overflow: hidden;
}

/* =============== NAV =============== */
.nav{
    position: fixed;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    background-color: hsl(0, 0%, 98%, 0.1);
    width: 88%;
    margin-inline: auto;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem 2rem;
    border-radius: 4rem;
    z-index: var(--z-fixed);
}

.nav__list {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__link {
    width: 2.5rem;
    height: 2.5rem;
    background-color: transparent;
    color: var(--white-color);
    font-size: 1.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: background-color 0.6s;
}

/* .nav__link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    transition: background-color 0.6s;
    overflow: visible;
} */

/* Active link */
.active-link {
    background-color: var(--first-color);
}

/* =============== HOME =============== */
/* ===== PROFIL ===== */
.profil {
    position: relative;
    background: var(--conic-gradient);
    height: 415px;
    border-radius: 2rem;
    padding: 1rem;
    display: grid;
    overflow: hidden;
}

.profil__img {
    width: 316px;
    position: absolute;
    justify-self: center;
    align-self: flex-end;
}

.profil__data {
    align-self: flex-end;
    background-color: hsla(0, 0%, 1%, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.5rem 1rem;
    border-radius: 1.5rem;
    border: 2px solid hsla(0, 0%, 100%, 0.5);
}

.profil__name {
    font: var(--font-medium) var(--biggest-font-size) var(--second-font);
    margin-bottom: 1rem;
}

.profil__bouton {
    display: grid;
    column-gap: 0.5rem;
    grid-template-columns: repeat(2, 1fr);
}

.profil__bouton .bouton {
    padding: 0.75rem 0;
}

/* ===== INFO ===== */
.info,
.about,
.skills {
    background-color: var(--container-color);
    padding: 2rem 1.5rem;
    border-radius: 2rem;
}

.info__circle {
    width: 2rem;
    height: 2rem;
    background-color: var(--first-color);
    border-radius: 50%;
}

.info__name {
    font: var(--font-regular) var(--h1-font-size) var(--second-font);
}

.info__data {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 0.5rem;
}

.info__image {
    background: var(--conic-gradient);
    height: 180px;
    border-radius: 2rem;
    display: grid;
    margin-block: 1.5rem;
    overflow: hidden;
}

.info__img {
    width: 140px;
    justify-self: center;
    align-self: flex-end;
}

.info__description {
    font-size: var(--small-font-size);
    margin-bottom: 2rem;
}

.info .bouton {
    width: 100%;
}

/* ===== A PROPOS ===== */
.about__name {
    font-size: var(--normal-font-size);
    font-weight: var(--font-regular);
    margin-bottom: 1rem;
}

.about__social {
    display: flex;
    justify-content: center;
    column-gap: 1.5rem;
    margin-block: 2rem;
}

.about__link {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--white-color);
    color: var(--dark-color);
    font-size: 1.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: background-color 0.4s, color 0.4s;
}

.about__link:hover {
    background-color: var(--first-color);
    color: var(--white-color);
}

.about__image {
    background: var(--conic-gradient);
    height: 180px;
    border-radius: 2rem;
    display: grid;
    overflow: hidden;
}

.about__img {
    justify-self: center;
    transform: translateY(-2.5rem);
}

.about__note {
    font-size: var(--small-font-size);
    margin-block: 1rem 2rem;
}

.about .bouton {
    width: 100%;
}

.about__description {
    padding-bottom: 2rem;
}

/* ===== COMPÉTENCES ===== */
.skills__title {
    font-size: var(--h2-font-size);
}

.skills__item {
    width: 1.5rem;
    transition: transform 0.4s;
}

.skills__item:hover {
    transform: translateY(-0.25rem)
}

.skills__items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin-block: 1.5rem;
}

.skills__description {
    font-size: var(--small-font-size);
}

/* =============== BOUTONS =============== */
.bouton {
    display: inline-flex;
    justify-content: center;
    background-color: var(--first-color);
    color: var(--white-color);
    font-weight: var(--font-semi-bold);
    padding: 1.25rem 2.5rem;
    border-radius: 4rem;
    transition: background-color 0.4s;
}

.bouton__black {
    background-color: var(--dark-color);
}

.bouton:hover {
    background-color: var(--first-color-alt);
}

/* =============== PROJETS =============== */
.projects__card {
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: 2rem;
}

.projects__image {
    display: block;
    overflow: hidden;
    border-radius: 1.5rem;
    margin-bottom: 1.5rem;
}

.projects__img {
    transition: transform 0.4s;
    width: 320px;
    height: 320px;
}

.projects__name {
    font-size: var(--h3-font-size);
    margin-bottom: 0.5rem;
}

.projects__description {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.projects__skill {
    width: 1rem;
    transition: transform 0.4s;
}

.projects__skill:hover {
    transform: translateY(-0.25rem);
}

.projects__skills {
    width: max-content;
    height: 34px;
    background-color: var(--dark-color);
    padding-inline: 0.75rem;
    display: flex;
    align-items: center;
    column-gap: 0.75rem;
    border-radius: 4rem;
    margin-bottom: 1.5rem;
}

.projects__bouton {
    color: var(--white-color);
    display: inline-flex;
    align-items: center;
    column-gap: 0.5rem;
    transition: color 0.4s;
}

.projects__bouton i {
    font-size: 1.25rem;
}

.projects__bouton span {
    font-weight: var(--font-medium);
}

.projects__bouton:hover {
    color: var(--text-color);
}

.projects__card:hover .projects__img {
    transform: scale(1.2);
}

/* === popup 1 ===*/
.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
  overflow-y: auto; /* permet le scroll dans le popup */
}

.popup.show {
  opacity: 1;
  pointer-events: auto;
}

.popup__content {
  background: var(--container-color);
  color: var(--text-color);
  padding: 2rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 900px;

  max-height: 90vh; /* ⬅️ Limite la hauteur totale */
  overflow-y: auto;  /* ⬅️ Active le scroll interne */

  transform: scale(0.9);
  transition: transform 0.3s ease;
  position: relative;

  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.img__projets {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
}

.img__projets__large {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    overflow-x: scroll;
}

@media screen and (max-width: 768px) {
    .img__projets {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .projects__img {
    transition: transform 0.4s;
    width: 22rem;
    }
}

.popup__titre{
    font-weight: bold;
}

.p__projets {
    color: var(--white-color);
}

.popup__content img {
  max-width: 100%;
  max-height: 300px; /* ou autre valeur selon ton design */
  object-fit: contain;
  border-radius: 0.5rem;
}

body.noscroll {
  overflow: hidden;
}

.popup.show .popup__content {
  transform: scale(1);
}

.popup__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.popup__link {
    color: var(--white-color);
    display: inline-flex;
    align-items: center;
    column-gap: 0.5rem;
    transition: color 0.4s;
}

@media screen and (max-width: 768px) {
  .popup__content {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
}

/* =============== SERVICES =============== */
/* .services__card {
    background-color: var(--container-color);
    padding: 4rem 1.5rem 3.5rem 1.5rem;
    border-radius: 2rem;
}

.services__icon {
    display: inline-block;
    position: relative;
    margin-bottom: 2rem;
}

.services__icon i {
    font-size: 2.5rem;
    position: relative;
    z-index: var(--z-tooltip);
}

.services__circle {
    width: 3rem;
    height: 3rem;
    background-color: var(--first-color);
    border-radius: 50%;
    position: absolute;
    top: -1rem;
    right: -1rem;
    transition: transform 0.4s;
}

.services__name {
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
}

.services__description {
    color: var(--text-color);
}

.services__card:hover .services__circle {
    transform: translate(-0.25rem, -0.25rem);
} */

/*témoignages*/

.testimonial-carousel {
    margin-top: 4rem;
    overflow: hidden;
    padding: 0 1rem;
  }
  
  .carousel {
    overflow: hidden;
    position: relative;
  }
  
  .carousel-track {
    display: flex;
    width: max-content;
    animation: scrollCarousel 80s linear infinite;
  }
  
  .carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    box-sizing: border-box;
    margin: auto;
    display: flex;
    justify-content: center;
  }
  
  .testimonial-content {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
  }
  
  blockquote {
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--text-color);
    padding: 0 1rem;
  }
  
  cite {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    color: var(--title-color);
  }
  
  @keyframes scrollCarousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  
  @media screen and (max-width: 768px) {
    .carousel-slide {
      padding: 1rem;
    }
  
    blockquote {
      font-size: 1rem;
    }
  
    .testimonial-img {
      width: 60px;
      height: 60px;
    }
  }

  /* Carrousel automatique pour écran ≥ 768px */
@media screen and (min-width: 768px) {
    .carousel-track {
      display: flex;
      width: max-content;
      animation: scrollCarousel 60s linear infinite;
    }
  
    .carousel-slide {
      flex: 0 0 100%;
      max-width: 600px;
      display: flex;
      justify-content: center;
    }
  }
  
  /* Scroll horizontal manuel pour mobile */
  @media screen and (max-width: 767px) {
    .carousel {
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
    }
  
    .carousel-track {
      display: flex;
      width: auto;
      animation: none;
      scroll-behavior: smooth;
    }
  
    .carousel-slide {
      flex: 0 0 80%;
      scroll-snap-align: center;
      margin-right: 1rem;
      max-width: none;
      display: flex;
      justify-content: center;
    }
  }

  @media screen and (max-width: 767px) {
  .carousel-slide {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .carousel-slide.visible {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =============== EXPERIENCE =============== */
.experience__container {
    row-gap: 2rem;
}

.experience__card {
    display: grid;
    row-gap: 1rem;
}

.experience__company {
    font-size: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.experience__data {
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: 1.5rem;
}

.experience__profession {
    font-size: var(--h3-font-size);
    margin-bottom: 0.5rem;
}

.experience__date {
    display: block;
    font-size: var(--smaller-font-size);
    margin-bottom: 1rem;
}

.experience__description {
    color: var(--text-color);
}

/* =============== CONTACT =============== */
.contact__group,
.contact__form {
    gap: 1rem;
}

.contact__form {
    position: relative;
}

.contact__input {
    background-color: var(--container-color);
    padding: 1.25rem;
    border-radius: 4rem;
    color: var(--white-color);
}

.contact__input2 {
    background-color: var(--container-color);
    padding: 1.25rem;
    border-radius: 4rem;
    color: var(--white-color);
    margin-top: 2rem;
}

.contact__input::placeholder {
    color: var(--text-color);
}

.contact__input:autofill {
    transition: background-color 6000s, color 6000s;
}

.contact__area {
    height: 10rem;
    border-radius: 1.5rem;
    resize: none;
}

.contact__bouton {
    margin-top: 1.5rem;
    cursor: pointer;
}

.contact__message {
    position: absolute;
    left: 0;
    bottom: 4.5rem;
    font-size: var(--smaller-font-size);
}

/* =============== AUTRE CONTACT =============== */
.new__container {
    height: 100vh;
    margin-inline: 1.5rem;
    display: grid;
    place-items: center;
}

.form {
    width: 100%;
    max-width: 340px;
}

.form__field {
    position: relative;
}

.form__field2 {
    position: relative;
}

.form__input {
    width: 100%;
    border: 3px solid var(--white-color);
    padding: 1.4rem 1.4rem 1.4rem 4.5rem;
    border-radius: 4rem;
    outline: none;
    font-weight: 500;
    transition: border-color 0.4s, box-shadow 0.4s;
    background-color: var(--body-color);
    color: var(--white-color);
}

.form__input::placeholder {
    color: var(--text-color);
}

.form__input2 {
    width: 100%;
    border: 3px solid var(--white-color);
    padding: 1.4rem 1.4rem 1.4rem 4.5rem;
    border-radius: 2.6rem;
    outline: none;
    font-weight: 500;
    transition: border-color 0.4s, box-shadow 0.4s;
    background-color: var(--body-color);
    color: var(--white-color);
}

.form__input2::placeholder {
    color: var(--text-color);
}

.form__label {
    position: absolute;
    left: 1.5rem;
    top: -0.65rem;
    background-color: var(--body-color);
    padding: 2px;
    font-size: var(--small-font-size);
    font-weight: 500;
}

.form__icon {
    height: max-content;
    font-size: 1.5rem;
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    margin-block: auto;
}

.form__field::after {
    content: '';
    position: absolute;
    height: 28px;
    border: 1px solid var(--white-color);
    left: 3.75rem;
    top: 0;
    bottom: 0;
    margin-block: auto;
}

.form__field2::after {
    content: '';
    position: absolute;
    height: 108px;
    border: 1px solid var(--white-color);
    left: 3.75rem;
    top: 0;
    bottom: 0;
    margin-block: auto;
}

/* .form__error {
    position: absolute;
    left: 1.5rem;
    bottom: -1.5rem;
    display: flex;
    align-items: center;
    column-gap: 0.25rem;
    color: var(--error-color);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.form__error i {
    font-size: 1rem;
}

.form__error span {
    font-size: var(--smaller-font-size);
    font-weight: 500;
} */

.flex {
    display: grid;
    gap: 1rem;
}

/* Active focus & valid field color */
.form__input:focus,
.valid .form__input {
    border-color: var(--first-color);
    box-shadow: 0 8px 24px var(--first-color);
}

.form__input2:focus,
.valid .form__input2 {
    border-color: var(--first-color);
    box-shadow: 0 8px 24px var(--first-color);
}

/* Invalid field color */
.invalid .form__input {
    border-color: var(--error-color);
    box-shadow: 0 8px 24px var(--error-color);
}

.invalid .form__error {
    opacity: 1;
}

/* =============== FOOTER =============== */
.footer {
    padding-block: 2rem 8rem;
}

.footer__container {
    row-gap: 2.5rem;
}

.footer__logo {
    color: var(--white-color);
    font: var(--font-regular) var(--biggest-font-size) var(--second-font);
    justify-self: center;
}

.footer__links {
    display: flex;
    justify-content: center;
    column-gap: 2rem;
}

.footer__link {
    color: var(--white-color);
    transition: color 0.4s;
}

.footer__link:hover {
    color: var(--text-color);
}

.footer__social {
    display: flex;
    justify-content: center;
    column-gap: 1.5rem;
}

.footer__social-link {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--first-color);
    color: var(--white-color);
    font-size: 1.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: background-color 0.4s, color 0.4s;
}

.footer__social-link:hover {
    background-color: var(--white-color);
    color: var(--dark-color);
}

.footer__copy {
    display: block;
    margin-top: 4.5rem;
    text-align: center;
    font-size: var(--small-font-size);
    color: var(--text-color);
}

/* =============== SCROLL BAR =============== */
::-webkit-scrollbar {
    width: 0.6rem;
    background-color: hsl(0, 0%, 20%);
    border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb {
    background-color: hsl(0, 0%, 30%);
    border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
    background-color: hsl(0, 0%, 40%);
}

/* =============== SCROLL UP =============== */
.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -50%;
    background-color: hsla(0, 0%, 98%, 0.1);
    display: inline-flex;
    padding: 6px;
    color: var(--white-color);
    font-size: 1.25rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 0.5rem;
    z-index: var(--z-tooltip);
    transition: bottom 0.4s, transform 0.4s;
}

.scrollup:hover {
    transform: translateY(-0.5rem);
}

/* Show Scroll Up */
.show-scroll {
    bottom: 8rem;
}

/* =============== BREAKPOINTS =============== */
/* Pour les petits écrans */
@media screen and (min-width: 320px) {
    .container {
        margin-inline: 1rem;
    }

    .nav {
        padding: 1rem;
    }
}

/* Pour les moyens écrans */
@media screen and (min-width: 540px) {
    .nav {
        width: max-content;
    }
    .nav__list {
        column-gap: 1.25rem;
    }

    .home__container,
    .projects__container,
    .services__container,
    .experience__container,
    .contact__container {
        grid-template-columns: 380px;
        justify-content: center;
    }
}

@media screen and (min-width: 768px) {
    .home__container {
        grid-template-columns: repeat(2, 350px);
        align-items: flex-start;
    }

    .profil {
        height: 100%;
    }

    .projects__container,
    .services__container {
        grid-template-columns: repeat(2, 350px);
    }

    .experience__container {
        grid-template-columns: initial;
    }

    .experience__card {
        grid-template-columns: 320px 380px;
        align-items: center;
    }

    .footer__container,
    .footer__content {
        grid-template-columns: repeat(2, max-content);
        align-items: center;
    }

    .footer__container {
        justify-content: space-between;
    }

    .footer__content {
        column-gap: 4.5rem;
    }

    .show-scroll {
        bottom: 3rem;
    }
}

/* Pour les grands écrans */
@media screen and (min-width: 1200px) {
    .container {
        margin-inline: auto;
    }

    .section {
        padding-block: 3rem 4rem;
    }

    .section__title {
        font-size: var(--h1-font-size);
        margin-bottom: 4rem;
    }

    .home__container {
        grid-template-columns: 280px 560px 280px;
        align-items: stretch;
    }

    .profil {
        grid-column: 2 / 3;
        grid-row: 1 / 3;
        padding: 2rem;
    }

    .profil__img {
        width: 550px;
    }

    .profil__data {
        width: 370px;
        padding: 1.5rem;
        border-radius: 2rem;
    }

    .info {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    .info__name {
        font-size: var(--h2-font-size);
    }

    .about {
        grid-column: 3 / 4;
        grid-row: 1 / 3;
        align-content: center;
    }

    .about__image {
        height: 210px;
    }

    .about__img {
        transform: translateY(-1rem);
        width: 250px;
    }

    .skills {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }

    .skills__title {
        font-size: var(--h3-font-size);
    }

    .projects__container {
        grid-template-columns: repeat(3, 368px);
        gap: 2rem;
    }

    .projects__card {
        padding-bottom: 2rem;
    }

    .services__container {
        grid-template-columns: repeat(3, 368px);
        gap: 2rem;
    }

    .services__card {
        padding-block: 6rem 5rem;
    }

    .services__circle {
        width: 4rem;
        height: 4rem;
        right: -1.5rem;
        top: -1.5rem;
    }

    .experience__container {
        row-gap: 4rem;
    }

    .experience__card {
        grid-template-columns: 350px 510px;
        column-gap: 8rem;
    }

    .experience__company {
        font-size: var(--h1-font-size);
    }

    .experience__data {
        padding: 2rem;
        border-radius: 2rem;
    }

    .contact__container {
        grid-template-columns: 620px;
    }

    .contact__group {
        grid-template-columns: repeat(2, 1fr);
    }

    .flex {
        display: flex;
        justify-content: space-between;
    }

    .contact__area {
        height: 15rem;
    }

    .contact__bouton {
        width: max-content;
        justify-self: center;
    }

    .footer {
        padding-top: 3rem;
    }

    .footer__links {
        column-gap: 3rem;
    }

    .footer__copy {
        margin-top: 7rem;
    }
}

@media screen and (min-width: 1500px){
    .nav {
        width: max-content;
        height: max-content;
        padding: 2rem 1rem;
        left: initial;
        right: 3rem;
        top: 0;
        bottom: 0;
        margin-block: auto;
    }

    .nav__list {
        flex-direction: column;
        row-gap: 1.25rem;
    }

    .footer {
        padding-block: 3rem;
    }

    .scrollup {
        right: 4rem;
    }
    
}

/* =============== BOUTON BLOG =============== */

.bouton__blog {
    position: relative;
    transition: transform 0.4s;
    display: block;
}

.bouton__content__blog {
    position: relative;
    background: linear-gradient(90deg, rgba(255,248,0,1) 0%, rgba(255,211,0,1) 50%, rgba(255,156,0,1) 100%);
    padding: 1.25rem 3rem;
    border-radius: 4rem;
    border: 3px solid var(--dark-color);
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 0.5rem;
    overflow: hidden;
}

.bouton__content__blog2 {
    position: relative;
    background: linear-gradient(90deg, rgba(255,248,0,1) 0%, rgba(255,211,0,1) 50%, rgba(255,156,0,1) 100%);
    padding: 1.25rem 3rem;
    border-radius: 4rem;
    border: 3px solid var(--dark-color);
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 0.5rem;
    overflow: hidden;
    top: -70px;
    z-index: -1;
}

.bouton__text__blog {
    font-weight: 700;
}

.bouton__icon__blog {
    font-size: 1.5rem;
}

.bouton__text__blog,
.bouton__icon__blog {
    position: relative;
    z-index: 2;
}

.i__blog {
    z-index: 2;
}

/* Reflection shapes */
.bouton__reflection-1,
.bouton__reflection-2 {
    width: 8px;
    height: 120px;
    background-color: var(--reflection-color);
    rotate: 30deg;
    position: absolute;
    inset: 0;
    top: 0;
    left: -180%;
    margin: auto;
    transition: left 0.6s cubic-bezier(0.2, 0.5, 0.2, 1.2);
}

.bouton__reflection-1::after {
    content: '';
    width: 26px;
    height: 100%;
    background-color: var(--reflection-color);
    position: absolute;
    top: -1rem;
    left: 1.25rem;

}

.bouton__reflection-2::after {
    content: '';
    width: 40px;
    height: 100%;
    background-color: var(--reflection-color);
    position: absolute;
    top: -1rem;
    left: 0.8rem;

}

/* Moving geometric shapes */
.bouton__blog img {
    position: relative;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s, opacity 0.5s;
}

.bouton__star-1 {
    width: 25px;
    top: -84px;
    left: -16px;
    transform: rotate(-28deg);
    transform: scale(0.1);
}

.bouton__star-2 {
    width: 40px;
    top: -110px;
    left: 204px;
    transform: rotate(28deg);
    transform: scale(0.1);
}

.bouton__appareil-1,
.bouton__appareil-2 {
    width: 15px;
}

.bouton__appareil-1 {
    top: -150px;
    left: 28px;
    transform: rotate(-8deg);
    transform: scale(0.1);
}

.bouton__appareil-2 {
    top: -80px;
    left: 180px;
    transform: scale(0.1);
}

.bouton__monde-1 {
    width: 20px;
    top: -180px;
    right: -162px;
    transform: scale(0.1);
}

.bouton__carte-1 {
    width: 30px;
    left: 15px;
    bottom: 116px;
    transform: rotate(28deg) scale(0.1);
}

/* Gradient shadow */
.bouton__blog:hover .bouton__content__blog2 {
    transform: translate(-0.5rem, 0.5rem);
    transition: transform 0.5s, opacity 0.5s;
}

/* View shadow gradient */
.bouton__blog:hover .bouton__reflection-1 {
    left: 70%;
}

.bouton__blog:hover .bouton__reflection-2 {
    left: -30%;
}

/* Move reflection */
.bouton__blog:hover {
    transform: rotate(-4deg) scale(1.1);
}

.bouton__blog:hover img {
    opacity: 1;
}

.bouton__blog:hover .bouton__star-1 {
    transform: scale(1.1);
    transition-delay: 0.1s;
}

.bouton__blog:hover .bouton__star-2 {
    transform: scale(1.1);
}

.bouton__blog:hover .bouton__appareil-1 {
    transform: translateY(-8px) scale(1.1);
    transition-delay: 0.1s;
}

.bouton__blog:hover .bouton__appareil-2 {
    transform: translateY(-20px, 20px) scale(1.1);
}

.bouton__blog:hover .bouton__carte-1 {
    transform: translateY(7px) rotate(-24px) scale(1.1);
}

.bouton__blog:hover .bouton__monde-1 {
    transform: rotate(-12deg) scale(1.1);
}

/* View geometric shapes */









.section-resource {
    padding-left: 4em;
    padding-right: 4em;
    padding-top: 2em;
    justify-content: center;
    align-items: center;
    height: 30svh;
    /* height: 100svh; */
    /* display: flex; */
    position: relative;
  }
  
  .osmo-icon__link {
    color: currentColor;
    text-decoration: none;
    position: absolute;
  }
  
  .osmo-icon-svg {
    width: 10em;
  }
  
  .dots-wrap {
    width: 100%;
    /* height: 100%; */
    position: relative;
  }
  
  .dots-container {
    grid-column-gap: 2em;
    grid-row-gap: 2em;
    pointer-events: none;
    flex-flow: wrap;
    grid-template-rows: auto;
    grid-template-columns: 1fr;
    grid-auto-columns: 1fr;
    justify-content: center;
    align-items: center;
    display: flex;
    position: absolute;
    inset: 0em;
  }
  
  .dot {
    will-change: transform, background-color;
    transform-origin: center;
    background-color: #245e51;
    border-radius: 50%;
    width: 1em;
    height: 1em;
    position: relative;
    transform: translate(0);
  }

.a-logo-2025 {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 5.3rem;
}

.logo-2025 {
    width: 15%;
}

.invisible {
    display: none;
}