@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --bg-color: #292929;          /* Noir profond */
  --header-footer: hsl(0, 0%, 24%);     /* Bleu gris foncé */
  --accent1: #41d6ed;           /* Violet néon */
  --accent2: #6d8fff;           /* Turquoise néon */
  --accent3: #d66fd4;           /* Gris clair (texte) */
  --border: none;
}

/* === BASE === */

body {
  background-color: var(--bg-color);
  padding: 0;
  margin: 0;
  font-family: Roboto Condensed;
  color: rgb(237, 237, 237);
  animation: fadeIn 2s ease forwards;
}

h1 {
  background-color: var(--accent2);
  width: 20%;
  color: var(--bg-color);
  padding: 0.4em;
  border-radius: 2px 60px 2px;
  text-align: center;
}

header {
  background-color: var(--header-footer);
  padding: 0.5em;
  font-size: 1.2em; 
  color: black;
  
}

a{
  text-decoration: none;
  color:#0B0C10;
}
/* === NAVIGATION === */

ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0;
}

li {
  list-style: none;
  background-color: var(--accent1);
  padding: 0.5em;
  border-radius: 5px;
  border: var(--border);
}

li:hover {
  background-color: var(--accent2);
  transform: scale(0.9);
  transition: all 0.1s ease;
  cursor: pointer;
}

/* === SECTIONS === */

.container {
  display: flex;
  justify-content: space-between;
  padding: 0;
  margin: 0;
}

#apropo {
  width: 40%;
  margin-left: 10%;
  font-size: 1.2em;
  height: 20%;
  display: flex;
  flex-direction: column;
}

img {
  width: 40%;
  height: auto;
  margin-right: 10%;
}

.titre {
  margin-left: 10%;
}

#compétenceART {
  flex-wrap: wrap;
  padding: 2em;
  color: white;
  border-radius: 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.logiciel 
{
  color: white;
  background-color: var(--header-footer);
  padding: 0.5em;
  border-radius: 5px;
  width: 40%;
  height: 20%;
  margin: 2em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(-5px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  
             
}

.logiciel > div {
  background-color: var(--accent1);
  text-decoration: none;
  color: var(--bg-color);
  padding: 0.5em;
  border-radius: 10px;
  width:70%;
  text-align: center;
  margin:1em;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
  
}

.logiciel > div:hover {
  background-color: var(--accent2);
}

.logiciel>h2{
  border-bottom: 2px solid var(--accent3);
}




/* === SPÉCIAUX === */

#home {
  background-color: var(--accent2);
}

#home:hover {
  background-color: var(--accent1);
  transform: scale(1.05);
  transition: all 0.1s ease;
  cursor: pointer;
}



#contact {
  background-color: var(--accent3);
}

/* === ANIMATIONS === */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === RESPONSIVE === */

@media (max-width: 1024px) {
  .container {
    flex-direction: column;
    align-items: center;
  }

  #apropo,
  img {
    width: 70%;
    margin: 1em auto;
  }

  img {
    max-width: 300px;
  }

  .logiciel,
  #audiovisuel {
    width: 90%;
  }

  #audiovliens {
    justify-content: center;
  }

  #audiovliens > div {
    width: 60%;
    margin: 1em auto;
  }

  ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em;
  }
}

@media (max-width: 800px) {

  h1 {
    font-size: 1.5em;
    padding: 0.5em;
  }

  header {
    font-size: 1em;
    text-align: center;
  }

  #apropo {
    font-size: 1em;
  }

  img {
    max-width: 250px;
  }

  



  li {
    font-size: 0.9em;
  }

  ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em;
  }
}

footer {
  background-color:  var(--header-footer);
  color: white;
  padding: 2em 1em;
  font-size: 0.95em;
  margin-top: 2em;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-container div {
  flex: 1 1 250px;
}

.footer-container h3 {
  margin-bottom: 0.5em;
  color: var(--accent2);
}

.footer-container a {
  color: var(--bg-color);
  text-decoration: none;
}

.footer-container a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 2em;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  padding-top: 1em;
  font-size: 0.85em;
}

.footer-li{
  background-color: var(--accent3);
}


/* MES REALISATION */

#categories{
  text-align: center;
}

#categories>h2{
  background-color: var(--accent2);
  width: 20%;
  color: var(--bg-color);
  padding: 0.4em;
  border-radius: 2px 60px 2px;
  margin-left: 1em;
  

}

.category-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5em;
  padding: 1em 0;
  margin-bottom: 5em;
  margin-top: 5em;
  
}

.category-card {
  position: relative;
  flex: 1 1 300px;      /* min width 300px, grow if possible */
  max-width: 260px;
  aspect-ratio: 1 / 1;  /* carré parfait */
  border-radius: 15px;
  color: white;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.category-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0,0,0,0.5);
}

.category-card .overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 1.5em;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  display: flex;
  align-items: flex-end;
  height: 100%;
  justify-content: center;
}

.category-card h3 {
  margin: 0;
  font-size: 2em;
  font-weight: bold;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

.catTitle{
  border-bottom: 2px solid var(--accent3);
}

/* Mets ici tes images de fond */
.category-card.photo {
  background-image: url('uploads/CYGNE.jpg ');
}

.category-card.graphisme {
  background-image: url('uploads/logo1.png');
}

.category-card.illustration {
  background-image: url('uploads/portrait.png');
}

.category-card.video {
  background-image: url('chemin/vers/ton-image-video.jpg');
}

/* Responsive */

/* === RESPONSIVE RÉALISATIONS – 1 carte par ligne avec image visible === */

@media (max-width: 1024px) {
  .category-container {
    flex-direction: column;
    align-items: center;
    gap: 2em;
    padding: 1em;
  }

  .category-card {
    width: 90%;
    max-width: 600px;
    height: 500px; /* ✅ hauteur augmentée */
    background-size: cover;
    background-position: center;
    border-radius: 15px;
  }

  #categories > h2 {
    width: 90%;
    margin: 0 auto 1em;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .category-card {
    width: 95%;
    height: 450px; /* ✅ plus de hauteur même sur mobile */
    max-width: none;
  }

  .category-card h3 {
    font-size: 1.5em;
  }

  #categories > h2 {
    font-size: 1.4em;
  }
}

/* CV */

.cv-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3em; /* espace au-dessus, optionnel */
  text-align: center; /* pour centrer le titre */
}

.cv-thumbnail-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
  max-width: 400px;
  width: 90vw;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  margin-top: 1em; /* un peu d’espace sous le titre */
}

.cv-thumbnail {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.btn-cv {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent1);
  color: var(--bg-color);
  padding: 0.8em 1.5em;
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
  user-select: none;
}

.btn-cv:hover {
  background-color: var(--accent2);
}

/* photo */

.photo-category {
  margin: 4em 0;
  padding: 0 2em;
}

.photo-category h2 {
  background-color: var(--accent2);
  color: var(--bg-color);
  padding: 0.5em 1em;
  border-radius: 20px 60px 20px 60px;
  width: fit-content;
  margin-bottom: 1em;
}

.photo-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2em;
  align-items: flex-start;
}

.photo-gallery {
  flex: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1em;
}

.photo-gallery img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 10px rgba(0,0,0,0.2);
}

.photo-description {
  flex: 1;
  min-width: 250px;
  font-size: 1em;
  line-height: 1.5;
}

.photo-block.reverse {
  flex-direction: row-reverse;
}

/* responsive photo */

@media (max-width: 768px) {
  .photo-block {
    flex-direction: column !important; /* annule alternance gauche/droite */
    align-items: center;
    gap: 1em;
  }

  .photo-gallery {
    flex-wrap: wrap;
    justify-content: center;
  }

  .photo-gallery img {
    width: 45%;
    margin: 0.5em;
  }

  .photo-description {
    text-align: center;
    max-width: 90%;
    font-size: 1.1em;
  }

  .photo-block h2 {
    font-size: 1.5em;
  }
}

@media (max-width: 480px) {
  .photo-gallery img {
    width: 90%;
  }

  .photo-description {
    font-size: 1.2em;
  }

  .photo-block h2 {
    font-size: 1.7em;
  }
}


/* graphisme */


.graphisme-container {
  display: flex;
  flex-direction: column;
  gap: 4em;
  padding: 2em 5%;
}

.project-block {
  display: flex;
  align-items: center;
  gap: 2em;
}

.project-block.reverse {
  flex-direction: row-reverse;
}

.project-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  width: 400px;
  height: auto;
}

.project-description {
  flex: 1;
  color: white;
  font-size: 1.2em;
}


/* responsive graphisme  */
@media (max-width: 768px) {
  .project-block,
  .project-block.reverse {
    flex-direction: column !important;
    text-align: center;
  }

  .project-image img {
    width: 90%;
  }

  .project-description {
    font-size: 1.1em;
    width: 90%;
    margin: 0 auto;
  }

  .project-description h2 {
    font-size: 1.4em;
  }
}

@media (max-width: 480px) {
  .project-description {
    font-size: 1.3em;
  }

  .project-description h2 {
    font-size: 1.6em;
  }
}

/* contact */

.contact-form {
  max-width: 600px;
  margin: 4em auto;
  padding: 2em;
  background-color: var(--header-footer);
  border-radius: 10px;
  color: white;
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 1em;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8em;
  border: none;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1em;
}

.contact-form button {
  background-color: var(--accent1);
  border: none;
  padding: 0.8em;
  color: var(--bg-color);
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--accent2);
}






