/**
 * @file
 * Lavande Theme — Styles personnalisés élégants à thématique provençale.
 *
 * Typographie : Cormorant Garamond (titres) + Nunito (corps)
 * Palette     : Violet lavande, prune, blanc nacré, indigo
 */

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */

body {
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: #2d2533;
  background-color: #fdfbff;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #3a1f5c;
  line-height: 1.25;
}

h1, .h1 { font-size: 2.6rem; font-weight: 300; }
h2, .h2 { font-size: 2rem;   font-weight: 400; }
h3, .h3 { font-size: 1.6rem; }
h4, .h4 { font-size: 1.3rem; }

.page-title,
h1.page-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: 2.8rem;
  color: #3a1f5c;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e2d4f0;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

#navbar-top {
  background: linear-gradient(135deg, #4a2c6e 0%, #3a1f5c 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.4rem;
}

#navbar-main {
  background: linear-gradient(135deg, #7b5ea7 0%, #6a4d96 100%);
  box-shadow: 0 2px 12px rgba(74, 44, 110, 0.18);
  padding: 0.4rem;
}

.navbar-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #fef9ff !important;
}

.site-name-slogan {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1em;
  color: #fef9ff;
}

.region-primary-menu .nav-link {
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(254, 249, 255, 0.9) !important;
  padding: 0.55rem 1rem;
  transition: color 0.2s ease;
  position: relative;
}

.region-primary-menu .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: rgba(254,249,255,0.6);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.navbar-nav .nav-link.active {
  color: #ffffff;
  background: #7d5cb0;
}

.region-primary-menu .nav-link:hover::after,
.region-primary-menu .nav-link:focus::after,
.region-primary-menu .menu-item--active-trail > .nav-link::after {
  transform: scaleX(1);
}

.region-primary-menu .nav-link:hover,
.region-primary-menu .nav-link:focus {
  color: #ffffff !important;
}

.dropdown-menu {
  border: none;
  border-top: 3px solid #7b5ea7;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(74, 44, 110, 0.15);
  background: #fdfbff;
}

.dropdown-item {
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  color: #3a1f5c;
  padding: 0.5rem 1.25rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #f5f0fa;
  color: #6a3d9e;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */

.breadcrumb {
  background-color: #f5f0fa;
  border-radius: 4px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
}

.breadcrumb-item a {
  color: #7b5ea7;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: #4a2c6e;
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #9b8baa;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: #c4b0d8;
  content: "›";
}

/* ============================================================
   CONTENU PRINCIPAL
   ============================================================ */

#main-wrapper {
  background: #fdfbff;
}

.region-content {
  padding: 2rem 0;
}

/* Nodes */
.node {
  margin-bottom: 2.5rem;
}

.node__title a,
.node__title a:visited {
  color: #3a1f5c;
  text-decoration: none;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  transition: color 0.2s ease;
}

.node__title a:hover {
  color: #7b5ea7;
}

.node__meta {
  font-size: 0.82rem;
  color: #9b8baa;
  margin-bottom: 0.75rem;
  font-style: italic;
}

/* ============================================================
   SÉPARATEURS & DÉCORATIONS
   ============================================================ */

hr {
  border: none;
  border-top: 1px solid #e2d4f0;
  margin: 2rem 0;
}

/* Filet décoratif lavande pour les titres de sections */
.block-title,
.views-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: #3a1f5c;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #c4a8e0;
  margin-bottom: 1.2rem;
  letter-spacing: 0.03em;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar .block {
  background-color: #f5f0fa;
  border: 1px solid #e8dff5;
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.sidebar .block-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #4a2c6e;
}

/* ============================================================
   CARTES (CARDS)
   ============================================================ */

.card {
  border: 1px solid #e8dff5;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(74, 44, 110, 0.06);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
  background: #fdfbff;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 6px 22px rgba(74, 44, 110, 0.13);
  transform: translateY(-2px);
}

.card-header {
  background: linear-gradient(135deg, #f5f0fa, #ede4f8);
  border-bottom: 1px solid #e2d4f0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  color: #3a1f5c;
}

.card-footer {
  background: #f5f0fa;
  border-top: 1px solid #e8dff5;
  font-size: 0.85rem;
  color: #9b8baa;
}

/* ============================================================
   BOUTONS
   ============================================================ */

.btn {
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #7b5ea7, #6a4d96);
  border-color: #6a4d96;
  color: #fef9ff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #5c3d8f, #4a2c6e);
  border-color: #4a2c6e;
  box-shadow: 0 4px 12px rgba(74, 44, 110, 0.25);
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid #7b5ea7;
  color: #7b5ea7;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: #7b5ea7;
  color: #fef9ff;
}

/* ============================================================
   FORMULAIRES
   ============================================================ */

.form-control,
.form-select {
  border: 1.5px solid #d4c5e8;
  border-radius: 4px;
  color: #2d2533;
  background-color: #fdfbff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #7b5ea7;
  box-shadow: 0 0 0 3px rgba(123, 94, 167, 0.15);
  outline: none;
}

.form-label,
label {
  font-weight: 500;
  font-size: 0.9rem;
  color: #4a2c6e;
  margin-bottom: 0.3rem;
}

/* ============================================================
   MESSAGES / ALERTES
   ============================================================ */

.messages--status {
  background-color: #f0eaf8;
  border-left: 4px solid #7b5ea7;
  color: #3a1f5c;
}

.messages--warning {
  background-color: #fff9ec;
  border-left: 4px solid #e8a320;
}

.messages--error {
  background-color: #fdf0f3;
  border-left: 4px solid #c0364a;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.page-link {
  color: #6a3d9e;
  border: 1px solid #d4c5e8;
  font-family: 'Nunito', Arial, sans-serif;
  transition: background 0.15s ease;
}

.page-link:hover {
  background-color: #f5f0fa;
  color: #4a2c6e;
  border-color: #c4a8e0;
}

.page-item.active .page-link {
  background: linear-gradient(135deg, #7b5ea7, #6a4d96);
  border-color: #6a4d96;
  color: #fef9ff;
}

/* ============================================================
   ONGLETS (TABS)
   ============================================================ */

.nav-tabs {
  border-bottom: 2px solid #d4c5e8;
}

.nav-tabs .nav-link {
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: #7b5ea7;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 0.5rem 1rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-tabs .nav-link:hover {
  color: #4a2c6e;
  border-bottom-color: #c4a8e0;
}

.nav-tabs .nav-link.active {
  color: #3a1f5c;
  border-bottom-color: #7b5ea7;
  background: transparent;
  font-weight: 600;
}

/* ============================================================
   TABLEAUX
   ============================================================ */

.table {
  font-size: 0.9rem;
}

.table thead th {
  background: linear-gradient(135deg, #f5f0fa, #ede4f8);
  color: #3a1f5c;
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 2px solid #c4a8e0;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: #faf7fd;
}

.table-hover tbody tr:hover {
  background-color: #f0eaf8;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: linear-gradient(135deg, #2c1f42 0%, #1e1430 100%);
  color: #c9b8e0;
  padding: 3rem 0 1.5rem;
  border-top: 3px solid #4a2c6e;
  margin-top: 3rem;
}

.site-footer a {
  color: #c4a8e0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #fef9ff;
}

.site-footer .block-title {
  color: #e8dff5;
  border-bottom-color: #4a2c6e;
  font-size: 1rem;
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   BRANDING / LOGO
   ============================================================ */

.site-branding__name a,
.site-name a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: #fef9ff !important;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.site-branding__slogan,
.site-slogan {
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(254, 249, 255, 0.75) !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   BADGES & LABELS
   ============================================================ */

.badge.bg-primary {
  background: linear-gradient(135deg, #7b5ea7, #6a4d96) !important;
}

.badge.bg-secondary {
  background: #c4a8e0 !important;
  color: #3a1f5c !important;
}

/* ============================================================
   ACCORDION
   ============================================================ */

.accordion-button {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  color: #3a1f5c;
  background-color: #f5f0fa;
}

.accordion-button:not(.collapsed) {
  background-color: #ede4f8;
  color: #4a2c6e;
  box-shadow: inset 0 -1px 0 #d4c5e8;
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(123, 94, 167, 0.15);
}

.accordion-body {
  background: #fdfbff;
  border-top: 1px solid #e8dff5;
}

/* ============================================================
   MODAL
   ============================================================ */

.modal-header {
  background: linear-gradient(135deg, #f5f0fa, #ede4f8);
  border-bottom: 1px solid #d4c5e8;
}

.modal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #3a1f5c;
  font-weight: 500;
}

.modal-footer {
  background: #f5f0fa;
  border-top: 1px solid #e8dff5;
}

/* ============================================================
   SKIP LINK (accessibilité)
   ============================================================ */

.skip-link:focus {
  background: #7b5ea7;
  color: #fef9ff;
  padding: 0.5rem 1rem;
  z-index: 9999;
}

/* ============================================================
   SEARCH
   ============================================================ */

.search-form .form-control {
  border-color: #d4c5e8;
  border-radius: 4px 0 0 4px;
}

.search-form .btn {
  background: #7b5ea7;
  border-color: #7b5ea7;
  color: #fef9ff;
  border-radius: 0 4px 4px 0;
}

/* ============================================================
   COMMENTAIRES
   ============================================================ */

.comment {
  border-left: 3px solid #d4c5e8;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.comment__author {
  font-weight: 600;
  color: #4a2c6e;
}

.indented {
  margin-left: 2rem;
}

/* ============================================================
   UTILITAIRES LAVANDE
   ============================================================ */

.text-lavande    { color: #7b5ea7 !important; }
.bg-lavande      { background-color: #7b5ea7 !important; color: #fef9ff !important; }
.bg-lavande-pale { background-color: #f5f0fa !important; }
.border-lavande  { border-color: #c4a8e0 !important; }

/* admin */


