/* Core Stuff */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    font-size: 1rem;
    line-height: 1.7;
    color: #606d6e;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #454B4D;
}

a {
    color: #2E7D32;
    text-decoration: none;
}

a:hover {
    color: #FF9800;
}

pre {
    background: #F0F0F0;
    margin: 1rem 0;
    border-radius: 2px;
}

blockquote {
    border-left: 10px solid #eee;
    margin: 0;
    padding: 0 2rem;
}

/* Utility Classes */
.wrapper {
    margin: 0 3rem;
}

.padding {
    padding: 3rem 1rem;
}

.left {
    float: left;
}

.right {
    float: right
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

/* Content Styling */
.header .padding {
    padding: 1rem 0;
}

.header {
    background-color: #ffffff; /* #2E7D32; */
    color: #eee;
}

.header a {
    color: #fff;
}

.header .logo {
    font-size: 1.7rem;
    text-transform: uppercase;
}

.logo img.responsive-logo {
    max-height: 60px;
    height: auto;
  } 

.footer {
    background-color: #FFF;
    color: #000000;
}

.footer-links {
    list-style: none;
}

/* Menu Settings */
.main-nav ul {
    text-align: right;
    letter-spacing: -1em;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    display: inline-block;
    letter-spacing: normal;
}

.main-nav ul li a {
    position: relative;
    display: block;
    line-height: 45px;
    color: #2E7D32;
    padding: 0 20px;
    white-space: nowrap;
}

.main-nav > ul > li > a {
    border-radius: 2px;
}

/*Active dropdown nav item */
.main-nav ul li:hover > a {
    background-color: #2E7D32;
    color:#FFF;
}

/* Selected Dropdown nav item */
.main-nav ul li.selected > a {
    background-color: #2E7D32;
    color: #FFF;
}

/* Dropdown CSS */
.main-nav ul li {position: relative;}

.main-nav ul li ul {
    position: absolute;
    background-color: #fff;
    min-width: 100%;
    text-align: left;
    z-index: 999;
    display: none;
}
.main-nav ul li ul li {
    display: block;
}

/* Dropdown CSS */
.main-nav ul li ul ul {
    left: 100%;
    top: 0;
}

/* Active on Hover */
.main-nav li:hover > ul {
    display: block;
}

/* Child Indicator */
.main-nav .has-children > a {
    padding-right: 30px;
}
.main-nav .has-children > a:after {
    font-family: FontAwesome;
    content: '\f107';
    position: absolute;
    display: inline-block;
    right: 8px;
    top: 0;
}

.main-nav .has-children .has-children > a:after {
    content: '\f105';
}

/* Pour la page modular */
.section-highlight .baseline {
    color: #FF9800;
  }
  

.modular-row {
    padding: 2em 0;
    border-bottom: 1px solid #eee;
  }
  
  .pictos li {
    margin: 0.5em 0;
    list-style: none;
  }
  
  .pictos img,
  .value-item img {
    width: 168px;
    height: 168px;
    margin-right: 0.5em;
    vertical-align: middle;
  }
  
  .responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  .value-item {
    text-align: center;
    padding: 1em;
  }
  
  .value-item h4 {
    margin-top: 0.5em;
    font-size: 1.1em;
  }

  /* pour faire aligner horizontal centré / Début */
  .section-values {
    display: flex;
    flex-wrap: wrap;            /* ← wrap, pas nowrap */
    justify-content: center;    /* ← centre la ou les rangées */
    align-items: flex-start;
    gap: 2rem;                  /* espace horizontal & vertical */
  }
  
  .section-values .value-item {
    /* 3 colonnes : (=100%/3) - gap compensation */
    flex: 0 1 calc(33.333% - (2rem * 2/3));
    /* ou simplement flex-basis: 30%; si tu veux moins précis */
    text-align: center;
  }
    /* pour faire aligner horizontal centré / Fin */
  
  .event-list li {
    margin: 0.5em 0;
    list-style-type: none; /* pour enlever le symbole des puces */
  }

  /* si tu veux garder les séparateurs horizontaux, remets-les ici : */
  .pure-table-horizontal td {
    border-bottom: 2px solid #red !important;
    text-align: center;
  }

  .horizontal-list {
    display: flex;
    flex-wrap: wrap; /* retour à la ligne si trop long */
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1.5em;
  }
  
  .horizontal-list li {
    display: flex;
    align-items: center;
    flex-direction: column; /* ligne au-dessus, texte en-dessous */
    text-align: center;     /* centre le texte */
  }
  
  .horizontal-list img {
    width: 120px;
    height: 120px;
    margin-right: 0.5em;
  }

  /* pour aligner les pictos */

  /* ====== Tableau des randos (eco-pure) ====== */
.table-wrapper {
    overflow-x: auto;
  }
  
  .rando-table {
    width: 100%;
  }
  
  .rando-table th, .rando-table td {
    vertical-align: middle;
  }
  
  .rando-table td.affiche img {
    max-height: 72px;
    width: auto;
    display: block;
  }
  
  .rando-row {
    cursor: pointer;
  }
  
  .rando-row:focus {
    outline: 2px dashed #888;
    outline-offset: 2px;
  }
  
  .th-date {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
  }
  
  .th-date.is-asc::after {
    content: " ↑";
  }
  
  .th-date.is-desc::after {
    content: " ↓";
  }
  
  /* Accessibilité */
  .sr-only {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
  }
  
  /* Optionnel : resserrer un peu la première colonne sur mobile */
  @media (max-width: 640px) {
    .rando-table td.affiche img { max-height: 56px; }
  }

  /* Champ honeypot anti-spam : caché visuellement, présent pour les bots */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
  }

  /* Grille responsive, sans JS pour la liste des articles de blog */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-block: 1rem 2rem;
}

/* Carte sobre et accessible */
.card {
  border: 1px solid color-mix(in oklab, CanvasText 20%, transparent);
  border-radius: 12px;
  background: Canvas;
  overflow: clip;
  transition: transform .06s ease, box-shadow .06s ease, border-color .06s ease;
  will-change: transform;
}

.card__link {
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;         /* réserve l'espace même en lazy */
  object-fit: cover;
  background: color-mix(in oklab, CanvasText 6%, transparent);
}

/* Corps et textes */
.card__body { padding: .9rem; }
.card__title {
  font-size: clamp(1.05rem, 2.5vw, 1.15rem);
  line-height: 1.25;
  margin: 0 0 .4rem 0;
}
.card__excerpt {
  margin: 0 0 .6rem 0;
  opacity: .85;
}
.card__date {
  font-size: .9rem;
  opacity: .7;
}

/* Hover/focus visibles mais discrets */
.card:has(.card__link:hover),
.card:has(.card__link:focus-visible) {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -8px rgb(0 0 0 / .25);
  border-color: color-mix(in oklab, CanvasText 30%, transparent);
}

.card__link:focus-visible {
  outline: 2px solid Highlight;
  outline-offset: 2px;
  border-radius: 10px;
}

.card__excerpt{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.card__link{display:block;color:inherit;text-decoration:none}
.card__body{padding:1rem}
.card__title{margin:.25rem 0 .5rem}
.card__excerpt{margin:0 0 .5rem;color:#555}

/* Grille des cartes */
.cards{
  display:grid;
  gap:1rem;                 /* espace entre cartes */
  grid-template-columns: 1fr;              /* mobile: 1 */
}
@media (min-width: 600px){
  .cards{ grid-template-columns: repeat(2, 1fr); }  /* ≥600px: 2 */
}
@media (min-width: 900px){
  .cards{ grid-template-columns: repeat(3, 1fr); }  /* ≥900px: 3 */
}
@media (min-width: 1200px){
  .cards{ grid-template-columns: repeat(4, 1fr); }  /* ≥1200px: 4 (cap) */
}

/* Style compact des cartes, 4 par page */
.card{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:.75rem;
  box-shadow:0 1px 4px rgba(0,0,0,.06);
  overflow:hidden;
  transition:transform .12s ease;
  display:flex; flex-direction:column;     /* hauteur homogène */
}
.card:hover{ transform:translateY(-2px) }
.card__body{ padding:.75rem; display:flex; flex-direction:column; gap:.5rem; }
.card__title{ margin:0; font-size:1rem; line-height:1.3 }
.card__excerpt{
  margin:0; color:#555; font-size:.9rem;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.card__date{ font-size:.8rem; color:#777; margin-top:auto; } /* pousse la date en bas */
.card__link{ color:inherit; text-decoration:none; display:block }


/* Respecte l’utilisateur qui réduit les animations */
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}

/* Ligne horizontale façon crampon */
.hr-track{
  height:24px; margin:1.25rem 0; display:block; color:#2E7D32; /* couleur via currentColor */
  background-color: currentColor;             /* teinte de la trace */
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: auto 100%; mask-size: auto 100%;
}
.hr-track.mtb{
  -webkit-mask-image: url("../images/track/mtb-track.svg");
  mask-image: url("../images/track/mtb-track.svg");
}
.hr-track.gravel{
  -webkit-mask-image: url("../images/track/gravel-track.svg");
  mask-image: url("../images/track/gravel-track.svg");
}
/* Variante plus fine pour gravel si tu veux */
.hr-track.gravel{ height:18px; }

/* Espace par rapport au menu */
.nav-divider{padding-top:4px}


/* Gouttières sur les colonnes Pure pour afficher les sections en Homepage */
.sections-accueil { 
  text-align:center; 
  margin: 2rem auto; 
  background: #2E7D32;
}
.tiles { margin-top: 1rem; }
.tiles [class*="pure-u-"] { padding: .75rem; }

.tile {
  display: block;
  background: #fff;
  color: #2E7D32;
  text-decoration: none;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.tile img { max-width: 84px; height: auto; margin: 0 auto 1rem; display:block; }
.tile h3 { margin: .25rem 0 .5rem; font-weight: 700; }
.tile-summary { opacity: .95; margin: 0; }
/* Fin des Gouttières */

/* Bandeau pour la homepage */
.sections-accueil { text-align:center; margin: 2rem auto; }
.tiles { margin-top: 1rem; }
.tiles [class*="pure-u-"] { padding: .75rem; }

.tile {
  display: block;
  background: #2E7D32;
  color: #000000;
  text-decoration: none;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.tile img { max-width: 84px; height: auto; margin: 0 auto 1rem; display:block; }
.tile h3 { margin: .25rem 0 .5rem; font-weight: 700; }
.tile-summary { opacity: .95; margin: 0; }

.tile .tile-icon-inline svg {
  width:84px;
  height:auto;
  display:block;
  margin:0 auto .75rem;
}

.tiles [class*="pure-u-"]{ padding:.75rem; }

.tile{
  display:block; background:#ffffff; color:#000000; text-decoration:none;
  border-radius:12px; padding:1.5rem; height:100%;
  transition:transform .15s ease;
}
.tile:hover{ transform:translateY(-2px); }

.tile-icon{
  max-width:84px; height:auto; display:block; margin:0 auto .75rem;
}

/* SVG colorable sans inline grâce au mask */
.tile-icon-mask{
  width:84px; height:84px; display:block; margin:0 auto .75rem;
  background: currentColor;
  -webkit-mask: var(--icon) no-repeat center / contain;
          mask: var(--icon) no-repeat center / contain;
}

.tile h3{ margin:.25rem 0 .35rem; font-weight:700; }
.tile-summary{ margin:0; opacity:.95; }

/* Exemples de couleurs par tuile (optionnel) */
.tile.section-gravel { color:#2e7d32; }
.tile.section-vtt    { color:#fdd835; }
.tile.section-ecole  { color:#ffffff; }

/* Fin du bandeau pour la homepage */

/* Liste des articles de blog en Homepage */
.section-duo { margin-top: 1.5rem; }
.section-duo .modular-row { margin: 0; } /* évite des marges empilées si tes modules en ont */
.section-bloglist ul.bloglist { list-style: none; padding: 0; margin: .5rem 0 0; }
.section-bloglist li { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding: .25rem 0; }
.section-bloglist time { opacity: .7; white-space: nowrap; font-size: .9em; }
@media (max-width: 768px){
  .section-duo .pure-u-md-1-2 { margin-bottom: 1rem; }
}

/* Piur des callout */
/* Base */
.callout {
  border-left: 6px solid transparent;
  background: #f7f9fb;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  line-height: 1.5;
  border-radius: 4px;
}

/* Titre optionnel */
.callout__title {
  font-weight: 600;
  margin: 0 0 .25rem 0;
}

/* Variantes (couleurs accessibles) */
.callout--info {
  border-left-color: #29abe2;
  background: #f5fafc;
}
.callout--info .callout__title,
.callout--info strong { color: #29abe2; }

.callout--success {
  border-left-color: #2e7d32;
  background: #f3faf4;
}
.callout--success .callout__title,
.callout--success strong { color: #2e7d32; }

.callout--warning {
  border-left-color: #f39c12;
  background: #fff8ec;
}
.callout--warning .callout__title,
.callout--warning strong { color: #f39c12; }

.callout--danger {
  border-left-color: #e74c3c;
  background: #fff5f4;
}
.callout--danger .callout__title,
.callout--danger strong { color: #e74c3c; }
/* Fin des Callout */

/* Menu parent non cliquable */
.no-link {
  cursor: default;
  color: inherit; /* garde la même couleur que le texte */
  text-decoration: none;
}

.no-link:hover {
  color: inherit; /* évite effet hover comme un lien */
}
/* Fin du Menu parent non cliquable */