/*
 Theme Name:   chasseur17 
 Theme URI:    
 Description:  FDC17 Fédération Départementale des Chasseurs ...
 Author:       Miguel Sanchez
 Author URI:   https://www.laplante.fr
 Template:     hello-elementor
 Version:      1.0.0
*/

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'brother1816regular';
  src: url('fonts/brother1816regular.eot');
  src: url('fonts/brother1816regular.eot') format('embedded-opentype'),
       url('fonts/brother1816regular.woff2') format('woff2'),
       url('fonts/brother1816regular.woff') format('woff'),
       url('fonts/brother1816regular.ttf') format('truetype'),
       url('fonts/brother1816regular.svg#brother1816regular') format('svg');
}

/* ---------- Variables ---------- */
:root{
  --brand: #075D66;   /* couleur principale (boutons bordures) */
  --accent: #70AB66;  /* couleur secondaire (cta hover) */
  --dark: #2c3e50;
  --muted: #666;
  --bg: #ffffff;
  --card-shadow: 0 6px 20px rgba(0,0,0,0.08);
  --radius: 10px;
}

/* ---------- Base / Typographie ---------- */
body {
  font-family: 'brother1816regular', sans-serif !important;
  font-size: 16px;
  color: var(--dark);
  background: #fff;
  margin: 0;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

h1, h2, h3, h4, h5, h6, .elementor-counter-number {
  font-family: "Barlow Condensed", sans-serif !important;
  font-weight: 700;
  margin: 0 0 .6rem 0;
  font-style: normal;
}
/* SVG recherche page Accueil */
.e-font-icon-svg.e-fas-search {
  width: 18px;
  fill: #fff;
}
a{
  color: #075D66;
}
a:hover{
  color: #000;
}
.btn-accueil > div > nav > ul > li > a:hover {
  transform: scale(1.05);
}

/* Small helpers */
.container { max-width: 1320px; margin: 0 auto; padding: 0 1rem; }

/* ---------- Header / Helpers ---------- */
.sticky-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform .3s ease-in-out, opacity .3s ease-in-out;
}
.sticky-header.visible {
  transform: translateY(0);
  opacity: 1;
}
/* Icone réseaux */
.e-font-icon-svg.e-fab-facebook{
  height: 40px;
  /*width: 40px;*/
}
.elementor-element-e527d8a > div > div > span > a > svg {
  height: 25px !important;
}
.elementor-122 .elementor-element.elementor-element-b6604a2 .elementor-repeater-item-de2f9dd.elementor-social-icon{
  background-color: #fff !important;
}
.res-pied > div > div > span > a>.e-font-icon-svg.e-fab-facebook {
  height: 23px;
  width: 40px;
  position: absolute;
  top: 4px;
}
.adresse-pied > div > p {
  margin: 0;
}
.elementor-element.elementor-element-f9e2e71.e-con-full.e-flex.e-con.e-child {
  margin-bottom: 12px;
}

.ditty-ticker__items { text-transform: uppercase; }

.btn-menu > div > div > a { padding: 15px; }

/* ---------- Category filter (boutons) ---------- */
.cat-filter-for-tri-reglementation {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 20px 0;
  justify-content: center;
}

.cat-filter-for-tri-reglementation li {
  cursor:pointer;
  padding: 8px 18px;
  border-radius: 5px;
  background:#f5f5f5;
  border:1px solid #ddd;
  font-size:15px;
  font-weight:500;
  color:#333;
  transition: all .25s ease;
}

.cat-filter-for-tri-reglementation li:hover,
.cat-filter-for-tri-reglementation li.elementor-active {
  background: var(--brand);
  color:#fff;
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

/* ---------- Documents list (1 colonne) ---------- */
.docs-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr; /* ✅ Une seule colonne */
  gap: 25px;
}

.espacer { height: 50px; }

.doc-card {
  background: var(--bg);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.doc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Contenu interne */
.doc-card-inner {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 20px;
  gap: 20px;
}

.doc-left {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.doc-title {
  font-size: 21px;
  color: #075D66;
}

.doc-descriptif {
  color: #7A7A7A;
  flex: 1;
}

.doc-category,
.doc-date {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.category-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--brand);
  display: inline-block;
}

/* Colonne droite : bouton aligné en bas */
.doc-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* ✅ bouton collé en bas */
  align-items: flex-end;
  flex: 0 0 auto;
}

/* Bouton téléchargement */
.download-btn {
  background: #fff;
  color: var(--brand);
  border: 2px solid var(--brand);
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 500;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all .25s ease;
}

.download-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--brand);
  transition: fill .25s ease;
}

.download-btn:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.download-btn:hover svg { fill: #fff; }


/* ---------- Formation page (single) ---------- */
.formation-page { padding:5rem 10px; }

/* Titre principal */
.formation-header { margin-bottom: 1.5rem; }
.formation-title {
  font-size: 3em;
  color: var(--accent);
  text-align: left;
  margin-bottom: 1rem;
}
.soustitre-formation-title{
  font-size: 2em;
  color: #000;
  text-align: left;
  margin-bottom: 1rem;
}

/* layout 2 colonnes : texte 60% / media 40% */
.formation-main-content {
  display:flex;
  gap: 2rem;
  align-items:flex-start;
  margin-bottom: 2.5rem;
  flex-wrap: nowrap; /* on garde 2 colonnes sur desktop */
}
.formation-text { color: #7A7A7A; }
.formation-cover { flex: 0 0 40%; max-width: 40%; display:flex; align-items:flex-start; }

/* If Elementor adds wrappers, ensure our block retains proportions */
.elementor .formation-main-content { display:flex !important; gap:2rem !important; }
.elementor .formation-text { flex-basis:60% !important; max-width:60% !important; }
.elementor .formation-cover { flex-basis:40% !important; max-width:40% !important; }

/* Image single */
.formation-image img,
.single-formation .formation-cover img {
  width:100%;
  height:auto;
  border-radius: var(--radius);
  object-fit:cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.img-formation {
  margin-bottom: 40px;
}

/* page association */
/* === Filtre alphabétique === */
.alphabet-filter {
  text-align: center;
  margin: 2rem 0;
}

.alphabet-filter .filter-btn {
  margin: 0 4px 4px 0;
  padding: 6px 10px;
  border: 1px solid #075D66;
  background: #fff;
  color: #075D66;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 600;
  transition: 0.2s;
  text-decoration: none;
}

.alphabet-filter .filter-btn.active,
.alphabet-filter .filter-btn:hover {
  background: #075D66;
  color: #fff;
}

/* === Liste des associations === */
.annuaire-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Titre de la lettre (A, B, C…) */
.letter-title {
  border-bottom: 2px solid #075D66;
  padding-bottom: 5px;
  margin-bottom: 20px;
  color: #075D66;
  font-size: 1.5rem;
}

/* Carte association */
.asso-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: 0.2s;
}

.asso-card:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Image de l'association */
.asso-image img {
  border-radius: 8px;
  width: 150px;
  height: auto;
  object-fit: cover;
}

/* Contenu de la carte */
.asso-content {
  flex: 1;
}

/* Infos (adresse, téléphone…) */
.asso-infos {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.asso-infos li {
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.doc-thumb > img {
  width: 200px;
}
.pagination > button {
  color: #70AB66;
  border: 1px solid #70AB66;
}
.pagination > button:hover {
  color: #fff;
  background: #70AB66;
}
.elementor-counter-number-suffix {
  font-size: 28px;
  position: relative;
  bottom: -7px;
}
/* Responsive pour petits écrans */
@media (max-width: 768px) {
  .asso-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .asso-image img {
    width: 100%;
    max-width: 300px;
  }
}


/* ---------- Swiper / Slider ---------- */
/* Remplacer l'ancienne règle .formation-slider .swiper-slide { height: 100%; } */
.formation-slider {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}

/* IMPORTANT : permettre aux slides d'avoir la hauteur de leur contenu */
.formation-slider .swiper-slide {
  width: 100%;
  height: auto !important;   /* <-- auto au lieu de 100% */
  display: block;
}

/* s'assurer que les images conservent leurs proportions naturelles */
.formation-slider .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* ok pour recadrer si nécessaire */
}
/*.formation-slider .swiper-wrapper {
  transition: height 0.5s ease;
}*/

.formation.type-formation { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.formation.type-formation:hover { transform: translateY(-5px); }

/* Swiper navigation pills */
.swiper-button-prev, .swiper-button-next {
  color: #fff;
  background: rgba(0,0,0,0.45);
  width:40px; height:40px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}
.swiper-pagination {
  position: relative;
  margin-top: 15px;
}
/*.swiper-button-prev:hover, .swiper-button-next:hover { background: rgba(0,0,0,0.65); }*/
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background: rgba(255,255,255,0.6);
  border: 2px solid var(--brand);
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: var(--brand);
  transform: scale(1.4);
  border-color: #fff;
}


/* ---------- Sections (documents / liens / vidéos) ---------- */
.formation-documents, .formation-links, .formation-videos { margin-bottom: 2rem; }

.formation-documents h2,
.formation-links h2,
.formation-videos h2 {
  color: var(--brand);
}

.btn-retour {
  background-color: var(--accent);
  font-size: 1em;
  fill: #FFFFFF;
  color: #FFFFFF;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-radius: 3px;
  display: inline-block;
  line-height: 1;
  padding: 12px 24px;
  text-align: center;
  transition: all .3s;
}
.btn-retour:hover, .btn-retour:focus {
  background-color: #ffffff00;
  color: var( --accent );
  fill: var( --accent);
}
.button-icon > svg {
  width: 17px;
  margin: 0 16px 4px 0;
}
.button-icon > svg:nth-child(1) {
  rotate: 180deg;
  animation: slideLR 3s linear infinite;
}
.text > p:nth-child(1) {
  font-size: 1.2em;
}
.text > p > span > strong, .text > p > strong > span {
  font-size: 1.1em;
}

/* Animation du déplacement horizontal */
@keyframes slideLR {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(10px); /* distance à ajuster */
  }
  100% {
    transform: translateX(0);
  }
}



/* buttons group */
.doc-buttons, .link-buttons { display:grid; flex-wrap:wrap; gap:1rem; }
/*.doc-buttons, .link-buttons { display: inline-grid;}*/

.btn-doc, .btn-link {
  background: #fff;
  color: #075D66;
  border: 2px solid #075D66;
  padding: 4px 18px;
  border-radius: 5px;
  font-weight: 500;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

/*.btn-doc:hover, .btn-link:hover { background:#1f8c4b; transform: translateY(-2px); }*/
.btn-doc:hover, .btn-link:hover {background: #075D66;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn-doc:hover svg { fill:#fff; }

/* Video embed */
.formation-videos .video-embed { margin-bottom: 1.25rem; }
.formation-videos iframe, .formation-videos video {
  width:100%;
  border-radius: 8px;
  min-height: 300px;
}
.actualites.type-actualites { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.actualites.type-actualites:hover { transform: translateY(-5px); }
.actulite-single:hover, .formation-single:hover { transform:none !important; }
/* Qui nous sommes */
.elementor-widget-n-accordion .e-n-accordion-item[open] > .e-n-accordion-item-title {
  background-color: #075D66;
  Color: #fff;
}
.elementor-widget-n-accordion .e-n-accordion-item[open] > .e-n-accordion-item-title .e-n-accordion-item-title-icon span > svg {
  fill: #fff;
}

/* Popup */
.pum-theme-1002 .pum-title, .pum-theme-enterprise-blue .pum-title {
  color: #075d66;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 42px;
}
/* --- Container du formulaire (optionnel, adapte la classe si besoin) --- */
.custom-contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  font-family: "Barlow Condensed", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Labels et champs (sépare si tu as une structure différente) */
.custom-contact-form label { display:block; margin-bottom:1rem; color:#333; font-weight:500; }
.custom-contact-form input[type="text"],
.custom-contact-form input[type="email"],
.custom-contact-form input[type="tel"],
.custom-contact-form textarea {
  width:100%;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid #e0e0e0;
  font-size:1rem;
  background: #fff;
  transition: box-shadow .18s ease, border-color .18s ease;
  box-sizing: border-box;
}
.custom-contact-form input:focus,
.custom-contact-form textarea:focus {
  outline: none;
  border-color: #075D66;
  box-shadow: 0 6px 18px rgba(39,174,96,0.12);
}

/* Checkbox (alignement) */
.custom-contact-form .wpcf7-list-item,
.custom-contact-form .wpcf7-checkbox {
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin: 0;
  font-size: .95rem;
  color:#555;
}

/* ---------------- Button (identique style .download-btn) ---------------- */
:root{
  --brand: #075D66; /* si tu utilises déjà --brand, garde la valeur */
}

/* Applique au bouton personnalisé ET au fallback input */
.custom-contact-form .wpcf7-form-control.wpcf7-submit,
.custom-contact-form button.wpcf7-form-control.wpcf7-submit.custom-contact-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  background: #fff;
  color: var(--brand);
  border: 2px solid var(--brand);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, color .22s ease, background .22s ease;
  text-decoration: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* SVG/icon inside button uses currentColor so it changes automatically */
.custom-contact-form .wpcf7-form-control.wpcf7-submit svg.btn-icon,
.custom-contact-form button.wpcf7-form-control.wpcf7-submit.custom-contact-btn svg.btn-icon {
  width: 15px;
  height: 15px;
  display: inline-block;
  flex: 0 0 15px;
  stroke: currentColor;
  fill: #075D66; /* selon SVG */
  transition: transform .2s ease, opacity .2s ease;
}

/* SVG/icon inside button uses currentColor so it changes automatically */
.custom-contact-form .wpcf7-form-control.wpcf7-submit svg.btn-icon:hover,
.custom-contact-form button.wpcf7-form-control.wpcf7-submit.custom-contact-btn:hover svg.btn-icon {
  fill: #fff; /* selon SVG */
}

/* Hover */
.custom-contact-form .wpcf7-form-control.wpcf7-submit:hover,
.custom-contact-form button.wpcf7-form-control.wpcf7-submit.custom-contact-btn:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(39,174,96,0.18);
}
.custom-contact-form .wpcf7-form-control.wpcf7-submit:hover svg.btn-icon,
.custom-contact-form button.wpcf7-form-control.wpcf7-submit.custom-contact-btn:hover svg.btn-icon {
  /* si svg utilise stroke="currentColor" il prendra la couleur blanche au hover */
  transform: translateY(-1px);
  opacity: 1;
}

/* Focus visible (accessibilité) */
.custom-contact-form .wpcf7-form-control.wpcf7-submit:focus,
.custom-contact-form button.wpcf7-form-control.wpcf7-submit.custom-contact-btn:focus {
  outline: 3px solid rgba(39,174,96,0.16);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 600px) {
  .custom-contact-form { padding: 1rem; }
  .custom-contact-form .wpcf7-form-control.wpcf7-submit,
  .custom-contact-form button.wpcf7-form-control.wpcf7-submit.custom-contact-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }
}


/* Responsive */
@media (max-width: 992px) {
  .formation-main-content { flex-direction: column; gap:1.25rem; }
  .formation-text, .formation-cover { flex: 1 1 100%; max-width: 100%; }
  .formation-title { font-size: 2rem; }
}
/* ✅ Responsive : bouton passe dessous */
@media (max-width: 768px) {
  .doc-card-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .doc-right {
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
  }

  .download-btn {
    width: 100%;
    justify-content: center;
  }
}

/* small devices tweaks */
@media (max-width: 600px) {
  .cat-filter-for-tri-reglementation { justify-content:flex-start; }
  .cat-filter-for-tri-reglementation li { font-size:14px; padding:7px 14px; }
  .doc-title { font-size: 18px; }
}
