/*
Theme Name: Job Board by Ejobsitesoftware
Theme URI: https://ejobsitesoftware.com/free-wordpress-theme/
Author: Ejobsitesoftware
Author URI: https://ejobsitesoftware.com/
Description: A responsive WordPress theme for the Ejobsitesoftware plugin, built with Bootstrap 5.
Version: 1.6
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-logo, theme-options, translation-ready
Text Domain: job-board-by-ejobsitesoftware
Copyright: © 2025 Ejobsitesoftware. All rights reserved.
*/

/* ============================================================
   DESIGN SYSTEM — Variables globales (TalentMaroc)
   ============================================================ */
:root {
  /* Couleurs principales */
  --c-primary:       #1a3a5c;
  --c-primary-light: #2563a8;
  --c-accent:        #e85d26;
  --c-accent-light:  #ff7a45;
  --c-gold:          #f0a500;

  /* Fonds */
  --c-bg:       #f6f4f0;
  --c-surface:  #ffffff;
  --c-surface2: #f0ece6;

  /* Textes */
  --c-text:  #1a1a1a;
  --c-text2: #5a5a5a;
  --c-text3: #9a9a9a;

  /* Bordures */
  --c-border: #e0dbd4;

  /* Sémantiques */
  --c-success:    #0d7a4e;
  --c-success-bg: #e6f4ed;
  --c-warn:       #b45309;
  --c-warn-bg:    #fef3c7;
  --c-danger:     #c0392b;
  --c-danger-bg:  #fdeaea;
  --c-info:       #1a3a5c;
  --c-info-bg:    #e6eef8;

  /* Rayons */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Ombres */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, .07);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .10);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .10), 0 4px 6px -4px rgba(0, 0, 0, .10);

  /* Typographie */
  --font-head: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Animation */
  --transition: 200ms ease;
}


/* ============================================================
   BASE & RESET (compatible WordPress)
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body) !important;
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: var(--c-primary-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--c-primary);
}

/* Titres WordPress */
header h1 {
  margin: 0;
  text-align: center;
  font-family: var(--font-head);
  color: var(--c-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--c-text);
  line-height: 1.2;
}

p {
  color: var(--c-text2);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font-family: var(--font-body);
  font-size: 14px;
}


/* ============================================================
   LAYOUT
   ============================================================ */
.container,
.container-fluid {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.layout-sidebar {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 32px 0;
}

.section {
  padding: 60px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  color: var(--c-text);
}

.section-link {
  font-size: 14px;
  color: var(--c-primary-light);
  font-weight: 500;
  cursor: pointer;
}

.section-link:hover {
  text-decoration: underline;
}


/* ============================================================
   NAVBAR / HEADER
   ============================================================ */
nav,
.site-header,
#masthead {
  background: var(--c-primary);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner,
.site-header .container {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.nav-logo,
.site-title,
.site-title a {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo span,
.site-title span {
  color: var(--c-gold);
}

/* Liens de navigation */
.nav-links,
.main-navigation ul,
#primary-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a,
.main-navigation ul li a,
#primary-menu li a {
  color: rgba(255, 255, 255, .75) !important;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active,
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
  color: #fff !important;
  background: rgba(255, 255, 255, .12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* Avatar utilisateur */
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .20);
  border: 2px solid rgba(255, 255, 255, .40);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}

/* Boutons navbar */
.btn-ghost-white {
  color: rgba(255, 255, 255, .85);
  border: 1.5px solid rgba(255, 255, 255, .30);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  background: none;
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.btn-accent {
  background: var(--c-accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-accent:hover {
  background: var(--c-accent-light);
}


/* ============================================================
   BOUTONS
   ============================================================ */
.btn,
button.btn,
input[type="submit"],
input[type="button"],
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary,
input[type="submit"],
.ejobsite-submit-btn {
  background: var(--c-primary-light);
  color: #fff !important;
}

.btn-primary:hover,
input[type="submit"]:hover,
.ejobsite-submit-btn:hover {
  background: var(--c-primary);
  color: #fff;
}

.btn-secondary {
  background: var(--c-surface);
  color: var(--c-text);
  border: 1.5px solid var(--c-border);
}

.btn-secondary:hover {
  background: var(--c-surface2);
  border-color: var(--c-primary-light);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 13px;
}

.btn-danger {
  background: var(--c-danger-bg);
  color: var(--c-danger);
}

.btn-success {
  background: var(--c-success-bg);
  color: var(--c-success);
}


/* ============================================================
   OFFRES D'EMPLOI (Job Listings) — plugin ejobsite
   ============================================================ */

/* Carte offre principale */
.job-listing {
  background: var(--c-surface);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-info-bg);
  padding: 20px 24px;
  color: var(--c-text);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  margin-bottom: 20px;
  cursor: pointer;
}

.job-listing:hover {
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--c-primary-light);
  transform: translateY(-2px);
}

/* Titre de l'offre */
.job-title,
.entry-title,
h1.entry-title,
h2.entry-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--c-primary-light);
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  margin-bottom: 4px;
  transition: color var(--transition);
}

.job-listing:hover .job-title,
.job-title:hover {
  color: var(--c-primary);
}

/* Limiter à 3 lignes dans les listes */
.job-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Nom de l'entreprise */
.job-company,
.company-name,
.employer-name {
  font-size: 13px;
  color: var(--c-primary-light);
  font-weight: 500;
  margin-top: 2px;
}

/* Description de l'offre */
.job-description,
.job-excerpt {
  margin-top: 10px;
  font-size: 14px;
  color: var(--c-text2);
  line-height: 1.7;
}

/* Méta-infos (ville, contrat, secteur…) */
.job-meta,
.job-listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* Pied de la carte (salaire + date) */
.job-footer,
.job-listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--c-border);
}

.job-salary {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
}

.job-date,
.job-deadline,
.job-posted-date {
  font-size: 12px;
  color: var(--c-text3);
}

.job-date--urgent {
  color: var(--c-danger);
  font-weight: 600;
}

/* Logo / initiales entreprise */
.job-logo,
.company-logo,
.employer-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  color: var(--c-primary);
  flex-shrink: 0;
  overflow: hidden;
}

.job-logo img,
.company-logo img,
.employer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Type de contrat / badges */
.job-type,
.job-badge,
.badge,
.job-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 500;
}

/* Variantes de badges */
.badge-blue,
.job-type--cdi        { background: var(--c-info-bg);    color: var(--c-info);    }
.badge-green,
.badge-new            { background: var(--c-success-bg); color: var(--c-success); }
.badge-amber,
.job-type--stage      { background: var(--c-warn-bg);    color: var(--c-warn);    }
.badge-red            { background: var(--c-danger-bg);  color: var(--c-danger);  }
.badge-gray,
.job-type--cdd        { background: var(--c-surface2);   color: var(--c-text2);   }
.badge-orange,
.job-type--freelance  { background: #fff1eb;             color: #c2440f;          }


/* ============================================================
   FORMULAIRES (recherche, filtres, candidature)
   ============================================================ */
.form-group,
.ejobsite-form-group {
  margin-bottom: 18px;
}

.form-label,
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text2);
  margin-bottom: 6px;
}

.form-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="file"],
select,
textarea,
.ejobsite-input {
  width: 100%;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  background: var(--c-surface);
  color: var(--c-text);
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
  border-color: var(--c-primary-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 168, .12);
}

select,
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239a9a9a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

textarea,
textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

/* Barre de recherche hero */
.hero-search {
  background: var(--c-surface);
  border-radius: var(--radius-xl);
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 680px;
  margin-top: 36px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .20);
}

.hero-search input[type="text"],
.hero-search input[type="search"] {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 16px;
  font-size: 15px;
  background: transparent;
  color: var(--c-text);
  box-shadow: none;
}

.hero-search select {
  border: none;
  outline: none;
  background: transparent;
  color: var(--c-text2);
  font-size: 14px;
  padding: 0 36px 0 12px;
  border-left: 1px solid var(--c-border);
  box-shadow: none;
}

/* Panneau de filtres */
.filter-panel,
.ejobsite-filter-sidebar {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 80px;
}

.filter-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-group {
  margin-bottom: 22px;
}

.filter-group-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text2);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  cursor: pointer;
  color: var(--c-text2);
}

.filter-check input[type="checkbox"],
.filter-check input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--c-primary-light);
  border: none;
  box-shadow: none;
}

.filter-check:hover {
  color: var(--c-text);
}


/* ============================================================
   CARDS GÉNÉRIQUES
   ============================================================ */
.card,
.ejobsite-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card-sm {
  padding: 16px;
}

/* Stat card (dashboard) */
.stat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-value {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--c-text2);
  margin-top: 3px;
}


/* ============================================================
   TABLEAUX
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
}

table,
.ejobsite-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-surface);
}

thead tr {
  border-bottom: 1.5px solid var(--c-border);
  background: var(--c-surface2);
}

th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text2);
  text-transform: uppercase;
  letter-spacing: .5px;
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-border);
  font-size: 14px;
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--c-surface2);
}


/* ============================================================
   SIDEBAR (dashboard)
   ============================================================ */
.sidebar-link,
.ejobsite-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text2);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.sidebar-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-link:hover {
  background: var(--c-surface);
  color: var(--c-text);
}

.sidebar-link.active,
.sidebar-link.current {
  background: var(--c-info-bg);
  color: var(--c-primary);
}


/* ============================================================
   HERO (bandeau principal)
   ============================================================ */
.hero,
.ejobsite-hero {
  background: var(--c-primary);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, .80);
  font-weight: 500;
  margin-bottom: 24px;
}

.hero h1,
.hero .hero-title {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  max-width: 640px;
  text-align: left;
}

.hero h1 span {
  color: var(--c-gold);
}

.hero-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, .70);
  max-width: 480px;
  margin-top: 16px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.hero-stat-num {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.hero-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}


/* ============================================================
   CATÉGORIES
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.cat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.cat-card:hover {
  border-color: var(--c-primary-light);
  background: var(--c-info-bg);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.cat-icon {
  font-size: 28px;
  margin-bottom: 10px;
  display: block;
}

.cat-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
}

.cat-count {
  font-size: 12px;
  color: var(--c-text3);
  margin-top: 2px;
}


/* ============================================================
   PAGINATION
   ============================================================ */
.pagination,
.ejobsite-pagination,
.page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin-top: 32px;
  list-style: none;
  padding: 0;
}

.page-btn,
.page-numbers li a,
.page-numbers li span {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  color: var(--c-text2);
  background: var(--c-surface);
  text-decoration: none;
}

.page-btn:hover,
.page-numbers li a:hover {
  border-color: var(--c-primary-light);
  color: var(--c-primary);
}

.page-btn.active,
.page-numbers li span.current {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}


/* ============================================================
   DASHBOARD HEADER
   ============================================================ */
.dash-header,
.ejobsite-dashboard-header {
  background: var(--c-primary);
  padding: 36px 0;
}

.dash-title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.dash-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, .65);
  margin-top: 4px;
}

/* Barre de progression */
.progress-bar {
  height: 6px;
  background: var(--c-surface2);
  border-radius: 30px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 30px;
  background: var(--c-primary-light);
}


/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay,
.ejobsite-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .50);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal,
.ejobsite-modal {
  background: var(--c-surface);
  border-radius: var(--radius-xl);
  width: 560px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--c-text2);
  background: none;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--c-surface2);
}

.modal-body {
  padding: 28px;
}

.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--c-border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}


/* ============================================================
   NOTIFICATION TOAST
   ============================================================ */
.notif,
.ejobsite-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--c-primary);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
}

.notif.show {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Notices WordPress natifs */
.notice,
.updated,
.error,
.is-dismissible {
  border-radius: var(--radius-md);
  border-left-width: 4px;
  padding: 12px 16px;
  font-size: 14px;
}

.notice-success, .updated {
  background: var(--c-success-bg);
  border-color: var(--c-success);
  color: var(--c-success);
}

.notice-error, .error {
  background: var(--c-danger-bg);
  border-color: var(--c-danger);
  color: var(--c-danger);
}

.notice-warning {
  background: var(--c-warn-bg);
  border-color: var(--c-warn);
  color: var(--c-warn);
}

.notice-info {
  background: var(--c-info-bg);
  border-color: var(--c-primary-light);
  color: var(--c-info);
}


/* ============================================================
   ZONE D'UPLOAD
   ============================================================ */
.upload-zone {
  border: 2px dashed var(--c-border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  background: var(--c-surface2);
  cursor: pointer;
  transition: var(--transition);
}

.upload-zone:hover {
  border-color: var(--c-primary-light);
  background: var(--c-info-bg);
}

.upload-zone-icon { font-size: 28px; margin-bottom: 8px; }
.upload-zone-label { font-size: 14px; font-weight: 500; color: var(--c-text); }
.upload-zone-hint { font-size: 12px; color: var(--c-text3); margin-top: 4px; }


/* ============================================================
   FOOTER
   ============================================================ */
.footer,
.site-footer,
#colophon {
  background: var(--c-primary);
  padding: 48px 0 24px;
  margin-top: auto;
}

.footer p,
.site-footer p {
  color: rgba(255, 255, 255, .40);
  font-size: 13px;
  text-align: center;
  margin: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.footer-logo span { color: var(--c-gold); }

.footer-desc {
  color: rgba(255, 255, 255, .50);
  font-size: 14px;
  line-height: 1.7;
}

.footer-col-title {
  color: rgba(255, 255, 255, .40);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a,
.site-footer a {
  color: rgba(255, 255, 255, .65);
  font-size: 14px;
  transition: var(--transition);
  text-decoration: none;
}

.footer-links a:hover,
.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .10);
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, .30);
  text-align: center;
}


/* ============================================================
   COMPATIBILITÉ WORDPRESS CORE
   ============================================================ */

/* WP Caption */
.wp-caption {
  max-width: 100%;
  padding: 5px;
  border: 1px solid var(--c-border);
  background: var(--c-surface2);
  border-radius: var(--radius-md);
  text-align: center;
}

.wp-caption img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.wp-caption-text {
  font-size: 0.875em;
  color: var(--c-text3);
  margin-top: 5px;
}

.gallery-caption {
  text-align: center;
  font-size: 0.9em;
  color: var(--c-text3);
}

/* Auteur du post */
.bypostauthor {
  font-weight: bold;
  border-left: 3px solid var(--c-primary-light);
  padding-left: 10px;
}

/* Alignements */
.alignleft  { float: left;  margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

/* Screen reader */
.screen-reader-text {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 1rem;
}


/* ============================================================
   UTILITAIRES
   ============================================================ */
.text-primary   { color: var(--c-primary); }
.text-secondary { color: var(--c-text2); }
.text-muted     { color: var(--c-text3); }
.text-success   { color: var(--c-success); }
.text-danger    { color: var(--c-danger); }
.text-warn      { color: var(--c-warn); }

.font-head { font-family: var(--font-head); }
.font-600  { font-weight: 600; }
.font-700  { font-weight: 700; }
.font-800  { font-weight: 800; }

.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-lg { font-size: 17px; }

.mt-4  { margin-top: 4px;  }
.mt-8  { margin-top: 8px;  }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0  { margin-bottom: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr;           gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr);    gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr);    gap: 14px; }

.flex             { display: flex; }
.flex-col         { flex-direction: column; }
.items-center     { align-items: center; }
.justify-between  { justify-content: space-between; }
.gap-8            { gap: 8px;  }
.gap-12           { gap: 12px; }
.gap-16           { gap: 16px; }
.flex-1           { flex: 1; }
