/* Habillage façon thème WordPress Hestia (Material) par-dessus style.css :
   barre de navigation horizontale transparente sur un grand en-tête photo, blanche au défilement ;
   contenu dans une carte blanche qui chevauche l'en-tête ; titres Roboto Slab centrés ; pied de page
   sombre. Polices servies localement (fonts/), aucune ressource externe.
   Retirer la ligne <link … hestia.css> d'une page pour revenir au style d'origine. */

@font-face {
  font-family: "Roboto";
  src: url("fonts/Roboto-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Slab";
  src: url("fonts/RobotoSlab-Bold-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --hestia-font: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --hestia-font-title: "Roboto Slab", "Times New Roman", serif;
  --hestia-text: #3c4858;
  --hestia-muted: #999;
  --hestia-accent: var(--color-accent);
  --hestia-nav-height: 70px;
  --hestia-shadow-raised: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12),
    0 8px 10px -5px rgba(0, 0, 0, 0.2);
  --hestia-shadow-nav: 0 1px 10px -6px rgba(0, 0, 0, 0.42), 0 1px 10px 0 rgba(0, 0, 0, 0.12),
    0 4px 5px -2px rgba(0, 0, 0, 0.1);
  --hestia-hero-image: url("/assets/bike-way-real_-jansen-xK6FsCeBs10-unsplash.jpg");
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: var(--hestia-font);
  font-weight: 300;
  color: var(--hestia-text);
  background: #e5e5e5;
  line-height: 1.6;
}

/* ---------- Titres ---------- */

/* style.css impose la couleur des titres avec !important : on la remplace ici de la même façon */
h1,
h2,
h3,
h4 {
  font-family: var(--hestia-font-title);
  color: var(--hestia-text) !important;
}

h3,
h4 {
  font-family: var(--hestia-font);
  font-weight: 500;
}

.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 2.1rem;
  line-height: 1.2;
}

.section-title-icon {
  color: var(--hestia-accent);
  font-size: 1.6rem;
}

/* ---------- Grand en-tête photo ---------- */

/* #primary .hero l'emporte sur #section-accueil-hero de style.css (fond blanc, largeur 50rem) */
#primary .hero {
  max-width: none;
  text-align: center;
  width: 100vw;
  margin: 0 calc(50% - 50vw);
  padding: calc(var(--hestia-nav-height) + 5rem) 1.5rem 9rem;
  border-radius: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), var(--hestia-hero-image) center / cover no-repeat;
  color: #fff;
  opacity: 1;
  pointer-events: auto;
}

#primary .hero h1 {
  color: #fff !important;
  font-size: 2.8rem;
  margin: 0 auto 1.5rem;
}

/* logo en couleurs : posé sur une pastille blanche pour rester lisible sur la photo */
#primary .hero .hero-logo {
  display: inline-block;
  width: auto;
  min-height: 0;
  height: 150px;
  padding: 1rem 1.6rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#primary .hero p,
#primary .hero .lead {
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  font-weight: 300;
}

#primary .hero a {
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-underline-offset: 3px;
}

/* ---------- Contenu : carte blanche qui chevauche l'en-tête ---------- */

.site-main {
  max-width: 1170px;
  padding-top: 0;
}

.entry-content {
  position: relative;
  z-index: 2;
  margin-top: -5rem;
  padding: 3rem 2.5rem 2rem;
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--hestia-shadow-raised);
}

/* les cartes de section deviennent des sections à plat, séparées par un filet */
.entry-content .card,
.entry-content .section-wide > .card {
  margin: 0;
  padding: 2.5rem 0;
  border: 0;
  border-bottom: 1px solid #eee;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.entry-content .card:last-child,
.entry-content section:last-child > .card:last-child {
  border-bottom: 0;
}

.entry-content .card-media img {
  border-radius: 6px;
  box-shadow: 0 5px 15px -8px rgba(0, 0, 0, 0.24), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
}

.entry-content p,
.entry-content li {
  color: #555;
}

a {
  color: var(--hestia-accent);
}

/* ---------- Boutons ---------- */

.button,
.btn,
button.button,
.entry-content a.button {
  display: inline-block;
  padding: 12px 30px;
  border: 0;
  border-radius: 3px;
  background: var(--hestia-accent);
  color: #fff;
  font-family: var(--hestia-font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 2px 0 rgba(1, 122, 151, 0.14), 0 3px 1px -2px rgba(1, 122, 151, 0.2),
    0 1px 5px 0 rgba(1, 122, 151, 0.12);
  transition: box-shadow 0.2s ease;
}

.button:hover,
.btn:hover {
  text-decoration: none;
  box-shadow: 0 14px 26px -12px rgba(1, 122, 151, 0.42), 0 4px 23px 0 rgba(0, 0, 0, 0.12),
    0 8px 10px -5px rgba(1, 122, 151, 0.2);
}

/* ---------- Pied de page sombre ---------- */

.site-footer {
  width: 100vw;
  margin: 3rem calc(50% - 50vw) 0;
  padding: 2.5rem 0 1.5rem;
  border-top: 0;
  background: #323437;
}

.site-footer,
.site-footer p,
.site-info {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer strong {
  color: #fff;
}

.site-footer a {
  color: #fff;
}

/* ---------- Navigation : barre horizontale en haut (écrans larges) ---------- */

@media (min-width: 900px) {
  body {
    padding-top: 0;
  }

  .site-content {
    margin-left: 0;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    z-index: 50;
    width: auto;
    height: var(--hestia-nav-height);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
  }

  .site-nav-inner {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
  }

  .site-sidebar-top {
    display: none;
  }

  .site-nav-links {
    flex: 1;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }

  .site-nav-links:empty {
    min-height: 0;
  }

  /* le logo (premier lien) à gauche, les entrées de menu à droite */
  .site-nav-links li:first-child {
    margin-right: auto;
  }

  .site-nav-links a img {
    width: auto;
    height: 50px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.94);
  }

  #site-nav-links .logo-tamia {
    margin-left: 0;
  }

  .site-nav-link {
    padding: 0.6rem 0.9rem;
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  a.site-nav-link:hover {
    color: #fff !important;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.12);
  }

  .site-nav-link.is-active,
  .site-nav-link[aria-current="page"] {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.16);
  }

  /* au défilement (classe posée par site-nav.js) : barre blanche avec ombre */
  body.hestia-scrolled .site-nav {
    background: #fff;
    box-shadow: var(--hestia-shadow-nav);
  }

  body.hestia-scrolled .site-nav-link {
    color: #555;
  }

  body.hestia-scrolled a.site-nav-link:hover {
    color: var(--hestia-accent) !important;
    background-color: rgba(0, 0, 0, 0.04);
  }

  body.hestia-scrolled .site-nav-link.is-active,
  body.hestia-scrolled .site-nav-link[aria-current="page"] {
    color: var(--hestia-accent);
    background-color: var(--color-accent-soft);
  }

  body.hestia-scrolled .site-nav-links a img {
    background: transparent;
  }
}

/* ---------- Petits écrans : barre du haut blanche, menu latéral conservé ---------- */

@media (max-width: 899px) {
  .site-mobile-bar {
    background: #fff;
    box-shadow: var(--hestia-shadow-nav);
  }

  #primary .hero {
    margin-top: 0;
    padding: 6.5rem 1.25rem 6rem;
  }

  #primary .hero .hero-logo {
    height: 110px;
  }

  #primary .hero p,
  #primary .hero .lead {
    font-size: 0.95rem;
  }

  .entry-content {
    margin: -3.5rem 0.75rem 0 !important;
    padding: 1.5rem 1.1rem 1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }
}

/* style.css donne un fond blanc aux articles : seule la carte .entry-content doit être blanche */
#primary article.page,
#primary .type-article,
#primary .type-page {
  background: transparent;
}
