/* ---------------------RESET ECRAN--------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%; 
  scroll-behavior: smooth;
}

body {
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.8;
  color: #111;
  background: #fff;
}

/* ---------------------STRUCTURE--------------------- */
.wrapper {
  width: 90%;
  max-width: 80rem; 
  margin: 0 auto;
  padding: 2rem 0;
}

/* ---------------------HAUT PAGE--------------------- */
header {
  background: #0E2841;
  color: #FD8916;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 0.3rem 0.6rem rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

header .wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.85rem;
}

header .wrapper_2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem; 
}

.quelleedi {
  font-size: 0.9rem;
  font-weight: 400;
  color: #FD8916;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

header h1 {
  font-size: 1.7rem;
  font-family: "Baskerville", serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

nav ul {
  list-style: none;
  display: flex;
  flex-direction: row; /* pr menu vertical */
  gap: 2.5rem;
  justify-content: center;
}

nav a {
  color: #FD8916;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

nav a:hover {
  opacity: 0.7;
}



/* ---------------------ACCUEIL--------------------- */
.hero {
  text-align: center;
  padding: 4vh 0 8vh;
  border-bottom: 0.0625rem solid #ddd; 
}

.hero h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  margin-top: 3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h2 {
  color: #FD8916;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.8;
  max-width: 60ch;
  margin: 0 auto 1rem;
}

.hero .button {
  display: inline-block;
  padding: 0.9rem 2rem;
  border: 0.125rem solid #000; 
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
}

.hero .button:hover {
  background: #f3f3f3;
  border: 0.125rem solid #FD8916;
}

.edition {
  margin-top: 3rem;
}


.une-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12rem;
  max-width: 100%;
}

.une-image {
  flex: 0 1 25rem;  
}

.une-image img {
  display: block;
  max-width: 22rem;
  max-width: 100%;
  width: auto;
  border-radius: 0.5rem;
}

.une-action {
  display: flex;
  align-items: center;
}

/* ---------------------ARTICLES--------------------- */

h2 {
  color: #FD8916;
} 

h3 {
  color: #0E2841;
}


.grid {
  display: grid;
  gap: 2rem; 
}

.articles-preview .grid {
  margin-bottom: 2rem; 
}

.grid article {
  border: 0.0625rem solid #111; 
  border-radius: 0.5rem;
  padding: 1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, background 0.25s ease;
}

.grid article:hover {
  transform: translateY(-0.2rem);
  background: #f5f5f5;
}


.grid article img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin-bottom: 0.8rem;
  object-fit: cover;
}

.img-description {
  text-align: center;
  color: #444; 
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.article-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;   
  margin-top: 2rem;
  margin-bottom: 2rem;
}



/* Titres + les textes */
.grid article h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.grid article p {
  opacity: 0.8;
  flex-grow: 1;
  margin-bottom: 0.5rem;
}

.grid article a {
  align-self: flex-start;
  font-weight: bold;
  text-decoration: none;
}

.grid article a:hover {
  text-decoration: underline;
}


/* ---------------------CRÉDITS--------------------- */

.credit-noms {
  display: grid;
  grid-template-rows: repeat(5, auto); 
  grid-auto-flow: column; 
  gap: 0.4rem 2rem; 
}


/* ---------------------BAS PAGE--------------------- */
footer {
  background: #0E2841;
  color: #FD8916;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  margin-top: 5vh;
}

footer a {
  color: #FD8916;
  text-decoration: none;
  font-weight: 400;
  transition: opacity 0.2s ease;
}

footer a:hover {
  opacity: 0.7; 
}

/* ---------------------CSS SI--------------------- */

@media (max-width: 48em) {
  .une-container {
    flex-direction: column;
    gap: 3rem;
  }
  
  header .wrapper_2 {
  align-items: center;
}
  header .wrapper {
    gap: 0.85rem;
}
.une-image img {
  max-width: 95%;
  margin: 0 auto;
}

  .credit-noms {
    grid-auto-flow: row; 
    grid-template-rows: none;   
    grid-template-columns: 1fr;
    gap: 0.35rem 0;             
    justify-items: center; 
  }
}


@media (min-width: 48em) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  header .wrapper {
    flex-direction: row;
    justify-content: space-between;
    padding: 1.2rem 0;
  }
  header h1 {
    font-size: 2rem;
  }
  nav ul {
    gap: 1.5rem;
  }
  footer {
    padding: 2rem 0;
    font-size: 0.9rem;
  }
}

@media (min-width: 64em) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
  header .wrapper {
    flex-direction: row;
    justify-content: space-between;
    padding: 1.2rem 0;
  }
  header h1 {
    font-size: 2rem;
  }

  .une-image{
    transform: translateX(-1.5rem);
  }
  
  nav ul {
    gap: 1.5rem;
  }
  footer {
    padding: 2rem 0;
    font-size: 0.9rem;
  }
}