/*
Theme Name:   ALIAS Groupe Theme
Theme URI:    https://www.alias-groupe.fr
Author:       [Marco]
Author URI:   d
Description:  A custom, professional theme for ALIAS Groupe based on their corporate presentation.
Version:      1.4.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags:         custom-background, custom-logo, editor-style, featured-images, theme-options, translation-ready, block-styles, wide-blocks, elementor
Text Domain:  aliasgroupe
*/
/*--------------------------------------------------------------
# General & Typography
--------------------------------------------------------------*/
body {
    background-color: #fff;
    color: var(--text-color);
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: var(--primary-color); /* Uses color from Customizer */
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2.2rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-blue-color);
}

/*--------------------------------------------------------------
# Layout & Structure
--------------------------------------------------------------*/
#content {
    flex: 1; /* This tells the content area to grow and fill available space */
}


.header-inner {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.site-header, .site-footer {
    width: 100%;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

/* Main Header Container - This is what becomes sticky */
.site-header {
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #ffffff; /* Fallback for main header */
    transition: box-shadow 0.3s ease;
}

/* This class gets added by JavaScript when we scroll */
.site-header.is-sticky {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- Top Bar Styling --- */
.header-top {
    background-color: var(--dark-blue-color);
    color: #e0e0e0;
    font-size: 14px;
    padding: 8px 0;
}

.header-top .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-contact span {
    margin-right: 20px;
}
.top-bar-contact span:last-child {
    margin-right: 0;
}

.top-bar-contact a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}
.top-bar-contact a:hover {
    color: var(--primary-color);
}

.top-bar-social a {
    color: #ffffff;
    margin-left: 15px;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}
.top-bar-social a:hover {
    color: var(--primary-color);
}

/* --- Main Header Styling (Logo, Nav, Button) --- */
.header-main {
    background-color: transparent;

}

.header-main .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-logo-link img {
    max-height: 50px;
    width: auto;
}

.main-navigation ul {
    list-style: none;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
    display: flex;
    align-items: center; /* This is the key: vertically aligns items in the center */
}

.main-navigation li {
    margin-left: 35px;
}

.main-navigation a {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 16px;
    color: var(--text-color);
    position: relative;
    padding-top: 10px;    /* New */
    padding-bottom: 10px; /* New */
}

/* Underline effect on hover */
.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.4s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
    width: 100%;
}

/* Call to Action Button */
.header-cta {
    margin-left: 30px;
}

.cta-button {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: var(--dark-blue-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
    background-color: var(--dark-blue-color);
    color: #fff;
    padding: 40px 0;
    margin-top: 60px;
}

.site-footer .footer-inner {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.site-footer a {
    color: #fff;
    text-decoration: underline;
}
.site-footer a:hover {
    text-decoration: none;
}

.site-footer .site-info {
    text-align: center;
}

/*--------------------------------------------------------------
# Elementor Compatibility & Helpers
--------------------------------------------------------------*/
/* This ensures a blank slate for Elementor to build on */
.elementor-page .site-main {
    padding: 0;
    margin: 0;
}

/* Basic styling for lists from the presentation */
.elementor-widget-text-editor ul {
  list-style: none;
  padding-left: 20px;
}
.elementor-widget-text-editor ul li {
  padding-left: 25px;
  position: relative;
  margin-bottom: 10px;
}
.elementor-widget-text-editor ul li::before {
  content: '•';
  color: var(--primary-color);
  font-weight: bold;
  display: inline-block; 
  width: 1em;
  margin-left: -1.2em;
  position: absolute;
  left: 10px;
  font-size: 1.5em;
  line-height: 1;
}

/*--------------------------------------------------------------
# Header Spacing & Alignment Fix
--------------------------------------------------------------*/
.header-main .header-inner,
.main-navigation ul {
    align-items: center; /* This is the most important line */
}

.site-branding,
.site-branding h1,
.main-navigation,
.header-cta {
    margin-top: 0;
    margin-bottom: 0;
}
/*--------------------------------------------------------------
# Default Page Template
--------------------------------------------------------------*/
.page-container {
    max-width: 900px; /* A bit narrower for better readability */
    margin-left: auto;
    margin-right: auto;
    padding: 40px 20px;
}

.entry-header {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 20px;
}

.entry-title {
    margin-top: 0;
    margin-bottom: 0;
}
/*--------------------------------------------------------------
# Single Post Template
--------------------------------------------------------------*/
.single-post-container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 20px;
}

.single .entry-header {
    margin-bottom: 30px;
    text-align: center;
}

.single .entry-title {
    margin-top: 0;
    margin-bottom: 10px;
}

.entry-meta {
    color: #777;
    font-size: 14px;
    text-transform: uppercase;
}

.post-thumbnail {
    margin-bottom: 40px;
    text-align: center;
}

.post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
/*--------------------------------------------------------------
# Archive & Blog List
--------------------------------------------------------------*/
.archive-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 20px;
}

.archive-header {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 30px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.post-summary {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-summary:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.post-summary-thumbnail a {
    display: block;
}

.post-summary-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover; /* Ensures images are same size */
    display: block;
}

.post-summary-content {
    padding: 25px;
}

.post-summary-title {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.post-summary-title a {
    text-decoration: none;
}

.post-summary-excerpt {
    margin-bottom: 20px;
}

.read-more-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
}

.read-more-button:hover {
    background-color: var(--dark-blue-color);
    color: #fff;
}
/*--------------------------------------------------------------
# Sticky Footer Solution
--------------------------------------------------------------*/
.site-grid {
    display: grid;
    grid-template-rows: auto 1fr auto; /* Header, Content (stretches), Footer */
    min-height: 100vh;
}

/* We need to tell the header and footer to be part of the grid */
.site-header {
    grid-row: 1;
}

#content {
    grid-row: 2;
}

.site-footer {
    grid-row: 3;
}
/*--------------------------------------------------------------
# Elementor Header Sticky Effect (Guaranteed Fix)
--------------------------------------------------------------*/
header.elementor-header {
    position: fixed !important; /* Changed to fixed. This is the key. */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}