/* 
Theme Name: Thème Domaine Glenton
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Thème enfant pour le Domaine Glenton
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

a {
    color: #a63a3a;
}

/* Cache le sélecteur de langue WPML du footer */
.wpml-ls-statics-footer {
    display: none !important;
}

/* Éléments pour le menu principal */

.elementor-nav-menu .current-menu-ancestor > a.elementor-item {
    color: #a63a3a !important;
}

.elementor-nav-menu .current-menu-ancestor > a.elementor-item::after {
    opacity: 1 !important;
    background-color: #a63a3a !important;
    transform: scale(1) !important;
}

.elementor-nav-menu--main .elementor-nav-menu a, .elementor-nav-menu--main .elementor-nav-menu a.highlighted, .elementor-nav-menu--main .elementor-nav-menu a:focus, .elementor-nav-menu--main .elementor-nav-menu a:hover {
    padding: 13px 18px;
}

.elementor-29 .elementor-element.elementor-element-2fdfb67 {
  justify-content: center;
}

.elementor-29 .elementor-element.elementor-element-939f675 .elementor-menu-toggle {
    background-color: #E2A829!important;
}

.elementor-29 .elementor-element.elementor-element-939f675 .elementor-menu-toggle .e-font-icon-svg {
    fill : #fff!important;
}

/* Grille de ressources du Domaine */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.resource-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 30px;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.event-date {
    display: block;
    color: #d4a373;
    font-weight: 700;
    font-size: 0.95rem;
    margin: 15px 0 0 0;
}

.card-image {
    position: relative;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    height: 220px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image .badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #002c4b;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.card-title {
    font-size: 1.5rem;
    margin: 0 0 20px;
}

.card-title a {
    color: #002c4b;
    text-decoration: none;
}

.card-excerpt p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.card-link {
    font-weight: 700;
    color: #002c4b;
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* Transformation de la liste en onglets horizontaux */
.resources-filter ul.filter-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centrage horizontal des onglets */
    list-style: none;
    padding: 0;
    margin: 30px 0;
    gap: 15px;
    border-bottom: 1px solid #eee;
}

.resources-filter ul.filter-list li {
    margin: 0;
    padding: 0;
}

.resources-filter .filter-item {
    display: inline-block;
    padding: 12px 20px;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    text-align: left;
}

.resources-filter .filter-item:hover, 
.resources-filter .filter-item.active {
    color: #002c4b;
    border-bottom: 3px solid #002c4b;
}

.resources-filter .filter-item.active {
    color: #002c4b;
    border-bottom-color: #002c4b;
}

/* Forcer le style des cartes sur toutes les archives de ressources */
.resources-archive .resource-card,
.tax-categorie_ressource .resource-card {
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    padding: 30px !important;
    margin-bottom: 30px;
    border: 1px solid #eee !important;
}

.resources-archive .card-title a,
.tax-categorie_ressource .card-title a {
    color: #002c4b !important;
    text-decoration: none !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
}

/* Aligner l'image et le contenu */
.resources-archive .grid-layout,
.tax-categorie_ressource .grid-layout {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 30px !important;
}

/* Hero pleine largeur */
.resource-hero {
    position: relative;
    width: 100vw;
    max-width: 100%;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: bottom center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 44, 75, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.resource-hero .archive-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    color: #ffffff !important;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.resource-hero .archive-description {
    font-size: 1.4rem;
    color: #ffffff !important;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
}

.single-resource .resource-hero {
    height: 550px;
    width: 100vw;
    max-width: 100%;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-attachment: fixed;
}

.single .entry-title {
    color: #ffffff !important;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 2px 4px 20px rgba(0,0,0,0.6);
    margin: 0;
    line-height: 1.1;
}

.single-resource .resource-body .container {
    max-width: 1140px; /* Largeur optimale pour ne pas fatiguer l'oeil */
    margin: 0 auto;
    padding: 0 20px;
}

.single-resource .resource-body .container .elementor-element {
    padding: 0;
}

.single-resource .breadcrumb {
    padding: 40px 0 20px 0;
    justify-content: flex-start; /* Aligné à gauche de la colonne de 850px */
}

.single-resource .entry-content {
    font-size: 1.2rem;
    line-height: 1.8;
}

.single-resource .entry-content .elementor {
    max-width: 100%;
    margin: 0 auto;
}

/* Style du Fil d'Ariane avec icône */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligne à gauche */
    padding: 40px 0 20px 0;
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumb .home-link .dashicons {
    font-size: 18px; /* Taille de la maison */
    width: 18px;
    height: 18px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    margin-top: -2px; /* Ajustement fin pour l'alignement */
}

.breadcrumb a {
    text-decoration: none;
    transition: color 0.3s ease;
    color: rgb(159, 56, 46);
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb .sep {
    margin: 0 12px;
    font-size: 0.7rem;
    color: rgb(159, 56, 46);
}

/* Le badge de date doré */
.event-date-badge {
    display: inline-block;
    background-color: #d4a373;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Corps de l'article centré et lisible */
.resource-body {
    padding: 80px 0;
    background: #ffffff;
}

.resource-body .entry-content {
    margin: 0 auto;
    font-size: 1.25rem;
    line-height: 1.85;
    color: #333;
}

.entry-footer {
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    text-align: left; /* Force l'alignement à gauche */
}

.elementor-element-29616a4 .elementor-widget-form .elementor-field-group > label {
    color: #fff !important;
    margin-bottom: 5px;
}

.elementor-element-29616a4 .elementor-widget-form input#form-field-name {
    margin-bottom: 10px;
}

.generic-page .resource-hero {
    display: flex;
    align-items: center;
    justify-content: center;
}

.generic-page .container {
    margin: 0 auto;
    padding: 60px 20px;
}

.generic-page .elementor-post-thumbnail {
    display: none;
}

/* Contact Form 7 */
.wpcf7-form {
    background: #f9f9f9;
    padding: 30px 30px 0px 30px;
    border: 1px solid #eee;
}

.wpcf7 label {width: 100%;}

.wpcf7-form p {
    margin-bottom: 20px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7-form select{
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    box-sizing: border-box;
    margin-top: 5px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.wpcf7-form textarea {
    min-height: 150px;
    padding: 12px 0 12px 12px;
}

/* Le fameux bouton doré */
.wpcf7-form input[type="submit"] {
    background-color: #E2A829 !important;
    color: white !important;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    transition: background 0.3s;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #002c4b !important;
}

.elementor-field-group .elementor-button {
    margin-top: 15px !important;
}

.elementor-message.elementor-message-success.elementor-message-svg {
  color: #fff;
}

@media (max-width: 768px) {
  .generic-page .container {
        margin: 0 auto;
        padding: 20px;
    }
    .resource-body {
        padding: 20px 0;
    }
    .wpcf7-form {
      padding: 30px 15px 0px 15px;
    }
}