/*
 * Custom Grock Style - Lancieux Tourisme
 * Clone visuel de grock.fr adapté pour Blocksy
 * ============================================
 */

/* === PALETTE & VARIABLES === */
:root {
  --theme-palette-color-1: #2872fa;
  --theme-palette-color-2: #1559ed;
  --theme-palette-color-3: #3A4F66;
  --theme-palette-color-4: #192a3d;
  --theme-palette-color-5: #0c2334;
  --theme-palette-color-6: #f2f5f7;
  --theme-palette-color-7: #FAFBFC;
  --theme-palette-color-8: #ffffff;
  --theme-text-color: var(--theme-palette-color-3);
  --theme-link-initial-color: var(--theme-palette-color-1);
  --theme-link-hover-color: var(--theme-palette-color-2);
  --theme-headings-color: var(--theme-palette-color-4);
  --theme-border-color: var(--theme-palette-color-5);
  --theme-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --theme-font-size: 16px;
  --theme-line-height: 1.65;
  --theme-content-spacing: 1.5em;
  --theme-normal-container-max-width: 1290px;
  --theme-narrow-container-max-width: 750px;
  --theme-content-vertical-spacing: 60px;
  --theme-wide-offset: 130px;
  --theme-button-min-height: 40px;
  --theme-button-padding: 5px 20px;
  --theme-button-font-weight: 500;
  --theme-button-font-size: 15px;
  --theme-button-text-initial-color: #ffffff;
  --theme-button-text-hover-color: #ffffff;
  --theme-button-background-initial-color: var(--theme-palette-color-1);
  --theme-button-background-hover-color: var(--theme-palette-color-2);
  --theme-button-border: none;
  --theme-button-shadow: none;
  --theme-button-transform: none;
  --theme-selection-text-color: #ffffff;
  --theme-selection-background-color: var(--theme-palette-color-1);
}

/* === TYPOGRAPHIE === */
body {
  font-family: var(--theme-font-family);
  font-size: 16px;
  line-height: 1.65;
  color: var(--theme-palette-color-3);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--theme-palette-color-4);
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: var(--theme-palette-color-1);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--theme-palette-color-2);
}

/* === HEADER === */
[data-header*="type-1"] .ct-header [data-id="logo"] .site-logo-container {
  --logo-max-height: 99px;
}

[data-header*="type-1"] .ct-header [data-id="logo"] .site-title {
  --theme-font-size: 25px;
  --theme-link-initial-color: var(--theme-palette-color-4);
}

[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a {
  --theme-font-weight: 700;
  --theme-text-transform: uppercase;
  --theme-font-size: 12px;
  --theme-line-height: 1.3;
  --theme-link-initial-color: var(--theme-text-color);
}

[data-header*="type-1"] .ct-header [data-id="menu"] {
  --menu-indicator-hover-color: var(--theme-palette-color-1);
  --menu-indicator-active-color: var(--theme-palette-color-1);
}

[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu .ct-menu-link {
  --theme-link-initial-color: #ffffff;
  --theme-font-weight: 500;
  --theme-font-size: 12px;
}

[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu {
  --dropdown-top-offset: 15px;
  --dropdown-divider: 1px dashed rgba(255, 255, 255, 0.1);
  --theme-box-shadow: 0px 10px 20px rgba(41, 51, 61, 0.1);
  --theme-border-radius: 2px;
}

[data-header*="type-1"] .ct-header [data-row*="middle"] {
  --height: 120px;
  background-color: #fff;
  background-image: none;
  --theme-border-top: none;
  --theme-border-bottom: none;
  --theme-box-shadow: none;
}

[data-header*="type-1"] .ct-header [data-row*="middle"] > div {
  --theme-border-top: none;
  --theme-border-bottom: none;
}

/* Header sticky */
.ct-header[data-id="type-1"] {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Search icon */
[data-header*="type-1"] [data-id="search"] {
  --theme-icon-size: 13px;
  --theme-icon-color: #d4d6d8;
  --margin: 0 0 0 10px !important;
}

/* Search modal */
[data-header*="type-1"] #search-modal .ct-search-form {
  --theme-font-size: 22px;
}

[data-header*="type-1"] #search-modal {
  background-color: rgba(18, 21, 25, 0.98);
}

/* Mobile off-canvas */
[data-header*="type-1"] [data-id="mobile-menu"] {
  --theme-font-weight: 700;
  --theme-font-size: 20px;
  --theme-link-initial-color: #ffffff;
  --mobile-menu-divider: none;
}

[data-header*="type-1"] #offcanvas {
  --theme-box-shadow: 0px 0px 70px rgba(0, 0, 0, 0.35);
  --side-panel-width: 500px;
  --panel-content-height: 100%;
  --horizontal-alignment: left;
  --text-horizontal-alignment: left;
}

[data-header*="type-1"] #offcanvas .ct-panel-inner {
  background-color: rgb(18 21 25 / .98);
}

/* === BLOG GRID === */
[data-prefix="blog"] .entries {
  --grid-template-columns: repeat(3, minmax(0, 1fr));
}

[data-prefix="blog"] .entry-card .entry-title {
  --theme-font-size: 20px;
}

/* Entry cards - boxed style */
.entry-card {
  background-color: var(--theme-palette-color-8);
  --theme-box-shadow: 0px 12px 18px -6px rgba(34, 56, 101, 0.04);
  border-radius: 0;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.entry-card:hover {
  --theme-box-shadow: 0px 15px 25px -6px rgba(34, 56, 101, 0.1);
  transform: translateY(-2px);
}

/* Card image */
.entry-card .ct-media-container {
  --card-element-spacing: 30px;
}

.entry-card .ct-media-container img {
  border-radius: 0;
  transition: transform 0.3s ease;
}

.entry-card:hover .ct-media-container img {
  transform: scale(1.02);
}

/* Card meta */
.entry-card .entry-meta[data-id] {
  --card-element-spacing: 15px;
}

/* === CATEGORIES ARCHIVE === */
[data-prefix="categories"] .entries {
  --grid-template-columns: repeat(3, minmax(0, 1fr));
}

[data-prefix="categories"] .entry-card .entry-title {
  --theme-font-size: 20px;
}

/* === SINGLE POST === */
[data-prefix="single_blog_post"] .ct-share-box .ct-module-title {
  --theme-font-weight: 600;
}

/* === SIDEBAR === */
.ct-sidebar {
  --theme-link-initial-color: var(--theme-text-color);
}

/* Trending block */
.ct-trending-block-item {
  --trending-block-image-width: 60px;
}

.ct-trending-block {
  background-color: var(--theme-palette-color-8);
  --theme-box-shadow: 0px 50px 90px rgba(210, 213, 218, 0.4);
  padding: 25px;
  border-radius: 3px;
}

/* Sidebar search */
.ct-sidebar .wp-block-search .wp-block-search__input {
  border: 2px solid var(--theme-border-color);
  border-radius: 3px;
  padding: 10px 15px;
}

/* === FOOTER === */
[data-footer*="type-1"] .ct-footer [data-row*="middle"] {
  background-color: var(--theme-palette-color-6);
  background-image: none;
  --theme-border-top: none;
  --theme-border-bottom: none;
}

[data-footer*="type-1"] .ct-footer [data-row*="middle"] .ct-container {
  --container-padding: 50px 0px;
}

[data-footer*="type-1"] .ct-footer [data-row*="bottom"] {
  background-color: var(--theme-palette-color-7);
  background-image: none;
  --theme-border-top: none;
}

[data-footer*="type-1"] .ct-footer [data-row*="bottom"] .ct-container {
  --theme-font-size: 14px;
}

.ct-footer .ct-widget .wp-block-heading {
  --theme-font-size: 15px;
  --theme-font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

/* === BREADCRUMBS === */
.ct-breadcrumbs {
  color: var(--theme-text-color);
}

/* === FORMS === */
form input,
form textarea,
form select {
  --theme-form-field-border-initial-color: var(--theme-border-color);
  --theme-form-field-border-focus-color: var(--theme-palette-color-1);
  --theme-form-field-border-width: 2px;
  border-radius: 3px;
}

/* === BOUTONS === */
.wp-element-button,
.wp-block-button__link,
button[type="submit"] {
  background-color: var(--theme-palette-color-1);
  color: #ffffff;
  border: none;
  border-radius: 3px;
  font-weight: 500;
  font-size: 15px;
  padding: 5px 20px;
  min-height: 40px;
  transition: background-color 0.2s ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover {
  background-color: var(--theme-palette-color-2);
  color: #ffffff;
}

/* === FRONT PAGE - GRILLE 2 COLONNES === */
.ct-front-articles .entries[data-layout="grid"] {
  --grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
  grid-template-columns: var(--grid-template-columns);
  gap: 30px;
}

.ct-front-articles .entry-card {
  background-color: var(--theme-palette-color-8);
  box-shadow: 0px 12px 18px -6px rgba(34, 56, 101, 0.04);
  border-radius: 0;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.ct-front-articles .entry-card:hover {
  box-shadow: 0px 15px 25px -6px rgba(34, 56, 101, 0.1);
  transform: translateY(-2px);
}

.ct-front-articles .entry-card .ct-media-container {
  display: block;
  overflow: hidden;
}

.ct-front-articles .entry-card .ct-media-container img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ct-front-articles .entry-card:hover .ct-media-container img {
  transform: scale(1.02);
}

.ct-front-articles .entry-card-content {
  padding: 25px 30px 30px;
}

.ct-front-articles .entry-card .ct-post-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--theme-palette-color-1);
  margin-bottom: 10px;
}

.ct-front-articles .entry-card .entry-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px;
}

.ct-front-articles .entry-card .entry-title a {
  color: var(--theme-palette-color-4);
  text-decoration: none;
}

.ct-front-articles .entry-card .entry-title a:hover {
  color: var(--theme-palette-color-1);
}

.ct-front-articles .entry-card .entry-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--theme-palette-color-3);
  margin-bottom: 15px;
}

.ct-front-articles .entry-card .entry-meta {
  font-size: 13px;
  color: #a0a8b4;
  display: flex;
  gap: 15px;
}

.ct-front-articles .ct-pagination {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0 0;
}

.ct-front-articles .ct-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 3px;
  color: var(--theme-palette-color-3);
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.ct-front-articles .ct-pagination .page-numbers.current,
.ct-front-articles .ct-pagination .page-numbers:hover {
  background-color: var(--theme-palette-color-1);
  color: #ffffff;
}

.ct-front-articles .ct-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
}

/* === RESPONSIVE === */
@media (max-width: 999.98px) {
  :root {
    --theme-content-vertical-spacing: 50px;
    --theme-container-edge-spacing: 88vw;
  }

  .ct-front-articles .entries[data-layout="grid"] {
    --grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
