/*
 * Styles globaux du site : typographie, surcharges génériques d'Enfold et classes
 * « tris-* » posées dans l'ALB (champ « Custom CSS Class » des éléments).
 *
 * Couleurs : uniquement les tokens --component-color-* de style.css, eux-mêmes reliés
 * aux couleurs réglées dans Enfold. Aucune couleur en dur ici. Voir CLAUDE.md §6.
 *
 * Ordre de chargement : ce fichier (comme contact.css et tris-prestations.css) est
 * enfilé AVANT les feuilles d'Enfold (grid, base, layout, modules ALB, CSS dynamique).
 * À spécificité égale, Enfold l'emporte : c'est la raison des préfixes #top et des
 * quelques !important ci-dessous.
 */

/* --------------------------------------------------- Typographie globale */
body {
  font-family: 'Archivo', Arial, Helvetica, sans-serif !important;
  font-weight: 400 !important;
  font-size: 15px;
  -webkit-font-smoothing: antialiased !important;
  line-height: 1.5 !important;
}

/* Graisse unique des titres : les tailles par élément sont réglées plus bas, mais leur
   graisse reste 500 (ce !important l'emporte sur toute règle de classe). */
h1,
h2,
h3,
h4 {
  text-transform: initial !important;
  font-family: 'Newsreader', Arial, Helvetica, sans-serif !important;
  font-weight: 500 !important;
}

/* --------------------------------------------------- En-tête et menu */
#header .logo a {
  display: flex;
  align-items: center;
}

#top #header .avia_mega_div>.sub-menu>li>ul>li a {
  padding: 7px 10px !important;
}

#top .menu-item .avia-bullet {
  display: none;
}

/* Menu burger : force le menu mobile en dessous du breakpoint desktop d'Enfold */
@media only screen and (max-width: 1224px) {
  #top #header .av-main-nav>li.menu-item {
    display: none !important;
  }

  #top #header .av-burger-menu-main {
    cursor: pointer;
    display: block !important;
  }
}

/* --------------------------------------------------- Pied de page */
#footer {
  padding: 0;
}

#footer .widget {
  margin: 0;
}

#footer .widgettitle {
  font-size: 1.5em;
}

.footer_color p,
.footer_color a,
.footer_color .textwidget,
.footer_color .footer-text-wrapper {
  margin: 0;
  font-size: 14.5px !important;
}

/* Socket (bas de page) : le copyright ne doit pas floater */
#socket .copyright {
  float: none !important;
  width: 100%;
}

#top .container_wrap {
  border-top: none;
}

@media only screen and (max-width: 989px) {

  /* Le conteneur du footer devient une grille à 2 colonnes */
  #footer .container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 30px;
    row-gap: 30px;
  }

  /* Neutralise le clearfix du thème (sinon ::before/::after deviennent des cellules de la grille) */
  #footer .container::before,
  #footer .container::after {
    display: none;
  }

  /* Annule float, largeur et marges des colonnes */
  .responsive #top #wrap_all #footer .container > .flex_column {
    width: 100%;
    margin: 0;
    float: none;
  }
}

/* --------------------------------------------------- Séparateurs courts */
.main_color .hr-short .hr-inner-style,
.main_color .hr-short .hr-inner {
  background-color: var(--enfold-main-color-color) !important;
}

/* --------------------------------------------------- Sur-titres (subheading) */
/* .tris-suptitre : utilisé par le brouillon de prestation « transformation-digitale ». */
.tris-hero-titre .av-subheading,
.tris-titre-section .av-subheading,
.tris-carte-titre .av-subheading,
.tris-apropos-titre .av-subheading,
.tris-suptitre p {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 15px;
}

.tris-titre-section .av-subheading,
.tris-carte-titre .av-subheading,
.tris-apropos-titre .av-subheading {
  margin-bottom: 14px;
}

/* Filet décoratif devant le sur-titre du hero */
.tris-hero-titre .av-subheading p:first-child::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 2px;
  margin-right: 14px;
  vertical-align: middle;
  background: var(--component-color-primary);
}

/* --------------------------------------------------- Titres */
.tris-hero-titre .av-special-heading-tag {
  font-size: 64px;
  line-height: 1.08;
}

.tris-hero-titre em {
  font-style: italic;
  color: var(--component-color-primary);
}

/* Tous les h2 (élément « Titre spécial » de l'ALB) : 38px, sur-titre teal en capitales.
   Le préfixe #top passe devant la taille et la couleur réglées élément par élément dans
   l'ALB (uploads/dynamic_avia/avia_posts_css/). Ne pas redéfinir de taille de h2 par
   classe : seule exception, le titre de #methode (tris-prestations.css), plus spécifique. */
#top .av-special-heading-h2 .av-special-heading-tag {
  font-size: 38px;
}

#top .av-special-heading-h2 .av-subheading {
  color: var(--component-color-accent);
  text-transform: uppercase;
}

.tris-titre-section .av-special-heading-tag {
  line-height: 1.15;
}

.tris-carte-titre .av-special-heading-tag {
  font-size: 22px;
  line-height: 1.3;
}

.tris-apropos-titre .av-special-heading-tag {
  line-height: 1.12;
}

/* --------------------------------------------------- Textes courants */
.tris-lead p {
  font-size: 17px;
  line-height: 1.75;
  margin: 0;
}

.tris-chapo p {
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

/* Utilisé par le brouillon de prestation « transformation-digitale ». */
.tris-note p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

/* --------------------------------------------------- 1. Hero */
.tris-hero-carte {
  box-shadow: 0 24px 60px rgba(10, 58, 51, .09);
}

/* .tris-hero-logo / .tris-hero-filet : modèles ALB « Image logo » et « Photo accueil ». */
.tris-hero-logo img {
  max-width: 190px;
  height: auto;
}

.tris-hero-filet .hr-inner {
  margin-left: auto;
  margin-right: auto;
}

.tris-hero-filet {
  text-align: center;
}

.tris-hero-citation p {
  font-style: italic;
  text-align: center;
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}

/* Encadré chiffre-clé (modèle ALB « 20 ans ») : superposé au bloc image en desktop */
.tris-stat {
  background: var(--component-color-primary);
  padding: 26px 30px;
  text-align: left;
  box-shadow: 0 18px 40px rgba(10, 58, 51, .18);
}

.tris-stat .avia-animated-number-title {
  font-size: 44px;
  line-height: 1;
  color: var(--component-color-text-invert);
}

.tris-stat .avia-animated-number-content,
.tris-stat .avia-animated-number-content p {
  margin: 6px 0 0;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  font-weight: 700;
  color: var(--component-color-accent-light);
}

@media only screen and (min-width:1025px) {
  .tris-hero .tris-stat-ligne {
    margin-top: -118px;
    position: relative;
    z-index: 5;
  }

  .tris-hero .tris-stat {
    max-width: 256px;
    margin-left: auto;
    margin-right: 245px;
  }
}

/* --------------------------------------------------- 2. Bandeau de confiance */
.tris-bandeau {
  border-top: 1px solid var(--component-color-line);
  border-bottom: 1px solid var(--component-color-line);
}

.tris-bandeau .content {
  padding-top: 26px;
  padding-bottom: 26px;
}

.tris-gage-box .iconbox {
  padding: 0;
}

.tris-gage-box .iconbox_icon {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  width: auto;
  height: auto;
  line-height: 1;
  font-size: 20px;
}

.tris-gage-box .iconbox_content_title {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

/* --------------------------------------------------- 3. Je travaille avec (modèle ALB « Je travaille avec ») */
.tris-publics .content {
  padding-top: 34px;
  padding-bottom: 34px;
}

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

.tris-pastille-texte p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

/* --------------------------------------------------- 4. Le constat */
.tris-carte {
  border-top: 3px solid var(--component-color-accent) !important;
}

.tris-carte-texte p,
.tris-carte-texte li {
  font-size: 17px !important;
  line-height: 1.7;
  margin: 0;
}

/* --------------------------------------------------- 5. Prestations */
.tris-service .iconbox {
  padding: 0;
  text-align: left;
}

.tris-service .iconbox_icon {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  position: static;
  margin: 0 0 22px;
  width: auto;
  height: auto;
  line-height: 1;
  font-size: 24px;
}

.tris-service .iconbox_content_title {
  font-size: 19px;
  line-height: 1.3;
  margin: 0 0 12px;
}

.tris-service .iconbox_content p,
.tris-service .iconbox p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

/* Cartes services : filet + bouton alignés en bas, cartes de même hauteur */
#top .flex_column_table_cell.tris-service {
  display: flex;
  flex-direction: column;
}

#top .flex_column_table_cell.tris-service > .hr {
  margin-top: auto; /* pousse filet + bouton en bas de la carte */
}

#top .flex_column_table_cell.tris-service > .hr .hr-inner {
  top: 0;
}

@media only screen and (min-width: 990px) {
  #top .flex_column_table.av-equal-height-column-flextable:has(> .tris-service) {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  #top .flex_column_table.av-equal-height-column-flextable > .flex_column_table_cell.tris-service {
    flex: 1 1 0;
    min-width: 0;
    margin-left: 0;
  }
}

/* 990–1100 px : évite que « Voir mon accompagnement » passe sur 2 lignes */
@media only screen and (min-width: 990px) and (max-width: 1100px) {
  #top .flex_column_table_cell.tris-service .avia-button {
    font-size: 20px;
  }
}

/* --------------------------------------------------- 6. Appel à l'action */
.tris-cta-carte {
  box-shadow: 0 30px 70px rgba(0, 0, 0, .20);
}

.tris-bouton-pleine-largeur .avia-buttonrow-wrap {
  display: block;
}

.tris-bouton-pleine-largeur .avia-button {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* --------------------------------------------------- Boutons (aspect commun) */
.tris-hero-boutons .avia-button,
.tris-bouton-pleine-largeur .avia-button {
  border-radius: 0;
  font-weight: 600;
  letter-spacing: .01em;
}

/* --------------------------------------------------- À propos */
.tris-portrait {
  background: var(--component-color-tint);
}

.tris-portrait img {
  display: block;
  width: 100%;
  height: auto;
}

/* --------------------------------------------------- Responsive */
@media only screen and (max-width:1024px) {
  .tris-hero-titre .av-special-heading-tag {
    font-size: 48px;
  }

  #top .av-special-heading-h2 .av-special-heading-tag {
    font-size: 36px;
  }

  .tris-hero .tris-stat {
    max-width: 100%;
    margin: 24px 0 0;
  }
}

@media only screen and (max-width:767px) {
  .tris-hero-titre .av-special-heading-tag {
    font-size: 34px;
  }

  #top .av-special-heading-h2 .av-special-heading-tag {
    font-size: 28px;
  }

  .tris-lead p {
    font-size: 16px;
  }

  .tris-pastille {
    margin-bottom: 10px !important;
  }

  .tris-gage {
    margin-bottom: 14px !important;
  }

  .tris-service,
  .tris-carte {
    margin-bottom: 16px !important;
  }
}
