/* ====================================================
   PUBLICATIONS CESER NOUVELLE-AQUITAINE
   style.css — Page d'accueil / index
   ==================================================== */

@import url("https://use.typekit.net/wjs6thv.css");


/* ─────────────────────────────────────────────────────
   VARIABLES
───────────────────────────────────────────────────── */
:root {
  /* Couleurs */
  --color-red:        #656462;
  --color-beige:      #F5F0E6;
  --color-text:       #2C2C2C;
  --color-text-muted: #666666;
  --color-white:      #FFFFFF;
  --color-link:       #CC0000;
  --color-shadow:     rgba(0, 0, 0, 0.12);

  /* Typographie — Bree (Adobe Fonts / Typekit) */
  --font-main: "bree", Georgia, serif;

  /* Header : 1.5× la hauteur standard */
  --header-height: 105px;

  /* Layout */
  --max-width: 960px;
  --gap-card:  3rem;
}

/* Mode sombre */
[data-theme="dark"] {
  --color-beige:      #1C1C1C;
  --color-text:       #E4DDD0;
  --color-text-muted: #999999;
  --color-link:       #FF7777;
  --color-shadow:     rgba(0, 0, 0, 0.35);
}


/* ─────────────────────────────────────────────────────
   RESET / BASE
───────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-beige);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s, color 0.3s;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-link);
}


/* ─────────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────────── */
header {
  background-color: var(--color-red);
  color: var(--color-white);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Logo */
.logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-logo {
  height: 68px;
  width: auto;
  display: block;
}

/* Titre */
.header-title {
  flex: 1;
  font-family: var(--font-main);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

/* Contrôles accessibilité */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.font-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--color-white);
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s;
}

.font-btn         { font-size: 0.75rem; }
.font-btn--mid    { font-size: 0.85rem; }
.font-btn--large  { font-size: 0.95rem; }

.font-btn:hover,
.theme-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.9);
}

.theme-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--color-white);
  padding: 0.35rem 0.45rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  margin-left: 0.3rem;
}


/* ─────────────────────────────────────────────────────
   MAIN
───────────────────────────────────────────────────── */
main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 3.5rem 2rem 4rem;
}


/* ─────────────────────────────────────────────────────
   GRILLE DES RAPPORTS
───────────────────────────────────────────────────── */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-card) 4rem;
  align-items: start;
}


/* ─────────────────────────────────────────────────────
   CARTE RAPPORT
───────────────────────────────────────────────────── */
.report-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Couverture */
.report-cover-link {
  display: block;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 5px 22px var(--color-shadow);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.report-cover-link:hover {
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.22);
  transform: translateY(-4px);
}

.report-cover {
  display: block;
  width: 100%;
  height: auto;
}

/* Infos texte */
.report-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.report-title {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
}

.report-title a {
  color: inherit;
  text-decoration: none;
}

.report-title a:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Titre en gras — première ligne */
.report-title strong {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

/* Lien "Lire le rapport" */
.read-link {
  display: inline-block;
  color: var(--color-link);
  text-decoration: none;
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding-bottom: 1px;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s;
}

.read-link:hover {
  opacity: 0.75;
}


/* ─────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────── */
footer {
  background-color: var(--color-red);
  color: var(--color-white);
  padding: 1.6rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-logo {
  height: 44px;
  width: auto;
  display: block;
}

.footer-text {
  flex: 1;
  font-family: var(--font-main);
  font-size: 0.875rem;
  color: var(--color-white);
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

/* Icônes FB / LinkedIn */
.footer-social {
  color: var(--color-white);
  opacity: 0.85;
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}

.footer-social:hover {
  opacity: 1;
}

/* Bouton "Site web" — style identique aux boutons de l'autre site */
.footer-btn-site {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-white);
  text-decoration: none;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  padding: 0.4rem 0.85rem;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.footer-btn-site:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--color-white);
}


/* ─────────────────────────────────────────────────────
   RESPONSIVE — Tablette (≤ 900px)
───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .reports-grid {
    gap: var(--gap-card) 2.5rem;
  }
}


/* ─────────────────────────────────────────────────────
   RESPONSIVE — Mobile (≤ 680px) → 1 colonne
───────────────────────────────────────────────────── */
@media (max-width: 680px) {
  :root {
    --header-height: 80px;
  }

  .header-inner {
    padding: 0 1rem;
    gap: 0.75rem;
  }

  .header-logo {
    height: 44px;
  }

  .header-title {
    font-size: 0.85rem;
  }

  .font-btn         { font-size: 0.7rem;  padding: 0.25rem 0.45rem; }
  .font-btn--mid    { font-size: 0.8rem;  padding: 0.25rem 0.45rem; }
  .font-btn--large  { font-size: 0.88rem; padding: 0.25rem 0.45rem; }
  .theme-btn        { padding: 0.28rem 0.38rem; }

  main {
    padding: 2rem 1rem 3rem;
  }

  .reports-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 480px;
    margin: 0 auto;
  }

  footer {
    padding: 1.4rem 1rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.9rem;
  }

  .footer-text {
    flex: none;
  }
}


/* ─────────────────────────────────────────────────────
   RESPONSIVE — Petit mobile (≤ 420px)
───────────────────────────────────────────────────── */
@media (max-width: 420px) {
  .header-title {
    font-size: 0.78rem;
  }

  .header-controls {
    gap: 0.25rem;
  }
}
