/* Custom Stylesheet */
/**
 * Use this file to override Materialize files so you can update
 * the core Materialize files in the future
 *
 * Made By MaterializeCSS.com
 */

nav ul a,
nav .brand-logo {
  color: #444;
}

p {
  line-height: 2rem;
}

.sidenav-trigger {
  color: #26a69a;
}

.parallax-container {
  min-height: 380px;
  line-height: 0;
  height: auto;
  color: rgba(255, 255, 255, .9);
}

.parallax-container .section {
  width: 100%;
}

@media only screen and (max-width : 992px) {
  .parallax-container .section {
    position: absolute;
    top: 40%;
  }

  #index-banner .section {
    top: 10%;
  }
}

@media only screen and (max-width : 600px) {
  #index-banner .section {
    top: 0;
  }
}

.icon-block {
  padding: 0 15px;
}

.icon-block .material-icons {
  font-size: inherit;
}

footer.page-footer {
  margin: 0;
}

.crane {
  padding-left: 60%;
  padding-top: 8%;
}

h1 {
  margin-top: 8%;
}

.section {
  padding-left: 10%;
}

.section-title {
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 25px;
  color: #222;

}

.icon-block p {
  font-weight: 300;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #444;
}

.icon-block ul {
  margin-top: 25px;
}

.icon-block li {
  margin-bottom: 10px;
  font-weight: 400;
}

.icon-block li b {
  font-weight: 600;
}

.icon-block {
  padding: 20px 10px;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  /* assombrit l’image */
  top: 0;
  left: 0;
  z-index: 1;
  background: linear-gradient(rgba(0, 0, 0, 0.6),
      rgba(0, 0, 0, 0.4));
}

.parallax-container {
  position: relative;
}

.parallax-container .section {
  position: relative;
  z-index: 2;
  /* met le texte au-dessus */
}

.parallax-container h5 {
  color: white;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 3rem;
}


.parallax-container h4 {
  color: white;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 2rem;
}

html {
  scroll-behavior: smooth;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.card-image:hover {
  background-color: #222;
}

.card {
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

body {
  font-family: 'Poppins', sans-serif;
}

.logo-img {
  height: 60px;
  margin-top: 2px;
}

.boutons_navbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  width: 30px;
  height: 30px;
  transition: transform 0.25s ease, color 0.25s ease;
  position: relative;
  top: -5px;
}

.boutons_navbar li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.boutons_navbar li a:hover {
  background-color: rgba(0, 0, 0, 0.08);
  transform: scale(1.1);
}

.btn_langue {
  transition: transform 0.25s ease, color 0.25s ease;
  position: relative;
  top: -5px;
}

#index-banner h1 {
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 3.2rem;
}

nav {
  background-color: rgba(20, 22, 30, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-icon {
  width: 30px;
  height: 30px;
  color: #000000;
  transition: transform 0.25s ease, color 0.25s ease;
}

.boutons_navbar li a:hover .nav-icon {
  color: #26a69a;
  transform: scale(1.2);
}

#index-banner .btn-large {
  border-radius: 40px;
  padding: 0 40px;
  font-weight: 600;
}


.card {
  background-color: #1a1d26;
  border-radius: 18px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card p {
  color: #d0d0d0;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}


.card-image img {
  transition: transform 0.4s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.btn-large {
  background: linear-gradient(90deg, #26a69a, #4db6ac );
  box-shadow: 0 0 15px rgba(0, 198, 255, 0.4);
}

.btn-large:hover {
  box-shadow: 0 0 25px rgba(0, 198, 255, 0.8);
}

    /* Alignement des cartes "Projets" : grille à 3 colonnes, même hauteur,
       boutons alignés en bas, et la 4e carte se place sous la 1ère */
#projects-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 600px) {
  #projects-row {
    grid-template-columns: 1fr;
  }
}
#projects-row > .col {
  width: 100%;
  margin: 0;
}
#projects-row .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
#projects-row .card-image {
  height: 200px;
  overflow: hidden;
  background-color: #1a1d26;
  display: flex;
  align-items: center;
  justify-content: center;
}
#projects-row .card-image a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
#projects-row .card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
#projects-row .card-content {
  flex-grow: 1;
}
#projects-row .card-action {
  margin-top: auto;
}