   /* ========== 1. VARIABLES ==========
   Change ces couleurs et toute la page change d'ambiance. */
:root {
  --fond: #e5d1a4;
  --olive: #937a24;
  --copper: #b64b12;
  --caramel: #ce793a;
  --texte: #2b2b2b;
  --chestnut: #480903;
}

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

body {
  /* Source Sans 3 est chargée par le lien Google Fonts du <head>.
     Arial et sans-serif servent de roues de secours si elle ne charge pas. */
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 1.15rem;            /* Newsreader est une police assez petite */
  background: var(--fond);
  color: var(--texte);
  line-height: 1.6;
}

h1, h2, h3, .logo {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 700; }

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

/* Un conteneur centré qui limite la largeur du contenu */
.conteneur {
  width: min(1100px, 90%);
  margin: 0 auto;
}

/* ========== 3. EN-TÊTE (Flexbox) ========== */
header {
  background: var(--chestnut);
  color: var(--fond);
  position: relative;
}

.burger {
  display: none;                 /* caché sur ordinateur */
  background: none;
  border: none;
  color: var(--fond);
  font-size: 1.8rem;
  cursor: pointer;
}

header .conteneur {
  display: flex;                  /* aligne les éléments sur une ligne */
  justify-content: space-between; /* un à gauche, un à droite */
  align-items: center;
  padding: 18px 0;
}
.logo { font-size: 1.6rem; font-weight: 700; letter-spacing: 0.5px; }
nav { display: flex; gap: 32px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; }
nav a:hover { color: var(--caramel); }

/* Menu déroulant */
.menu-deroulant { position: relative; }   /* sert de repère au sous-menu */

.sous-menu {
  display: none;                          /* caché par défaut */
  position: absolute;                     /* se superpose au contenu */
  top: 100%;                              /* juste sous le lien */
  left: 0;
  min-width: 230px;
  flex-direction: column;
  background: var(--chestnut);
  border-top: 3px solid var(--caramel);
  border-radius: 0 0 12px 12px;
  padding: 8px 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 10;                            /* passe devant le reste de la page */
}

/* Il apparaît au survol, ou au clavier (touche Tab) */
.menu-deroulant:hover .sous-menu,
.menu-deroulant:focus-within .sous-menu {
  display: flex;
}

.sous-menu a {
  padding: 10px 20px;
  white-space: nowrap;                    /* évite de couper « beyound the Headlines » */
}

/* ========== 4. HÉROS ========== */
.heros {
  text-align: center;
  padding: 100px 0 80px;
}
.heros h1 {
  font-size: clamp(2.5rem, 7vw, 4.8rem); /* taille qui s'adapte à l'écran */
  color: var(--chestnut);
  line-height: 1.1;
}
.heros p {
  max-width: 560px;
  margin: 20px auto 32px;
  font-size: 1.25rem;
  text-wrap: balance;
}
.bouton {
  display: inline-block;
  background: var(--copper);
  color: var(--fond);
  padding: 14px 32px;
  border-radius: 999px;           /* bords totalement arrondis */
  font-weight: 700;
  transition: transform 0.2s;     /* animation douce */
}
.bouton:hover { transform: translateY(-3px); }

/* ========== 5. BANDEAU DES SUJETS (Grid) ========== */
.sujets {
  background: var(--caramel);
  color: var(--chestnut);
  padding: 30px 0;
  margin-bottom: 60px;
}
.sujets .conteneur {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 colonnes égales */
  gap: 24px;
  align-items: center;                   /* centre verticalement les textes */
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========== 6. ARTICLES (Grid) ========== */
.articles { 
   padding: 80px 0;
}
.articles h2 {
  font-size: 2.4rem;
  color: var(--chestnut);
  text-align: center;
}
.grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 80px;
}
.carte {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.carte img {
  width: 100%;          /* prend toute la largeur de la carte */
  height: 220px;
  object-fit: cover;    /* recadre l'image sans la déformer */
  display: block;
}
.carte .infos { padding: 20px; }
.carte h3 { color: var(--chestnut); font-size: 1.4rem; line-height: 1.2; }
.carte .infos p { font-size: 0.95rem; margin-top: 6px; }

/* ========== 7. NEWSLETTER ========== */
.newsletter {
  background: var(--chestnut);
  color: var(--fond);
  text-align: center;
  padding: 50px 0;
}
.newsletter h2 { font-size: 2.2rem; }
.newsletter form {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.newsletter input {
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  min-width: 260px;
  font-size: 1rem;
  font-family: inherit;  /* les champs n'héritent pas la police tout seuls */
}
.newsletter button {
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  background: var(--caramel);
  color: var(--chestnut);
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
}

/* ========== 8. PIED DE PAGE ========== */
footer {
  text-align: center;
  padding: 24px 0;
  font-size: 0.9rem;
}

/* ===== Page d'article ===== */
.article-page { width: min(720px, 90%); margin: 0 auto; padding: 60px 0; }
.article-page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--chestnut); line-height: 1.15; margin-bottom: 12px; }
.article-page .meta { font-size: 0.95rem; margin-bottom: 30px; }
.article-page img { width: 100%; border-radius: 16px; margin-bottom: 30px; }
.article-page h2 { font-size: 1.8rem; color: var(--chestnut); margin: 40px 0 12px; }
.article-page p { margin-bottom: 18px; line-height: 1.7; }


/* ========== Langue ==========
   On ajoute un bouton de langue plus beau. */
nav .langue {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0 12px;
  font-weight: 700;
}

/* ========== RESPONSIVE ==========
   Sur écran de moins de 800px (téléphone), on réorganise. */
@media (max-width: 800px) {
  .sujets .conteneur { grid-template-columns: repeat(2, 1fr); }
  .grille { grid-template-columns: 1fr; }     /* 1 article par ligne */
  .heros { padding: 60px 0 50px; }

  .burger { display: block; }                 /* le bouton ☰ apparaît */

  nav {
    display: none;                            /* fermé par défaut */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--chestnut);
    padding: 20px 5%;
    gap: 16px;
    z-index: 20;
  }
  nav.ouvert { display: flex; }               /* ouvert après un clic sur ☰ */

  .sous-menu {
    position: static;
    display: flex;
    box-shadow: none;
    border-top: none;
    padding: 8px 0 0 16px;
  }
}
