/* ===================== */
/* ACCUEIL – DESKTOP */
/* ===================== */

.main {
  max-width: 1500px;
  margin: 0 auto;
  padding: 5px 40px;
  color: white;
  font-family: 'Poppins', sans-serif;
}

/* ===================== */
/* PRESENTATION */
/* ===================== */

.presentation {
  display: grid;
  grid-template-columns: 220px 4px 1fr;
  gap: 40px;
  align-items: start;
}

.presentation-photo {
  width: 220px;
  height: 300px;
  border: 2px solid white;
  border-radius: 12px;
}

.corentin-photo {
  display: block;
  width: 200px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 18px;
}

.presentation-bar {
  width: 4px;
  background: white;
  height: 100%;
  border-radius: 2px;
}

.presentation-text h3 {
  margin: 0 0 10px 0;
  font-size: 24px;
  font-weight: 600;
}

.presentation-text p {
  margin: 6px 0;
  font-size: 16px;
  line-height: 1.4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 6px;
}

/* ===================== */
/* HERO SECTION */
/* ===================== */

.hero {
  position: relative;
  height: 85vh;
  margin-bottom: 80px;

  width: 100vw;
  margin-left: calc(50% - 50vw);

background: url("../img/09012025-DSC00741.jpg") center center / cover no-repeat;
  
  display: flex;
  align-items: center;
  justify-content: center; /* centre horizontal */
  text-align: center;
  color: white;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  padding: 0 100px;

  display: flex;
  flex-direction: column;
}


html {
  scroll-behavior: smooth;
}

/* assombrit l'image */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero h1 {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 60px;

  align-self: flex-end;   
  text-align: right;  
  margin-right: 0; 
}


.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  margin-top: 20px;
}


.arrow {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg);
  margin-top: 10px;
  transition: opacity 0.3s ease;
}

.arrow:hover {
  opacity: 0.7;
}

html {
  scroll-behavior: smooth;
}

.scroll-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 60px;
  height: 60px;

  cursor: pointer;
  text-decoration: none;
}

/* ===================== */
/* SOCIAL SIDEBAR */
/* ===================== */

.social-sidebar {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;

  z-index: 3;
}


.social-sidebar a {
  position: relative;
  z-index: 1;
}

.social-sidebar a img {
  width: 65px;
  height: auto;
  background: rgba(0,0,0,0.5);
  padding: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 10px;
}

.social-sidebar a img:hover {
  transform: scale(1.15);
  opacity: 0.8;
}

.social-sidebar::before {
  width: 3px;
  opacity: 0.8;
}
/* ===================== */
/* TITRES DE SECTIONS */
/* ===================== */

.section-title {
  text-align: center;
  font-weight: 600;
  font-size: 24px;
  margin: 10px 0;
}

.section-title-comp {
  text-align: center;
  font-weight: 600;
  font-size: 24px;
  margin: 10px 0 50px;
}

.section-line {
  width: 100%;
  height: 2px;
  background: white;
  margin: 10px 0;
}

/* ===================== */
/* PROJETS DÉPLIABLES */
/* ===================== */

.project {
  margin-bottom: 10px;
}

.project-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
}

.project.open .project-content {
  max-height: 10000px; /* très grand pour éviter toute coupure */
}
.project-content {
  will-change: max-height;
}
/* Rotation du + */
.project.open .plus {
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.link-hover {
  color: white;
  text-decoration: none;
  position: relative;
  transition: opacity 0.3s ease;
}

/* Ligne animée */
.link-hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: white;
  transition: width 0.3s ease;
}

.link-hover:hover::after {
  width: 100%;
}

/* ===================== */
/* PROJETS */
/* ===================== */

.projects {
  margin-bottom: 60px;
}

.project-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  /* pousse le + complètement à droite */
  align-items: center;

  padding: 16px 0;
  color: white;

  background: none;
  border: none;
  cursor: pointer;
}


.project-row span {
  font-size: 18px;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
}

.project-row .plus {
  font-size: 22px;
  font-weight: 600;
}

/* CARTE PROJET */
.project-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;

  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  padding: 30px;
  margin: 20px 0 40px;
}

/* IMAGE */
.project-image img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

/* TEXTE */
.project-text h4 {
  font-size: 22px;
  margin-bottom: 14px;
}

.project-text p {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 14px;
}

@media (max-width: 768px) {

  .project-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .project-text h4 {
    font-size: 18px;
  }

  .project-text p {
    font-size: 14px;
  }
}


/* ===================== */
/* LOGICIELS */
/* ===================== */

.software {
  margin-bottom: 60px;
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 40px;
}

.software-item {
  text-align: center;
}

.software-item h4 {
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 18px;
  color: white;
}

/* Grille d’icônes */
.software-icons {
  display: grid;
  grid-template-columns: repeat(3, minmax(65px, 1fr));
  gap: 18px;
  /* ⬅️ avant : 24px */
  justify-items: center;
  justify-content: center;
  max-width: 240px;
  /* ⬅️ clé du resserrement */
  margin: 0 auto;
}


/* Icône */
.software-icons .square {
  width: 65px;
  height: 65px;
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

/* Image */
.software-icons .square img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Icône seule parfaitement centrée */
.software-icons .square.large {
  grid-column: 1 / -1;
  justify-self: center;
}


/* ===================== */
/* HARD SKILLS */
/* ===================== */

.hard-skills {
  margin-bottom: 80px;
}

.hard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
  margin-top: 40px;
}

.hard-item {
  text-align: center;
}

.hard-item h4 {
  margin-bottom: 14px;
  font-weight: 500;
  font-size: 18px;
  color: white;
}

.hard-item .square {
  width: 65px;
  height: auto;
  border-radius: 8px;
  margin: 0 auto 14px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hard-item p {
  font-size: 14px;
  color: white;
}

.hard-item .square img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;

}

/* ===================== =====================  =====================  */
/* RESET IMPORTANT */
/* ===================== */

* {
  box-sizing: border-box;
}

button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* ===================== */
/* HEADER DESKTOP */
/* ===================== */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  padding: 20px 40px;
}

.logo img {
  height: 150px;
}

/* CENTRE */
.center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.center h1 {
  font-family: 'Lovelo', Arial, sans-serif;
  font-size: 48px;
  margin: 0 0 12px 0;
}

.center .line {
  width: 100%;
  max-width: 98%;
  height: 2px;
  background: white;
}

.center h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  margin: 12px 0 0 0;
}

/* ===================== */
/* ACTIONS DESKTOP */
/* ===================== */

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 2px solid white;
  padding: 5px 25px;
  border-radius: 10px;
}

.btn {
  text-decoration: none;
  color: white;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

/* ===================== */
/* CV */
/* ===================== */

.image-cv {
  border: 2px solid white;
  border-radius: 18px;
  display: inline-block;
  margin: 60px auto;
  padding: 10px;
  max-width: 100%;
}

.cv-image {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 14px;
}

.btn-cv {
  display: inline-block;
  margin: 20px auto;
  padding: 12px 25px;
  border: 2px solid white;
  border-radius: 18px;

  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  text-align: center;

  background-color: transparent;
  cursor: pointer;

  transition:
    background-color 0.35s ease,
    color 0.35s ease,
    transform 0.25s ease,
    box-shadow 0.35s ease;
}

.btn-cv-container {
  text-align: center;
}

.btn-cv:hover {
  background-color: white;
  color: #219239;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.btn-cv:active {
  transform: translateY(0);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .image-cv {
    margin: 30px auto;
    padding: 8px;
    max-width: 90%;
  }

  .cv-image {
    max-width: 100%;
  }

  .btn-cv {
    font-size: 20px;
    padding: 16px 26px;
    margin: 40px auto;
  }
}

/* ===================== */
/* CONTACT */
/* ===================== */

.contact {
  color: white;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  max-width: 330px;
  margin: 0 auto;
  border: 2px solid white;
  border-radius: 10px;
  padding: 30px;
}

.titre-contact {
  font-weight: 600;
  font-size: 18px;
  margin-top: 20px;
  margin-bottom: 6px;
}

.texte-contact {
  font-weight: 400;
  font-size: 16px;
  margin: 0;
  color: white;
  text-decoration: none;
}

/* Neutraliser complètement l'effet lien */
.texte-contact:hover,
.texte-contact:visited,
.texte-contact:active,
.texte-contact:focus {
  color: white;
  text-decoration: none;
}

/* ===================== */
/* BURGER MOBILE */
/* ===================== */

.mobile-menu {
  display: none;
  border: 2px solid white;
  z-index: 99999;
}

/* SVG LINES */
.burger svg {
  stroke: white;
  stroke-width: 2;
  fill: none;
}

@media (max-width: 768px) {
  .mobile-menu {
    display: flex !important;
  }
}


/* ===================== */
/* MOBILE */
/* ===================== */

@media (max-width: 768px) {

  /* HEADER MOBILE */
  .site-header {
    flex-direction: column;
    gap: 20px;
    padding: 30px 20px;
  }

  .logo img {
    height: 120px;
  }

  .center h1 {
    font-size: 40px;
  }

  .center .line {
    max-width: 90%;
  }

  /* CACHER ACTIONS */
  .actions {
    display: none;
  }

  /* AFFICHER BURGER */
  .mobile-menu {
    display: flex;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #219239;
    border-radius: 20px;
    padding: 14px 18px;
    z-index: 1000;
  }

  .burger {
    width: 44px;
    height: 44px;
  }

  .contact {
    margin-bottom: 50px;
  }
}

/* ===================== */
/* BODY / FOOTER */
/* ===================== */

body {
  margin: 0;
  min-height: 100vh;

  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;

  /* BACKGROUND : dégradé + points */
  background:
    radial-gradient(circle,
      rgba(255, 255, 255, 0.22) 1px,
      transparent 1px),
    linear-gradient(to bottom,
      #2fa84f 0%,
      #219239 35%,
      #0e3f1c 70%,
      #000000 100%);

  background-size:
    14px 14px,
    /* grille de points */
    100% 100%;

  background-repeat: repeat, no-repeat;
  background-attachment: scroll;
}

footer>div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer p {
  margin: 5px;
}


footer {
  background: black;
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 40px;
  text-align: center;
  margin-top: auto;
}

footer>div {
  flex: 1;
}

footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  padding: 60px 40px;
  gap: 40px;
}

/* Chaque bloc en colonne */
footer>div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Supprime couleur violette */
footer a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.copy-item {
  justify-content: center;
}

.reseaux a {
  display: block;
}


@media (max-width: 768px) {

  footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

}



/* Même couleur si déjà visité */
footer a:visited {
  color: white;
}

/* Hover propre */
footer a:hover {
  opacity: 0.7;
}


@media (max-width: 768px) {
  footer {
    flex-direction: column;
    align-items: center;
  }
}


/* ===================== */
/* PRESENTATION MOBILE */
/* ===================== */
@media (max-width: 768px) {
  .presentation {
    display: block;
    margin-bottom: 30px;
  }

  /* Texte présentation */
  .presentation-text {
    text-align: left;
    margin-bottom: 30px;
  }

  .presentation-text h3 {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .presentation-text p {
    font-size: 14px;
    line-height: 1.4;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 6px;
    margin: 6px 0;
  }

  /* ===================== */
  /* PHOTO + DOMAINES */
  /* ===================== */

  .presentation-photo {
    width: 140px;
    height: 190px;
    border-radius: 14px;
  }

  .corentin-photo {
    width: 120px;
    padding: 6px;
    border-radius: 12px;
  }

  /* Conteneur côte à côte */
  .presentation-domains {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    align-items: center;
    margin-top: 10px;
  }

  /* Texte domaines */
  .presentation-domains-text {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
  }

  /* Ligne inutile en mobile */
  .section-line {
    display: none;
  }
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: grid;
  }
}


/* ===================== */
/* RESPONSIVE – LOGICIELS & HARD SKILLS */
/* ===================== */

@media (max-width: 768px) {

  /* LOGICIELS */
  .software-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .software-item h4 {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .software-icons {
    grid-template-columns: repeat(3, 65px);
    gap: 20px;
  }

  /* HARD SKILLS */
  .hard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .hard-item h4 {
    font-size: 16px;
  }

  .hard-item p {
    font-size: 13px;
  }
}

/* ===================== */
/* MAIN – MOBILE FIX */
/* ===================== */

@media (max-width: 768px) {
  .main {
    padding: 30px 16px;
  }
}


/* ===================== */
/* TITRES + LIGNES – MOBILE */
/* ===================== */

@media (max-width: 768px) {

  .section-title {
    font-size: 20px;
    margin: 6px 0;
    color: white;
  }

  .section-line {
    display: block;
    width: 60%;
    height: 1.5px;
    margin: 8px auto;
    opacity: 0.85;
  }
}

.section-line {
  border-radius: 2px;
}


/* ===================== */
/* SECTION LINE – MOBILE FIX */
/* ===================== */

@media (max-width: 768px) {

  .section-line {
    display: block;
    width: 100%;
    height: 2px;
    /* épaisseur UNIQUE */
    background-color: white;

    margin: 10px auto 14px;
    /* centrage parfait */
    opacity: 0.9;

    border-radius: 0;
    /* évite variations visuelles */
  }

}

/* ===================== */
/* MENU MOBILE FULLSCREEN */
/* ===================== */

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;

  width: 100vw;
  height: 100vh;

  background-color: #219239;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;

  z-index: 998;
  border: 2.5px solid white;
  border-radius: 20px;


}


.mobile-nav a {
  color: white;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 600;

}


/* MENU OUVERT */
.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;

}


/* MENU OUVERT */
.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0%) scale(0.90);
}


/* BURGER ICON */
.burger line {
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
}

.mobile-menu {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
}


/* ===================== */
/* COPY ANIMATION */
/* ===================== */

.copy-item {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.3s ease;
}

.copy-item:hover {
  opacity: 0.7;
}

/* Double carré */
.copy-icon {
  width: 16px;
  height: 16px;
  position: relative;
}

.copy-icon::before,
.copy-icon::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.copy-icon::before {
  top: 2px;
  left: 2px;
}

.copy-icon::after {
  top: -2px;
  left: -2px;
}

/* Animation au clic */
.copy-item.copied .copy-icon::after {
  transform: translate(4px, 4px);
  opacity: 0.5;
}

.copy-item.copied {
  color: #00ffae;
}

@media screen and (max-width: 768px) {
  .hero {
    display: none;
  }
}


.mobile-nav {
  display: none;
  flex-direction: column;
}

.mobile-nav.open {
  display: flex;
}

.burger-btn {
  display: none; /* caché sur desktop */
}

@media (max-width: 768px) {
  .burger-btn {
    display: block;
  }

  .site-header .actions {
    display: none; /* cache les boutons desktop */
  }
}