/*
Theme Name: Guide Employé BDL
Description: Thème personnalisé pour le microsite du guide d'employé de la Brasserie Daniel Lapointe
Version: 1.0
Author: Dominic Lapointe
*/

/* ===== VARIABLES CSS BASÉES SUR LA CHARTE GRAPHIQUE BDL ===== */
:root {
    --rouge-bdl: #CE3438;
    --charcoal: #28282E;
    --gris-pale: #F1F2F2;
    --dore: #B29672;
    --turquoise: #003B46;
    --white: #ffffff;
    --border-color: #e1e4e8;
}

/* ===== IMPORT DES POLICES ===== */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Barlow+Condensed:wght@400;500;600;700&display=swap');

/* ===== RESET ET BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Barlow Condensed", sans-serif;
    line-height: 1.6;
    color: var(--charcoal);
    background: var(--white);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== TYPOGRAPHIE SELON CHARTE GRAPHIQUE ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: "Lora", serif;
    font-weight: 700;
    color: var(--charcoal);
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin: 2rem 0 1rem 0; color: var(--rouge-bdl); }
h3 { 
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.2rem; 
    font-weight: 600;
    margin: 1.5rem 0 0.5rem 0;
    letter-spacing: 0.5px;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-family: "Barlow Condensed", sans-serif;
}

/* ===== HEADER PRINCIPAL ===== */
.site-header {
    background: var(--white);
    border-bottom: 2px solid var(--border-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-logo {
    height: 50px;
    width: auto;
}

.site-title {
    font-family: "Lora", serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.site-title:hover {
    color: var(--rouge-bdl);
}

.header-meta {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 0.9rem;
    color: var(--charcoal);
    font-weight: 500;
}

/* ===== NAVIGATION PRINCIPALE ===== */
.main-navigation {
    background: var(--gris-pale);
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    flex: 1;
}

.nav-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--border-color);
    color: var(--charcoal);
    text-decoration: none;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-align: center;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    background: var(--rouge-bdl);
    color: var(--white);
    border-color: var(--rouge-bdl);
    transform: translateY(-2px);
}

/* ===== LAYOUT PRINCIPAL ===== */
.site-main {
    padding: 2rem 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.single-post .content-wrapper {
    grid-template-columns: 1fr;
}

/* ===== SIDEBAR ===== */
.widget-area {
    background: var(--white);
    border: 2px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.widget {
    margin-bottom: 0;
}

.widget-title {
    background: var(--charcoal);
    color: var(--white);
    padding: 1rem;
    font-family: "Lora", serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin: 0;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    border-bottom: 1px solid var(--border-color);
}

.widget a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--charcoal);
    text-decoration: none;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.widget a:hover,
.widget .current_page_item a {
    background: var(--rouge-bdl);
    color: var(--white);
    padding-left: 1.5rem;
}

/* ===== CONTENU PRINCIPAL ===== */
.content-section {
    background: var(--white);
    border: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.content-section:hover {
    border-color: var(--dore);
    box-shadow: 0 4px 20px rgba(178, 150, 114, 0.1);
}

.section-header {
    display: flex;
    align-items: center;
    padding: 2rem;
    border-bottom: 2px solid var(--gris-pale);
}

.section-icon {
    font-size: 2rem;
    margin-right: 1rem;
    color: var(--rouge-bdl);
}

.section-title {
    font-family: "Lora", serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--charcoal);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.section-content {
    padding: 2rem;
}

/* ===== ARTICLES ===== */
.entry-header {
    border-bottom: 2px solid var(--gris-pale);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.entry-title {
    font-family: "Lora", serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.entry-meta {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 0.9rem;
    color: var(--dore);
    font-weight: 500;
}

.entry-content {
    background: var(--white);
    border: 2px solid var(--border-color);
    padding: 2rem;
}

/* ===== CARTES INFORMATION ===== */
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.info-card {
    background: var(--gris-pale);
    padding: 1.5rem;
    border-left: 4px solid var(--rouge-bdl);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card-title {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--charcoal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.card-content {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--charcoal);
}

/* ===== BOUTONS ===== */
.btn, 
.wp-block-button__link,
input[type="submit"],
button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--rouge-bdl);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-family: "Barlow Condensed", sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    border-radius: 0; /* Coins carrés selon vos préférences */
}

.btn:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button:hover {
    background: #b92c30;
    color: var(--white);
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-secondary {
    background: var(--dore);
    margin: 0.3rem;
}

.btn-secondary:hover {
    background: #9d825f;
}

/* ===== TABLEAUX ===== */
.contact-table,
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--white);
}

.contact-table th,
.contact-table td,
th, td {
    padding: 0.8rem;
    text-align: left;
    border: 1px solid var(--border-color);
    font-family: "Barlow Condensed", sans-serif;
}

.contact-table th,
th {
    background: var(--charcoal);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.contact-table tr:nth-child(even),
tr:nth-child(even) {
    background: var(--gris-pale);
}

/* ===== LISTES ===== */
ul, ol {
    margin: 1rem 0 1rem 2rem;
}

li {
    margin-bottom: 0.5rem;
    font-family: "Barlow Condensed", sans-serif;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    font-family: "Barlow Condensed", sans-serif;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #28a745;
    color: var(--white);
    font-size: 0.7rem;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== FORMULAIRES ===== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    background: var(--white);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    border-radius: 0; /* Coins carrés */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--rouge-bdl);
}

/* ===== BLOCS GUTENBERG ===== */
.wp-block-group {
    margin: 2rem 0;
}

.wp-block-columns {
    gap: 2rem;
}

.wp-block-quote {
    border-left: 4px solid var(--rouge-bdl);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    background: var(--gris-pale);
    padding: 1.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 200px 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .nav-menu {
        flex-direction: column;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .widget-area {
        position: static;
        order: -1;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .section-content {
        padding: 1.5rem;
    }

    .section-grid {
        grid-template-columns: 1fr;
    }

    .entry-content {
        padding: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.2rem;
    }

    .entry-title {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .nav-menu a {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-section,
.entry-content {
    animation: fadeIn 0.6s ease-out;
}

/* ===== UTILITAIRES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none; }

/* ===== STYLES SPÉCIFIQUES WORDPRESS ===== */
.alignleft { float: left; margin-right: 1rem; }
.alignright { float: right; margin-left: 1rem; }
.aligncenter { display: block; margin: 0 auto; }

.wp-caption {
    max-width: 100%;
    margin-bottom: 1rem;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: var(--dore);
    text-align: center;
    padding: 0.5rem 0;
}

/* ===== ACCESSIBILITÉ ===== */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: var(--white);
    border: 2px solid var(--rouge-bdl);
    clip: auto !important;
    color: var(--charcoal);
    display: block;
    font-size: 1rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
