/*
Theme Name: Exigences Groupe
Theme URI: https://exigencesgroupe.com/
Author: Exigences Groupe
Author URI: https://exigencesgroupe.com/
Description: Thème WordPress sur mesure pour Exigences Groupe — cabinet de conseil & services pluriels (ExiTech, ExiJob, ExiProd, ExiSchool). Portage complet de la maquette HTML/CSS/JS du site. Design system complet (tokens, boutons, sections, composants), 100 % compatible Elementor : chaque page fonctionne telle quelle et reste éditable dans Elementor (les blocs se reconstruisent avec des widgets natifs : conteneurs, titres, texte, images, boutons, icônes). Inclut les gabarits : accueil, à propos, pôles, réalisations, actualités, carrières, contact, pages légales, articles.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: exigences-groupe
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, one-column, two-columns, full-width-template, elementor
*/

/*
   Ce fichier contient l'en-tête du thème + les styles propres au thème
   WordPress (admin bar, classes d'alignement, commentaires, pagination).
   Le design system du site vit dans assets/css/ :
   - tokens.css       → variables CSS (couleurs, typographie, espacement, ombres)
   - main.css         → base, boutons, header, hero, responsive
   - sections.css     → sections du site (preuve, stats, pôles, processus…)
   - components.css   → composants (split, team, articles, formulaires, légal…)
   - elementor.css    → mise en cohérence des widgets Elementor avec le design
*/

/* ---------------------------------------------------------------
   ADMIN BAR WordPress
   --------------------------------------------------------------- */
.admin-bar .header {
  top: 32px;
}
.admin-bar .header.has-banner {
  top: 68px;
}
.admin-bar .progress-bar {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }
  .admin-bar .header.has-banner {
    top: 82px;
  }
  .admin-bar .progress-bar {
    top: 46px;
  }
}

/* ---------------------------------------------------------------
   ÉDITEUR Elementor : on neutralise le scroll custom et le curseur
   pour ne pas perturber le drag & drop (voir aussi main.js).
   --------------------------------------------------------------- */
.elementor-editor-active .cursor,
.elementor-editor-active .progress-bar {
  display: none !important;
}

/* Pages intérieures : en-tête opaque dès le chargement (cf. .header--solid
   dans components.css). Le logo sombre prend le relais immédiatement. */
.eg-inner-page .header {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.eg-inner-page .header .header__logo--white { display: none; }
.eg-inner-page .header .header__logo--dark  { display: block; }
.eg-inner-page .header .header__menu a { color: var(--color-text); }
.eg-inner-page .header .hamburger span { background: var(--color-text); }

/* ---------------------------------------------------------------
   STRUCTURE WORDPRESS PAR DÉFAUT
   --------------------------------------------------------------- */
body {
  font-family: var(--font-body);
}

/* Contenu inséré par the_content() dans les gabarits (posts, pages
   construites avec Elementor, prose des articles) */
.entry-content {
  width: 100%;
}
.entry-content > * {
  max-width: 100%;
}

/* Pagination (pagination de l'archive) */
.eg-pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-7);
  flex-wrap: wrap;
}
.eg-pagination a,
.eg-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  transition: all var(--dur-base) var(--ease-out);
}
.eg-pagination a:hover,
.eg-pagination .page-numbers:hover,
.eg-pagination .page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
}

/* ---------------------------------------------------------------
   COMMENTAIRES (single.php)
   --------------------------------------------------------------- */
.comments-area {
  margin-top: var(--space-8);
  padding-top: var(--space-7);
  border-top: 1px solid var(--color-border);
}
.comments-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-5);
}
.comment-list {
  list-style: none;
  margin: 0 0 var(--space-6);
}
.comment {
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}
.comment .comment-author {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
}
.comment .comment-metadata {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: var(--space-1) 0 var(--space-3);
}
.comment-body p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}
.comment-reply-link {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
}
.comment-form .comment-form-author,
.comment-form .comment-form-email {
  max-width: 420px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.8em 1em;
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.comment-form .submit {
  margin-top: var(--space-3);
}

/* ---------------------------------------------------------------
   CLASSES D'ALIGNEMENT / GUTENBERG
   --------------------------------------------------------------- */
.alignwide {
  margin-left: calc(50% - min(50%, var(--container) / 2));
  margin-right: calc(50% - min(50%, var(--container) / 2));
  width: auto;
}
.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: auto;
  max-width: none;
}
.alignleft {
  float: left;
  margin: 0 var(--space-5) var(--space-4) 0;
}
.alignright {
  float: right;
  margin: 0 0 var(--space-4) var(--space-5);
}
.aligncenter {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.wp-caption {
  max-width: 100%;
}
.wp-caption-text {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  text-align: center;
}
.sticky {
  display: block;
}
.bypostauthor {
  display: block;
}
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* ---------------------------------------------------------------
   OFFRES D'EMPLOI (page-templates/page-carrieres.php)
   Liste affichée quand des offres (type « job ») sont publiées.
   --------------------------------------------------------------- */
.jobs-list {
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-4);
}
.job {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  transition: border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.job:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.job h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
}
.job h3 a {
  color: var(--color-text);
  text-decoration: none;
}
.job h3 a:hover {
  color: var(--color-accent);
}
.job__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.job__location {
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
}
.job__type {
  font-weight: var(--weight-medium);
}
.job p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}
.job .btn {
  align-self: flex-start;
}

 / *   - - -   W O R D P R E S S   M E N U   R E S E T S   - - -   * / 
 . f o o t e r _ _ l i n k s ,   . m o b i l e - n a v _ _ w p   { 
     l i s t - s t y l e :   n o n e ; 
     p a d d i n g :   0 ; 
     m a r g i n :   0 ; 
 } 
 . f o o t e r _ _ l i n k s   l i ,   . m o b i l e - n a v _ _ w p   l i   { 
     m a r g i n :   0 ; 
     p a d d i n g :   0 ; 
 } 
 . m o b i l e - n a v _ _ w p   { 
     d i s p l a y :   f l e x ; 
     f l e x - d i r e c t i o n :   c o l u m n ; 
     g a p :   v a r ( - - s p a c e - 2 ) ; 
 } 
 . m o b i l e - n a v _ _ w p   a   { 
     d i s p l a y :   b l o c k ; 
     f o n t - s i z e :   v a r ( - - t e x t - 2 x l ) ; 
     f o n t - f a m i l y :   v a r ( - - f o n t - d i s p l a y ) ; 
     f o n t - w e i g h t :   v a r ( - - w e i g h t - s e m i b o l d ) ; 
     p a d d i n g :   v a r ( - - s p a c e - 2 )   0 ; 
     b o r d e r - b o t t o m :   1 p x   s o l i d   v a r ( - - c o l o r - b o r d e r ) ; 
     t r a n s i t i o n :   c o l o r   v a r ( - - d u r - f a s t ) ; 
 } 
 . m o b i l e - n a v _ _ w p   a : h o v e r   { 
     c o l o r :   v a r ( - - c o l o r - a c c e n t ) ; 
 } 
  
 
 . h e a d e r _ _ l o g o   i m g   { 
     m a x - w i d t h :   1 0 0 % ; 
     h e i g h t :   a u t o ; 
     m a x - h e i g h t :   4 2 p x ; 
 } 
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   { 
     . h e a d e r _ _ l o g o   i m g   { 
         m a x - w i d t h :   6 0 v w ; 
     } 
 } 
  
 