/*! Template Rochegude - complements ecrits pour Joomla 5 (accessibilite, elements de Joomla 5, impression).
 * (C) 2026 Nymphea studio - GNU GPL v2 ou ulterieure
 */

/* Lien d'evitement : invisible tant qu'il n'a pas le focus clavier */
.rg-skip { position: absolute; left: -9999px; top: 0; z-index: 100000; padding: .75rem 1rem; background: #000; color: #fff; }
.rg-skip:focus { left: 1rem; top: 1rem; color: #fff; }

/* Focus clavier visible partout (l'ancien habillage le masquait parfois) */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #ffbf47; outline-offset: 2px;
}

/* Titre du bandeau de page : balise h1 (un titre de niveau 1 par page) avec l'apparence exacte de l'ancien h3 */
h1.ja-masthead-title { font-family: "Be Vietnam Pro"; font-weight: 400; }

/* Boutons (balises button a la place des liens et span de l'ancien habillage) : memes polices que le texte */
#cookiesck button, #cookiesck_options, #cookiesck_interface button {
  font-family: inherit; font-size: inherit; line-height: inherit; text-transform: none;
}
#cookiesck button.cookiesck_button { font-size: 14px; line-height: 14px; }
#cookiesck_options { padding: 0; }
#cookiesck_interface .cookiesck-main-close { border: 0; }

/* Messages de Joomla 5 (joomla-alert) avec les couleurs du site */
joomla-alert { display: block; margin-bottom: 1rem; padding: .75rem 1.25rem; border: 1px solid transparent; border-radius: .25rem; }
joomla-alert[type="success"] { color: #155724; background: #d4edda; border-color: #c3e6cb; }
joomla-alert[type="info"], joomla-alert[type="notice"] { color: #721c24; background: #ffeded; border-color: #f5c6cb; }
joomla-alert[type="warning"] { color: #856404; background: #fff3cd; border-color: #ffeeba; }
joomla-alert[type="danger"], joomla-alert[type="error"] { color: #721c24; background: #f8d7da; border-color: #f5c6cb; }
joomla-alert .joomla-alert--close { float: right; background: none; border: 0; font-size: 1.25rem; line-height: 1; }

/* Champ piege du formulaire de contact (captcha Rochegude) : hors ecran, ignore des lecteurs d'ecran */
.rg-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Impression d'un article (lien Imprimer) */
body.contentpane { background: #fff; } /* vue imprimable : marges et couleur de texte de l'ancien site (17/11/2026) */
@media print {
  #pop-print, #cookiesck, #cookiesck_options, #cookiesck_overlay, #cookiesck_interface, #back-to-top, .t4-offcanvas, .c-offcanvas-bg, .icons, .rg-skip { display: none !important; }
}

/* Connexion depuis le site : rendu de l'ancien site (pas de bouton "afficher le mot de passe", absent en Joomla 3) */
.login-wrap .input-password-toggle, .password-group .input-password-toggle { display: none; }
.login-wrap .password-group .input-group > .form-control { border-radius: inherit; }
/* Regles de l'ancien habillage (JA Eventcamp, GPL) pour la page de connexion, absentes de la feuille reduite
   (la page de connexion n'etait pas dans les 44 adresses relevees) */
.login-wrap { margin: 4rem auto; max-width: 100%; width: 450px; }
.login-wrap .inputbox { max-width: 100%; }
.login-wrap .password-group .input-group { flex-wrap: nowrap; }
.login-wrap .password-group .input-group > .form-control { flex: 1 1 auto; width: 1%; }
.login-wrap .other-links { text-align: center; }
.login-wrap .other-links ul { margin: 0; padding: 0; list-style: none; }
.login-wrap .other-links ul li { display: inline-block; padding: 0 0.3125rem; }
.login-wrap .other-links ul li a { font-size: 0.875rem; color: #6c757d; }
.login-wrap .other-links ul li a:hover { text-decoration: underline; }
/* Formulaires de compte (mot de passe oublie, identifiant oublie, inscription) : rendu de l'ancien site.
   Mot de passe oublie : Joomla 5 place la consigne dans un <legend> (Joomla 3 : un paragraphe) ; l'etiquette du captcha etait masquee. */
.com-users-reset fieldset > legend, .com-users-reset-confirm fieldset > legend, .com-users-reset-complete fieldset > legend { font-size: 1rem; line-height: 1.625; margin-bottom: 1rem; }
#jform_captcha-lbl { display: none; }

/* Cartes OpenStreetMap (liens a.rg-carte, template.js) : fond local ou encart avant accord, puis iframe openstreetmap.org */
.rg-carte-cadre { position: relative; width: 100%; background: #e9e6df; overflow: hidden; }
.rg-carte-cadre.rg-carte-image { background: none; }
.rg-carte-cadre.rg-carte-image > img { display: block; width: 100%; height: auto; }
.rg-carte-cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rg-carte-attente { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem; text-align: center; color: #333; }
.rg-carte-attente p { margin: 0; max-width: 32rem; }
.rg-carte-image .rg-carte-attente { inset: auto auto .5rem .5rem; padding: 0; }
.rg-carte-image .rg-carte-attente .btn { padding: .25rem .75rem; font-size: .875rem; }
.rg-carte-active .rg-carte-attente { display: none; }
.rg-carte-legende { position: absolute; right: 0; bottom: 0; z-index: 1; margin: 0; padding: .125rem .5rem; font-size: .75rem; line-height: 1.5; background: rgba(255,255,255,.85); color: #333; }
.rg-carte-legende a { color: #333; }
.rg-carte-active .rg-carte-legende { right: auto; left: 0; } /* la carte officielle a sa propre mention en bas a droite */
@media (max-width: 575.98px) {
  .rg-carte-cadre:not(.rg-carte-image) { height: 320px !important; }
  .rg-carte-image .rg-carte-attente { left: .25rem; bottom: 1.75rem; }
}
/* sans JavaScript : le lien de la carte reste un simple lien sous l'image */
.info-bg > p > a.rg-carte, .info-bg > a.rg-carte { font-size: .75rem; }

/* Messages du site (layouts/joomla/system/message.php) : regles de l'ancien habillage (JA Eventcamp / T4 / Bootstrap 4, GPL et MIT),
   absentes de la feuille reduite (aucun message n'etait affiche pendant le releve des selecteurs) */
.alert{position:relative;padding:.75rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:2rem}
.alert-heading{color:inherit}
.alert-dismissible{padding-right:4rem}
.alert-success,.alert-message{color:#285b2a;background-color:#dbefdc;border-color:#cde9ce}
.alert-success hr,.alert-message hr{border-top-color:#bbe1bd}
.alert-success .alert-link,.alert-message .alert-link{color:#18381a}
.alert-info{color:#00626e;background-color:#ccf2f6;border-color:#b8ecf3}
.alert-info hr{border-top-color:#a2e6ef}
.alert-info .alert-link{color:#00353b}
.alert-warning,.alert-notice{color:#84701c;background-color:#fff7d7;border-color:#fef4c6}
.alert-warning hr,.alert-notice hr{border-top-color:#feefad}
.alert-warning .alert-link,.alert-notice .alert-link{color:#5a4c13}
.alert-danger,.alert-error{color:#7f231c;background-color:#fdd9d7;border-color:#fccac7}
.alert-danger hr,.alert-error hr{border-top-color:#fbb3af}
.alert-danger .alert-link,.alert-error .alert-link{color:#551713}
.close{float:right;font-size:1.5rem;font-weight:600;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.5}
.close:hover{color:#000;text-decoration:none}
.close:not(:disabled):not(.disabled):hover,.close:not(:disabled):not(.disabled):focus{opacity:.75}
.alert .alert-message{background-color:transparent;padding:0;color:inherit}
.alert-notice{text-align:left}
.alert-message{text-align:left}
.alert-warning,.alert-notice{text-align:left}
.alert .close{-webkit-box-sizing:content-box;box-sizing:content-box;width:1em;height:1em;padding:.25em .25em;color:#000;background:transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;border:0;border-radius:.25rem;opacity:.5}
.alert .close:hover{color:#000;text-decoration:none;opacity:.75}
.alert .close:focus{outline:0;-webkit-box-shadow:0 0 0 .25rem rgba(13,110,253,.25);box-shadow:0 0 0 .25rem rgba(13,110,253,.25);opacity:1}
.alert .close{position:absolute;right:1rem;top:1rem;overflow:hidden;text-indent:-999rem}

/* Recherche (com_finder, surcharge html/com_finder/search/default_form.php) : regles de l'ancien habillage (JA Eventcamp / Bootstrap 4,
   GPL et MIT), absentes de la feuille reduite (la page de recherche n'etait pas dans les adresses relevees) */
.input-group-prepend,.input-group-append,.input-group-addon{display:-webkit-box;display:-ms-flexbox;display:flex}
.input-group-prepend .btn,.input-group-append .btn,.input-group-addon .btn{position:relative;z-index:2}
.input-group-prepend .btn:focus,.input-group-append .btn:focus,.input-group-addon .btn:focus{z-index:3}
.input-group-prepend .btn+.btn,.input-group-prepend .btn+.input-group-text,.input-group-prepend .input-group-text+.input-group-text,.input-group-prepend .input-group-text+.btn,.input-group-append .btn+.btn,.input-group-addon .btn+.btn,.input-group-append .btn+.input-group-text,.input-group-addon .btn+.input-group-text,.input-group-addon>.btn+span,.input-group-append .input-group-text+.input-group-text,.input-group-addon .input-group-text+.input-group-text,.input-group-addon>span+.input-group-text,.input-group-addon>.input-group-text+span,.input-group-addon>span+span,.input-group-append .input-group-text+.btn,.input-group-addon .input-group-text+.btn,.input-group-addon>span+.btn{margin-left:-2px}
.input-group-prepend{margin-right:-2px}
.input-group-append,.input-group-addon{margin-left:-2px}
.input-group-addon>span{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:.5rem 1.875rem;margin-bottom:0;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;text-align:center;white-space:nowrap;background-color:#ebebeb;border:2px solid #edf5ff;border-radius:2rem}
.input-group-addon>span input[type=radio],.input-group-addon>span input[type=checkbox]{margin-top:0}
.input-group>.input-group-append:not(:last-child)>.btn,.input-group>.input-group-append:not(:last-child)>.input-group-text,.input-group>.input-group-append:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group>.input-group-append:last-child>.input-group-text:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}
.input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text{border-top-left-radius:0;border-bottom-left-radius:0}
.input-group-addon>span[class^=icon-],.input-group-addon>span[class*=" icon-"]{width:auto;height:auto}
div#finder-filter-window .filter-branch{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}
div#finder-filter-window .filter-branch .finder-selects{float:none;-ms-flex-preferred-size:100%;flex-basis:100%;margin:0 0 1.25rem 0}
@media (min-width:576px){div#finder-filter-window .filter-branch .finder-selects{-ms-flex-preferred-size:auto;flex-basis:auto;margin:0 1.25rem 0r 0}}
@media (min-width:768px){div#finder-filter-window .filter-branch .finder-selects{margin:0 1.875rem 1.25rem 0}}
@media (min-width:992px){div#finder-filter-window .filter-branch .finder-selects{margin-bottom:0}}
div#finder-filter-window .filter-branch .finder-selects label{clear:right;display:block;margin-bottom:.625rem;width:100%}
.com-finder{max-width:900px;margin:auto}
.com-finder .form-inline{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}
.com-finder .form-inline label{color:#12114a;font-size:2.5rem;margin-bottom:1.25rem;font-weight:600}
@media (max-width:575.98px){.com-finder .form-inline label{font-size:1.875rem}}
.com-finder .form-inline .input-group{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;width:800px;max-width:100%}
.com-finder .form-inline .input-group .form-control,.com-finder .form-inline .input-group .inputbox{border-radius:2rem;max-width:100%;width:100%}
.com-finder .form-inline .input-group .input-group-append,.com-finder .form-inline .input-group .input-group-addon{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-top:15px}
.com-finder .form-inline .input-group .input-group-append .btn,.com-finder .form-inline .input-group .input-group-addon .btn{border-radius:2rem!important;margin:0 .3125rem}
@media (max-width:575.98px){.com-finder .form-inline .input-group .input-group-append .btn,.com-finder .form-inline .input-group .input-group-addon .btn{font-size:.725rem;padding:.66667rem 1.33334rem}}
.com-finder .com-finder__advanced .filter-date .filter-date-operator{margin-bottom:.25rem}
.com-finder .finder-selects br{display:none}
.com-finder .finder-selects .control-label.control-label{display:block;float:none}
.com-finder #search-results{text-align:center}
.com-finder #search-results .result-title{margin-top:1.25rem}
.com-finder #search-results .result-title span.highlight{margin-top:5px;display:inline-block}
.com-finder #search-results .badge{background:#ebebeb;color:#12114a;font-weight:400}
.com-finder #search-results .search-pagination{margin-top:1.25rem}
.com-finder #search-results .search-pages-counter{margin-top:.625rem}
.com-finder .com-finder__pagination ul.pagination{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-top:3rem!important}
.icon-list:before{content:"\f03a"}
.com-finder .com-finder__search.mb-3{margin-bottom:30px!important}
/* Bouton « Imprimer » de la vue imprimable (ancien habillage JA Eventcamp, GPL) */
.contentpane #pop-print{position:absolute;right:1.25rem;top:1.25rem}
.contentpane #pop-print a{background-color:#ebebeb;display:block;padding:.625rem 1.25rem}
.contentpane #pop-print a:hover,.contentpane #pop-print a:focus,.contentpane #pop-print a:active{background-color:#0056b3;color:#fff}
/* Validation des formulaires : pas de texte ajoute dans les etiquettes (ancien site : etiquette et champ en rouge, liste
   des champs invalides dans le bandeau de message, voir template.js) */
label .form-control-feedback { display: none; }
