/* ==========================================================
   POLICES GOOGLE FONTS
 
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Montserrat:wght@300;400;500;600&display=swap" rel="stylesheet">
   ========================================================== */

/* ==========================================================
   1. VARIABLES DE COULEURS
   
   ========================================================== */
:root {
  --rouge: #A3132B;
  --rouge-hover: #86102400;
  --fond-clair: #F8F6F3;
  --fond-blanc: #FFFFFF;
  --fond-profil: #EFEAE3;
  --texte-fonce: #1A1A1A;
  --texte-gris: #6B6560;
  --bordure: #E4DFD8;
}

/* ==========================================================
   2. RESET DE BASE
   ========================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Work sans', sans-serif;
  color: var(--texte-fonce);
  background-color: var(--fond-clair);
  line-height: 1.7;
  
}


svg{
  width:100%;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
}



a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ==========================================================
   3. NAVBAR
   ========================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 5px 40px;
  background-color: rgba(255, 255, 255, 0.55);   
  backdrop-filter: blur(12px);                     
  -webkit-backdrop-filter: blur(12px);              
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar nav ul {
  display: flex;
  justify-content: flex-end;
  gap: 32px;
}

.navbar nav a {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: none;
  transition: color 0.2s ease;
}

.navbar nav a:hover {
  color: var(--rouge);
}

/* ==========================================================
   4. HERO
   ========================================================== */
.hero {
  position: relative;
   overflow: hidden;
  text-align: center;
  padding: 80px 20px 60px;
  background-image: url(../image/fond-hero.png); 
  min-height: calc(100vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

}

.hero h1 {
  font-size: 3.6rem;
  letter-spacing: 0.18em;
  padding-bottom: 14px;
}

.title-animate span {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  animation: letterIn 0.45s ease forwards;
}

@keyframes letterIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.title-animate span:nth-child(1) { animation-delay: 0.05s; }
.title-animate span:nth-child(2) { animation-delay: 0.13s; }
.title-animate span:nth-child(3) { animation-delay: 0.21s; }
.title-animate span:nth-child(4) { animation-delay: 0.29s; }
.title-animate span:nth-child(5) { animation-delay: 0.37s; }
.title-animate span:nth-child(6) { animation-delay: 0.45s; }
.title-animate span:nth-child(7) { animation-delay: 0.53s; }
.title-animate span:nth-child(8) { animation-delay: 0.61s; }
.title-animate span:nth-child(9) { animation-delay: 0.69s; }

.hero > p {
  color: var(--texte-gris);
  font-size: 0.95rem;
  max-width: 480px;
  margin-bottom: 36px;
}

.cta-group {
  display: flex;
   flex-direction: column;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 13px 30px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background-color: var(--rouge);
  color: #fff;
  border: 1px solid var(--rouge);
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-secondary {
  background-color: transparent;
  color: var(--rouge);
  border: 1px solid var(--rouge);
}

.btn-secondary:hover {
  background-color: var(--rouge);
  color: #fff;
}


.hero-signature {
  position: absolute;
  bottom: 28px;
  left: 40px;
  text-align: left;
  font-size: 0.72rem;
  color: var(--texte-gris);
  line-height: 1.5;
}

.hero-signature p:first-child {
 font-weight: 400;           
  color: var(--texte-gris);  
  text-transform: none; 
  letter-spacing: 0.05em;
}

/* ==========================================================
   5. SECTION PROJETS
   ========================================================== */
.projets {
  padding: 80px 40px;
  max-width: 1380px;
  margin: 0 auto;
}

.projets-intro {
  text-align: center;
  color: var(--texte-gris);
  font-size: 0.9rem;
  margin-bottom: 50px;
}

.browser-frame {
  max-width: 1300px;
  margin: 0 auto 24px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25);
  border: 0.15px solid #1A1A1A;
  background-color: #fff;
}

.browser-barre {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 16px;
  background-color: #f4f2ef;
  border-bottom: 1px solid var(--bordure);
}

.browser-url {
  font-size: 0.75rem;
  color: var(--texte-gris);
  background-color: #fff;
  padding: 4px 20px;
  border-radius: 20px;
  border: 1px solid var(--bordure);
}

.project-wrapper {
  position: relative;
  width: 100%;
  height: 750px;
  overflow: hidden;
}

.project-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 1450px;
  height: 900px;
  border: none;
  overflow: hidden;   
  transform: scale(0.903);
  transform-origin: top left;
  pointer-events: none;
}

.click-layer {
  position: absolute;
  inset: 0;
  display: block;
}

.projet-description {
  background-color: var(--fond-blanc);
  padding: 40px 40px 60px;
  margin-bottom: 70px;
  border-bottom: 1px solid var(--bordure);
}

.projet-description:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.projet-description h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.projet-description p {
  color: var(--texte-gris);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.projet-description strong {
  color: var(--rouge);
  font-weight: 600;
}

.projet-description ul {
  margin: 8px 0 18px 4px;
}

.projet-description ul li {
  position: relative;
  padding-left: 18px;
  color: var(--texte-gris);
  font-size: 0.88rem;
  margin-bottom: 8px;
}


.projet-description ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--rouge);
}


.projet-description ul ul {
  margin-top: 8px;
}

/* ==========================================================
   6. SECTION PROFIL / À PROPOS
   ========================================================== */
.profil {
  background-color: var(--fond-profil);
  padding: 80px 40px;
}

.profil-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: flex-start;
  flex-wrap: wrap;
}


.profil-colonne {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}


.profil-photo {
  width: 100%;
  aspect-ratio: 4 / 5;     
  border-radius: 6px;
  overflow: hidden;
}

.profil-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;     
}

.profil-skills h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.profil-skills ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profil-skills ul li {
  background-color: #fff;
  border: 1px solid var(--bordure);
  padding: 6px 14px;       
  font-size: 0.65rem;     
  border-radius: 20px;
  color: var(--texte-fonce);
}
.profil-content {
  flex: 1 1 480px;
}

.profil-content p {
  color: var(--texte-gris);
  font-size: 0.88rem;     
  line-height: 1.7;         
  margin-bottom: 18px;      
}

    
/* ==========================================================
   7. SECTION CONTACT
   ========================================================== */
.contact {
  padding: 90px 40px;
  text-align: left;            
}

.contact-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.contact h2 {
  font-size: 2rem;
  color: var(--rouge);
  font-weight: 500;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bordure);
}

.contact > .contact-wrapper > p {
  color: var(--texte-fonce);   
  font-size: 0.95rem;
  margin-bottom: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--bordure);  
}

.contact-info {
  display: flex;
  flex-direction: column;     
  gap: 0;
  padding-top: 0;
  border-top: none;            
  margin-bottom: 40px;
}

.contact-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--bordure); 
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item h3 {
  font-size: 0.85rem;
  text-transform: none;       
  letter-spacing: normal;
  color: var(--rouge);
  margin-bottom: 6px;
  font-family: 'Cormorant Garamond', serif;  
  font-weight: 600;
}

.contact-item p {
  font-size: 0.95rem;
  color: var(--texte-fonce);
}


.contact-button {
  display: block;
  width: fit-content;
  margin: 0 auto;
  background-color: var(--rouge);
  color: #fff;
  padding: 14px 36px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: opacity 0.2s ease;
}

.contact-button:hover {
  opacity: 0.85;
}
/* ==========================================================
   8. FOOTER
   ========================================================== */
.footer {
  text-align: center;
  padding: 36px 20px;
  border-top: 1px solid var(--bordure);
}

.footer-wrapper p {
  font-size: 0.8rem;
  color: var(--texte-gris);
  margin-bottom: 4px;
}

.footer-wrapper p:first-child {
  color: var(--rouge);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.back-to-top {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--texte-fonce);
  border-bottom: 1px solid var(--texte-fonce);
  padding-bottom: 2px;
}

.back-to-top:hover {
  color: var(--rouge);
  border-bottom-color: var(--rouge);
}

/* ==========================================================
   9. RESPONSIVE (mobile)
   ========================================================== */
@media (max-width: 700px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .navbar nav ul {
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
  }

  .hero-signature {
    position: static;
    margin-top: 30px;
    text-align: center;
  }

  .project-wrapper {
    height: 260px;
  }
.project-wrapper {
  height: 220px;   
}

.project-preview {
  transform: scale(0.24); 
}

  .profil-photo {
    flex: 0 0 auto;
    width: 160px;
  }

  .contact-info {
    flex-direction: column;
    gap: 24px;
  }
}
