/*
Theme Name: Structure Child
Theme URI: http://structure.thememove.com
Author: ThemeMove Team
Author URI: http://thememove.com
Description: Theme Child
Version: 3.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: structure
Text Domain: thememove-child
Tags: black, dark, light, two-columns, left-sidebar, fixed-layout, responsive-layout, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
*/

/* ==========================================================================
   SOMMAIRE
   1.  Variables
   2.  Base
   3.  Utilitaires
   4.  Titres et séparateurs
   5.  Navigation et menus
   6.  Tableaux
   7.  Formulaires (Formidable)
   8.  Slider (Revolution)
   9.  Blocs de contenu
   10. Carte à points
   11. Compteurs
   12. Onglets et boutons WPBakery
   13. Actualités et grilles
   14. Pied de page et plan du site
   15. Media queries
   ========================================================================== */

/* ==========================================================================
   1. Variables
   ========================================================================== */

:root {
  --c-blue: #0068ac;
  --c-cyan: #30cffe;
  --c-red: #fd3a06;
  --c-grey-bg: #f4f4f4;
  --c-grey-border: #d3d3d3;
  --font-base: "Lato", sans-serif;
}

/* La police Lato n'est plus chargée ici.
   Voir le snippet functions.php fourni : wp_enqueue_style + preconnect + display=swap.
   Un @import bloque le rendu de la page. */

/* ==========================================================================
   2. Base
   ========================================================================== */

body {
  font-family: var(--font-base);
}

body.title-white h1.entry-title {
  color: #fff !important;
}

.vc_row {
  background-size: cover;
  background-position: top center;
}

.has-bg {
  background-position: top center;
  background-size: cover;
}

.bg-news {
  background-image: url("/wp-content/uploads/2016/03/header_section_news.jpg");
}

/* ==========================================================================
   3. Utilitaires
   ========================================================================== */

.btn {
  padding: 10px 20px;
  display: inline-block;
  text-transform: uppercase;
}

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

.hide-custom-img {
  display: none;
}

.cat-bottom {
  margin-bottom: -80px !important;
}

.martop {
  margin-top: -40px;
  margin-left: 15px;
}

.spacemt {
  padding-top: 20px !important;
  display: block;
  margin-bottom: -25px !important;
}

img.img-plus {
  width: 15%;
  margin: -65px auto 0;
  display: block;
}

table.width100 {
  width: 100% !important;
}

/* ==========================================================================
   4. Titres et séparateurs
   ========================================================================== */

.title h2,
.title h4 {
  border-bottom: 4px solid var(--c-blue);
  padding-bottom: 4px;
  margin-bottom: 20px;
  display: inline-block;
}

.title2 h2 {
  padding-bottom: 4px;
  border-bottom: 4px solid var(--c-blue);
}

.title-section {
  text-align: center;
  padding-bottom: 60px;
}

.title-section h2 {
  text-transform: uppercase;
  border-bottom: 3px solid var(--c-cyan);
  display: inline-block;
  font-size: 40px;
  padding-bottom: 10px;
}

.title-section.black h2 {
  color: #000;
}

.divider-alex {
  margin-top: 20px;
  margin-bottom: 10px;
}

.divider-alex .vc_sep_holder .vc_sep_line {
  border-top: 3px solid var(--c-blue) !important;
  width: 50px;
  margin: auto;
}

/* ==========================================================================
   5. Navigation et menus
   ========================================================================== */

.breadcrumb ul.tm_bread_crumb::before {
  content: none;
}

.social .menu li a {
  font-size: 16px;
  text-transform: uppercase;
}

#menu-top-area li {
  margin-left: auto;
  margin-right: auto;
}

#menu-top-area li a {
  font-size: 16px;
  text-transform: uppercase;
}

#menu-top-area li:first-child a::after {
  content: " | ";
  color: var(--c-cyan);
  padding: 0 5px;
}

body.header-preset-01 .navigation div ul#primary-menu > li > a {
  margin: 0 7px;
}

/* ==========================================================================
   6. Tableaux
   ========================================================================== */

table.tableau {
  background-color: var(--c-grey-bg);
  padding: 10px 20px;
}

table.tableau thead tr th {
  text-align: center;
  font-weight: bold;
}

table.tableau thead tr th:first-child {
  text-align: left;
  padding-left: 10px;
}

table.tableau tbody tr:last-child td {
  border-bottom: 0;
}

table.tableau tbody tr:nth-child(odd) {
  background-color: rgba(0, 104, 172, 0.2);
}

table.tableau tbody tr td {
  text-align: center;
}

table.tableau tbody tr td:first-child {
  text-align: left;
  padding-left: 10px;
  max-width: 400px;
  word-wrap: break-word;
}

/* ==========================================================================
   7. Formulaires (Formidable)
   ========================================================================== */

.frm_style_formidable-style.with_frm_style input[type="submit"] {
  box-shadow: none;
  border-radius: 0;
  border: 1px solid var(--c-blue);
  font-size: 20px;
  color: var(--c-blue);
  font-weight: bold;
}

.frm_style_formidable-style.with_frm_style input[type="submit"]:hover,
.frm_style_formidable-style.with_frm_style input[type="submit"]:focus-visible {
  background-color: var(--c-blue);
  color: #fff;
}

/* ==========================================================================
   8. Slider (Revolution)
   ========================================================================== */

.slider-eau-dela .blue {
  color: var(--c-cyan);
}

.slider-eau-dela .red {
  color: var(--c-red);
}

.slider-eau-dela .avis-list-item {
  color: var(--c-blue);
  text-transform: uppercase;
  position: relative;
  padding-left: 28px;
}

.slider-eau-dela .avis-list-item::before {
  content: "\f054";
  font-family: "FontAwesome";
  font-weight: 900; /* requis si le site passe en Font Awesome 5 ou 6 */
  left: -5px;
  position: absolute;
  top: 0;
  color: var(--c-cyan);
}

.slider-eau-dela .slider-eau > span {
  font-size: 1em !important;
}

.slider-eau-dela .slider-block {
  padding: 15px;
  background: var(--c-cyan);
  display: inline-block;
}

.slider-eau-dela .tp-revslider-mainul li .lightblue {
  color: var(--c-cyan);
}

/* ==========================================================================
   9. Blocs de contenu
   ========================================================================== */

.faq-classic.wpb_column {
  margin: 20px 0;
}

.vc_general.vc_cta3 .vc_cta3-content {
  vertical-align: middle;
}

.vc_general.vc_cta3 .vc_cta3-content-header h2 {
  color: #fff !important;
  font-size: 40px;
  font-weight: 400;
  margin: 0;
  padding: 0;
}

.vc_general.vc_cta3 .vc_btn3-container button {
  font-size: 20px;
}

.vc_general.vc_cta3 .vc_btn3-container button:hover,
.vc_general.vc_cta3 .vc_btn3-container button:focus-visible {
  color: var(--c-blue);
  background: #fff;
}

.info-block p,
.info-block .bottom {
  position: relative;
}

.info-block .bottom {
  width: 90%;
  margin-left: 10%;
  margin-top: -70px;
  padding: 25px;
  background: #fff;
}

.info-block .bottom h2 {
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 900;
}

.info-block .bottom .btn {
  color: var(--c-blue); /* était #30cffe : contraste 1,9:1 sur blanc, sous le seuil WCAG AA */
  font-weight: 900;
  border: 2px solid lightgray;
  margin-top: 20px;
}

a.fichier-audio {
  padding-left: 6px;
}

/* Fiche audio : masquage de l'agrandissement prettyPhoto.
   Remplacer .page-fiche-audio par la classe body réelle de la page (ex-#post-157). */
.page-fiche-audio div.pp_default .pp_expand {
  display: none !important;
}

/* Page sans listes indentées (ex-#post-388).
   Ajouter la classe .no-list-indent au body de la page concernée. */
.no-list-indent .entry-content ul {
  margin: 0 !important;
}

/* ==========================================================================
   10. Carte à points
   ==========================================================================
   Positionnement par nth-child : l'ordre du HTML porte la mise en page.
   Ajouter ou déplacer un point décale tous les suivants.

   Migration recommandée : poser les coordonnées dans le HTML
     <span class="point" style="--x:13%; --y:14%"></span>
   puis remplacer tout le bloc nth-child par :
     .img-container .point { left: var(--x, 0); top: var(--y, 0); }

   Accessibilité : les points sont cliquables mais non focusables.
   Les passer en <button type="button"> avec un libellé masqué visuellement.
   ========================================================================== */

.img-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.img-container img {
  max-width: 100%;
}

.img-container .zoom {
  display: inline-block;
  position: absolute;
  right: -4%;
  top: 5%;
}

.img-container .point {
  width: 30px;
  height: 30px;
  border-radius: 30px;
  position: absolute;
  display: inline-block;
  line-height: 30px;
  background-color: transparent;
  text-align: center;
  top: 0;
  left: 0;
  z-index: 3;
  margin: auto;
  cursor: pointer;
}

.img-container .point:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 2px;
}

.img-container .point .inner {
  color: transparent;
  line-height: 1em;
  display: inline-block;
  vertical-align: middle;
  font-size: 20px;
}

.img-container .point:nth-child(2) {
  left: -58%;
  top: 24%;
}

.img-container .point.huit:nth-child(2) {
  left: 13%;
  top: 14%;
}

.img-container .point:nth-child(3) {
  left: auto;
  right: 50%;
  top: 18%;
}

.img-container .point.neuf:nth-child(3) {
  left: auto;
  right: 14%;
  top: 38%;
}

.img-container .point:nth-child(4) {
  left: auto;
  right: 29%;
  top: 30%;
}

.img-container .point.dix:nth-child(4) {
  left: auto;
  right: 56%;
  top: 62%;
}

.img-container .point:nth-child(5) {
  left: 73%;
  top: 11%;
}

.img-container .point:nth-child(6) {
  left: 84%;
  top: 41%;
}

.img-container .point:nth-child(7) {
  left: 57%;
  top: 41%;
}

.img-container .point:nth-child(8) {
  left: 45%;
  top: 41%;
}

/* right: 6% était ignoré (left: 0 l'emporte en LTR sur un élément de largeur fixe).
   Comportement conservé à l'identique. À trancher si le point doit passer à droite. */
.img-container .point:nth-child(9) {
  left: 0;
  top: auto;
  bottom: -2%;
}

.img-container .point:nth-child(10) {
  left: 19%;
  top: 82%;
}

.img-container .point:nth-child(11) {
  left: auto;
  right: 28%;
  top: 82%;
}

/* ==========================================================================
   11. Compteurs
   ========================================================================== */

.counter-text img {
  max-height: 148px;
  width: auto;
}

.counter-text .big-number h2 {
  color: #fff;
  font-size: 50px;
  text-align: center;
  margin-bottom: 0;
}

.counter-text p {
  text-transform: uppercase;
  color: #fff;
  text-align: center;
}

/* ==========================================================================
   12. Onglets et boutons WPBakery
   ========================================================================== */

.vc_tta-color-grey.vc_tta-style-modern .vc_tta-tab.vc_active > a {
  background-color: var(--c-blue) !important;
  color: #fff !important;
}

.vc_tta-color-grey.vc_tta-style-modern.vc_tta-tabs .vc_tta-panels {
  background-color: #fff !important;
}

.vc_tta.vc_tta-style-modern.vc_tta-tabs .vc_tta-panels {
  border: none !important;
}

.vc_tta.vc_tta-style-modern .vc_tta-panel-body,
.vc_tta.vc_tta-style-modern .vc_tta-panel-heading,
.vc_tta.vc_tta-style-modern .vc_tta-tab > a {
  border-color: transparent !important;
}

.vc_tta.vc_general .vc_tta-panel-body {
  padding: 0 20px !important;
}

.vc_btn3.vc_btn3-color-juicy-pink,
.vc_btn3.vc_btn3-color-juicy-pink.vc_btn3-style-flat {
  font-size: 13px !important;
  line-height: 19px !important;
  color: var(--c-blue) !important; /* était #30cffe : illisible sur blanc en 13px */
  font-weight: 900 !important;
  padding: 10px 20px !important;
  border-radius: 0 !important;
  background-color: #fff !important;
  z-index: 2 !important;
  text-transform: uppercase !important;
  border: 0 solid var(--c-grey-border) !important;
}

/* ==========================================================================
   13. Actualités et grilles
   ========================================================================== */

.vc_custom_heading.vc_gitem-post-data.vc_gitem-post-data-source-post_date {
  display: none !important;
}

.post-thumb .dates {
  display: none !important;
}

/* Actualité sans vignette (ex-#post-788).
   Ajouter la classe .no-thumb au body de l'article concerné. */
.no-thumb .post-thumb {
  display: none !important;
}

.grid-nouvelles .esg-entry-media {
  height: 250px;
  overflow: hidden;
}

.home .vc_gitem-zone.vc_gitem-zone-a.vc_gitem-is-link {
  height: 183px !important;
}

.home .recent-posts .entry-excerpt {
  font-size: 18px;
}

.home .recent-posts .recent-posts__thumb {
  display: none;
}

.home .recent-posts__item a {
  font-size: 22px;
  font-weight: 900;
}

/* ==========================================================================
   14. Pied de page et plan du site
   ========================================================================== */

.footer .textwidget i {
  color: var(--c-blue);
  margin-right: 10px !important;
}

.sitemap {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 20px;
}

.sitemap li i {
  color: var(--c-blue);
  font-size: 14px;
}

/* ==========================================================================
   15. Media queries
   ========================================================================== */

@media (max-width: 990px) {
  .img-container .zoom {
    right: -7%;
    top: 0;
    width: 30px;
  }
}

@media (max-width: 956px) {
  .img-container .point .inner {
    font-size: 22px;
  }
}

@media (max-width: 767px) {
  .scroll-x {
    overflow-x: scroll;
  }

  table.tableau {
    padding: 0;
  }

  table.tableau thead tr th {
    font-size: 13px; /* était 11px */
  }

  .sitemap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 479px) {
  .slider-eau-dela .avis-list-item::before {
    content: "";
  }
}
