* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
}

body {
  font-family: "Noticia Text", serif;
}
h1{
  text-align: center;
}
h2 {
  font-family: "Tangerine", cursive;
font-size:4rem;
  color: black;
  text-align: center;
  padding: 20px;
}

/* Header */

.header {
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.headeraccueil{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* Container */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

/* Logo */
.logo a {
  font-family: "Tangerine", cursive;
  color: black;
  text-decoration: none;
  font-size:2rem;
}

/* Nav links */
.nav {
  display: flex;
  gap: 20px;
  
}

.nav a {
  color: black;
  text-decoration: none;
  transition: 0.2s;
}

.nav a:hover {
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}


/* HERO full screen */
.hero {
  width: 100%;
  height: 100vh; /* pleine hauteur écran */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Texte */
.hero-text{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* centre verticalement */
  align-items: center;     /* centre horizontalement */
  text-align: center;
}

.hero-text h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 18px;
  line-height: 1.5;
  max-width: 500px;
}

.hero-image {
  flex: 1;
  height: 100%; /* prend toute la hauteur du hero */
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 🔥 clé pour remplir sans déformer */
  display: block;
}

.decouvrir{
  text-decoration: none;
  background-color: black;
  color: white;
  border-radius: 1px;
  border-radius: 8px;
  border: 15px solid black;
}

.decouvrir:hover{
  border: 15px solid white;
  background-color: white;
  color: black;
  transform: translateY(-3px);
}


/* ARTICLE */

/* CONTENEUR DES ARTICLES */

.articles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 20px;
}

/* ARTICLE */
.article {
    width: 100%;
}

/* ACCROCHE */
.accrochearticle {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
}

.accrochearticle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* TEXTE SUR L'IMAGE */
.overlay {
    position: absolute;
    bottom: 40px;
    left: 20px;
    color: white;
    z-index: 2;
}

.overlay h2 {
    margin-bottom: 8px;
}

.date {
    position: absolute;
    bottom: 15px;
    left: 20px;
    color: white;
    z-index: 2;
}

/* FILTRE SOMBRE */
.accrochearticle::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.8),
        rgba(0,0,0,0.2),
        rgba(0,0,0,0)
    );
}

/* CORPS ARTICLE */
.corpsarticle {
    display: none;
    padding: 20px 0;
}

/* ARTICLE OUVERT */
.article.active .corpsarticle {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* TEXTE */
.corpsarticle p {
    flex: 1;
    text-align: justify;
    margin: 0;
}

/* IMAGE */
.imagearticle {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.imagearticle img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* TABLETTE */
@media (max-width: 900px) {

    .articles {
        grid-template-columns: 1fr;
    }

}

/* MOBILE */
@media (max-width: 768px) {

    .article.active .corpsarticle {
        flex-direction: column;
    }

    .corpsarticle img {
        max-width: 100%;
    }

}
/*réalisation*/



/* GALERIE */
.galerie {
  column-count: 3;
  column-gap: 15px;
  padding-right: 20rem;
  padding-left: 20rem;
}

/* ITEM */
.item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 16px;
}

/* IMAGE */
.item img {
  width: 100%;
  display: block;
  border-radius: 16px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* TEXTE HOVER */
.hover-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  padding: 15px;
  color: white;
  font-size: 14px;

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.8),
    rgba(0,0,0,0)
  );

  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s ease;
}

/* HOVER EFFECT */
.item:hover img {
  transform: scale(1.05);
  filter: brightness(0.8);
}

.item:hover .hover-text {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .galerie {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .galerie {
    column-count: 1;
  }
}

/*a propos*/
.presentation {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 30px;
}

/* SECTION GRID 50/50 */
.apropos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch; 
  gap: 60px;
  margin: 40px;
}


.imageapropos {
  height: 100%;
}

.imageapropos img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  filter: grayscale(100%);
  border-radius: 20px;

}

/* TEXTE */
.texteapropos {
  display: flex;
  flex-direction: column;
  justify-content: center; 
}

.texteapropos h3 {
  margin-bottom: 15px;
  font-weight: normal;
  letter-spacing: 0.5px;
}

.texteapropos p {
  font-size: 15px;
  line-height: 1.7;
  text-align: justify;
  opacity: 0.9;
}

@media (max-width: 900px) {
  .apropos {
    grid-template-columns: 1fr;
  }

  .imageapropos img {
    height: auto;
  }
}

/*CONTACT*/

.contact-card {
  max-width: 400px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.contact-section {
  margin-bottom: 2rem;
}

.contact-section:last-child {
  margin-bottom: 0;
}

.contact-title {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 700;
  transition: opacity 0.3s ease;
}

.contact-link:hover {
  opacity: 0.8;
}

.contact-image {
  display: block;
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
  border-radius: 12px;
  object-fit: cover;
}


