/* =====================================================
   PDC Formations — CSS non-critique
   Chargé en async après le LCP
===================================================== */

/* TYPOGRAPHIE */
.fondt { background-color: #dcdcdc; }
.gras  { font-weight: 700; }
.h3c   { font-size: 18px; text-decoration: underline; }
.h4c   { font-size: 16px; text-decoration: underline; }

/* NAVIGATION */
.navbar-nav .nav-link { color: #ffffff !important; }
.navbar-nav .nav-link:hover { text-decoration: underline; }

/* TITRES H2C (utilisés en dessous de la fold) */
.h2c {
  background-color: #3d8bfd;
  color: #ffffff;
  padding: 8px 18px 8px 46px;
  font-size: 19px;
  font-weight: 600;
  display: block;
  width: 100%;
  border-radius: 6px 6px 0 0;
  margin-bottom: 14px;
  position: relative;
}

.h2c::before {
  content: ">";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 700;
  opacity: 0.9;
}

/* IMAGES & GRILLES */
.img-content,
.img-responsive {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 10px auto;
  aspect-ratio: 4 / 3;
  background-color: #eee;
  border-radius: 5px;
}

.responsive-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.responsive-grid img {
  width: 120px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

@media (min-width: 992px) {
  .responsive-grid { gap: 20px; }
  .responsive-grid img { width: 150px; }
}

/* TABLEAUX & FORMULAIRES */
.table-wrapper { width: 100%; overflow-x: auto; }

.responsive-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

.responsive-table th,
.responsive-table td {
  padding: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
}

#t18 {
  width: 100%;
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background-color: #ffffff;
}

#t18::placeholder { color: #666; }

/* FAQ */
.faq-section { margin-top: 24px; }

.faq-item {
  background: #ffffff;
  border: 1px solid #e0e8f5;
  border-radius: 6px;
  margin-bottom: 10px;
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 12px 18px;
  font-weight: 600;
  color: #1f4e79;
  list-style: none;
  position: relative;
  padding-right: 40px;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #3d8bfd;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item .faq-answer {
  padding: 0 18px 14px 18px;
  color: #333;
}

/* FOOTER */
footer {
  background: linear-gradient(to bottom, #3d8bfd 0%, #3a84fa 100%);
}

footer a,
footer a:visited,
footer a:active,
footer a:focus {
  color: #ffffff !important;
  text-decoration: none;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

footer .ecriture { color: #ffffff; }

.logo-responsive {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* =====================================================
   À AJOUTER à la fin de ton styles-pdc.css
===================================================== */

/* LISTE DES VILLES (maillage interne) */
.villes-liste {
  display: block;
  margin: 14px 0;
  padding: 12px 16px;
  background-color: #ffffff;
  border: 1px solid #e0e8f5;
  border-radius: 6px;
  line-height: 1.9;
  font-size: 14px;
  color: #555;
}

.villes-liste a {
  color: #1f4e79;
  text-decoration: none;
  white-space: nowrap;
}

.villes-liste a:hover {
  text-decoration: underline;
  color: #3d8bfd;
}

/* Limite la hauteur visible avec un "voir plus" CSS-only */
.villes-liste {
  max-height: 240px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.3s ease;
}

.villes-liste::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #ffffff 80%);
  pointer-events: none;
}

.villes-liste:hover,
.villes-liste:focus-within {
  max-height: 9999px;
}

.villes-liste:hover::after,
.villes-liste:focus-within::after {
  display: none;
}
/* =====================================================
   À AJOUTER à la fin de ton styles-pdc.css
===================================================== */

/* Formulaire de recherche par ville (sidebar) */
.form-ville {
    margin: 14px 0;
}

.form-ville #t18 {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #ffffff;
    font-size: 15px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-ville #t18:focus {
    outline: none;
    border-color: #3d8bfd;
    box-shadow: 0 0 0 3px rgba(61, 139, 253, 0.2);
}

.form-ville #t18::placeholder {
    color: #888;
    font-style: italic;
}

.form-ville .form-help {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* Classe utilitaire d'accessibilité (cache visuellement mais reste pour les lecteurs d'écran) */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
