

:root {
  --lime:          #c8f135;
  --noir:          #1a1a1a;
  --blanc:         #f9f9f9;
  --decalage:      6px;
  --rayon:         22px;
  --police-titre:  'Bebas Neue', sans-serif;
  --police-corps:  'Space Grotesk', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin:     0;
  padding:    0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:      var(--police-corps);
  background-color: var(--blanc);
  color:            var(--noir);
  overflow-x:       hidden;
}

.sr-only {
  position: absolute;
  width:    1px;
  height:   1px;
  padding:  0;
  margin:   -1px;
  overflow: hidden;
  clip:     rect(0, 0, 0, 0);
  white-space: nowrap;
  border:   0;
}

.fond-grille {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
}

header {
  position:     sticky;
  top:          0;
  z-index:      100;
  background:   rgba(249, 249, 249, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

nav {
  display:         flex;
  justify-content: flex-end;
  align-items:     center;
  padding:         20px 60px;
}

nav ul {
  list-style: none;
  display:    flex;
  gap:        48px;
}

nav ul li a {
  text-decoration: none;
  color:           var(--noir);
  font-size:       1rem;
  font-weight:     700;
  letter-spacing:  0.02em;
  position:        relative;
  transition:      color 0.2s;
}

nav ul li a::after {
  content:    '';
  position:   absolute;
  bottom:     -4px;
  left:       0;
  width:      0;
  height:     2px;
  background: var(--lime);
  transition: width 0.25s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

#accueil {
  min-height:      90vh;
  display:         flex;
  flex-direction:  column;
  justify-content: center;
  padding:         80px 60px 60px;
}

.hero-nom {
  font-size:      1.5rem;
  font-weight:    700;
  letter-spacing: 0.04em;
  margin-bottom:  8px;
  color:          var(--noir);
}

.hero-titre-img {
  display:    block;
  max-width:  100%;
  width:      760px;
  height:     auto;
  object-fit: contain;
}

.hero-badge {
  display:        inline-block;
  background:     var(--lime);
  color:          var(--noir);
  font-size:      1.6rem;
  font-weight:    700;
  padding:        6px 18px;
  margin-top:     20px;
  letter-spacing: 0.01em;
}

#apropos {
  background:      var(--lime);
  padding:         80px 60px;
  display:         flex;
  justify-content: center;
}

.apropos-contenu {
  display:               grid;
  grid-template-columns: auto auto;
  gap:                   40px;
  align-items:           center;
}

.apropos-texte h1 {
  font-size:      3rem;
  font-weight:    700;
  margin-bottom:  28px;
  letter-spacing: -0.01em;
}

.apropos-texte p {
  font-size:  0.95rem;
  line-height: 1.75;
  font-weight: 500;
  max-width:   420px;
}

.apropos-carte {
  position:      relative;
  border-radius: var(--rayon);
  border:        3px solid var(--noir);
  background:    var(--lime);
  box-shadow:    var(--decalage) var(--decalage) 0 var(--noir);
  overflow:      hidden;
  aspect-ratio:  1 / 1;
  max-width:     320px;
  justify-self:  end;
}

.apropos-carte img {
  width:       100%;
  height:      100%;
  object-fit:  cover;
  display:     block;
}

#projets {
  padding: 80px 60px;
  display: flex;
  justify-content: center;
}

.grille-projets {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   40px;
  max-width:             1200px;
  width:                 100%;
}

.carte-projet {
  position:      relative;
  border-radius: var(--rayon);
  border:        3px solid var(--noir);
  background:    var(--lime);
  box-shadow:    var(--decalage) var(--decalage) 0 var(--noir);
  overflow:      hidden;
  aspect-ratio:  4 / 3;
  transition:    transform 0.2s ease, box-shadow 0.2s ease;
  cursor:        pointer;
}

.carte-projet:hover {
  transform:  translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--noir);
}

.carte-projet img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
}

#contact {
  background:      var(--lime);
  padding:         80px 60px;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  text-align:      left;
}

#contact h2 {
  font-size:      3rem;
  font-weight:    700;
  margin-bottom:  36px;
  letter-spacing: -0.01em;
}

.contact-carte {
  background:    var(--lime);
  border:        3px solid var(--noir);
  border-radius: var(--rayon);
  box-shadow:    var(--decalage) var(--decalage) 0 var(--noir);
  padding:       36px 32px;
  max-width:     440px;
}

.champ-formulaire {
  margin-bottom: 18px;
}

.champ-formulaire label {
  display:        block;
  font-size:      0.85rem;
  font-weight:    700;
  margin-bottom:  6px;
  letter-spacing: 0.02em;
}

.champ-formulaire input,
.champ-formulaire textarea {
  width:       100%;
  border:      2px solid var(--noir);
  border-radius: 8px;
  background:  transparent;
  padding:     8px 12px;
  font-family: var(--police-corps);
  font-size:   0.9rem;
  outline:     none;
  transition:  box-shadow 0.2s;
  color:       var(--noir);
}

.champ-formulaire input:focus,
.champ-formulaire textarea:focus {
  box-shadow: 3px 3px 0 var(--noir);
}

.champ-formulaire textarea {
  height:  110px;
  resize:  none;
}

.bouton-envoyer {
  display:      block;
  width:        100%;
  background:   var(--noir);
  color:        var(--lime);
  border:       none;
  border-radius: 10px;
  padding:      14px;
  font-family:  var(--police-corps);
  font-size:    1rem;
  font-weight:  700;
  letter-spacing: 0.08em;
  cursor:       pointer;
  transition:   opacity 0.2s, transform 0.15s;
  margin-top:   8px;
}

.bouton-envoyer:hover {
  opacity:   0.85;
  transform: translateY(-2px);
}

.bouton-envoyer:active {
  transform: translateY(0);
}

footer {
  background:  var(--noir);
  color:       var(--blanc);
  text-align:  center;
  padding:     24px 60px;
  font-size:   0.85rem;
  display:     flex;
  gap:         16px;
  justify-content: center;
  flex-wrap:   wrap;
}

footer a {
  color:           var(--lime);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

#toast {
  position:   fixed;
  bottom:     32px;
  right:      32px;
  background: var(--noir);
  color:      var(--lime);
  padding:    14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size:  0.95rem;
  opacity:    0;
  pointer-events: none;
  transform:  translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
  z-index:    999;
}

#toast.visible {
  opacity:   1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  nav {
    padding: 16px 24px;
  }

  nav ul {
    gap: 28px;
  }

  #accueil {
    padding: 60px 24px 40px;
  }

  .hero-badge {
    font-size: 1.1rem;
  }

  #apropos {
    padding: 60px 24px;
  }

  .apropos-contenu {
    grid-template-columns: 1fr;
    gap:                   36px;
  }

  .apropos-carte {
    justify-self: start;
    max-width:    100%;
  }

  #projets {
    padding: 60px 24px;
    display: flex;
    justify-content: center;
  }

  .grille-projets {
    grid-template-columns: 1fr 1fr;
    gap:                   28px;
  }

  #contact {
    padding: 60px 24px;
  }

  footer {
    padding: 20px 24px;
  }
}

@media (max-width: 480px) {
  .grille-projets {
    grid-template-columns: 1fr;
  }
}
