/* ==============================================
   ALIGNEMENT LOGO ET MENUS - Logo à gauche, menus centrés
   Ajouté le 17/12/2024
=============================================== */

/* Conteneur principal - logo à gauche, menus à droite */
.sticky-navigation .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px; /* Espacement entre logo et menus */
}

/* Logo à gauche - centré verticalement sur les 2 lignes */
.sticky-navigation .navbar-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0; /* Le logo ne rétrécit pas */
}

.sticky-navigation .navbar-brand {
    display: flex;
    align-items: center;
    height: auto;
    padding: 10px 15px 10px 0;
    margin: 0;
}

.sticky-navigation .navbar-brand img {
    max-height: 80px; /* Logo plus grand */
    width: auto;
}

/* Titre du site (si pas de logo) */
.sticky-navigation .header-logo-wrap {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: left;
}

.sticky-navigation .site-title {
    margin: 0;
    line-height: 1.5;
}

.sticky-navigation .site-description {
    display: none;
}

/* Menus à droite du logo - sur 2 lignes */
.sticky-navigation #menu-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1; /* Prend l'espace restant */
    margin: 0;
}

.sticky-navigation .main-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    margin: 0;
    width: 100%;
}

.sticky-navigation .main-navigation .primary-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px 0;
    list-style: none;
    flex-wrap: wrap; /* Permet le retour à la ligne automatique */
    gap: 10px; /* Espacement entre les items */
}

.sticky-navigation .main-navigation li {
    display: inline-block;
    float: none;
}

.sticky-navigation .main-navigation li a {
    margin: 0 12px;
    padding: 8px 0;
    line-height: 20px;
    display: block;
}

/* Ajustement de la hauteur de la barre sticky */
.sticky-navigation {
    min-height: auto;
    padding: 10px 0;
}

/* Bouton hamburger pour mobile */
.sticky-navigation .navbar-toggle {
    position: absolute;
    right: 15px;
    top: 15px;
    margin-right: 0;
}

/* Responsive - Mobile */
@media (max-width: 767px) {
    .sticky-navigation .container {
        display: block;
    }
    
    .sticky-navigation .navbar-header {
        display: block;
        text-align: center;
        padding: 10px 0;
    }
    
    .sticky-navigation .navbar-brand {
        display: inline-block;
        height: auto;
        padding: 5px 0;
    }
    
    .sticky-navigation .navbar-brand img {
        max-height: 50px;
    }
    
    .sticky-navigation .main-navigation {
        display: block;
        height: auto;
    }
    
    .sticky-navigation #menu-primary {
        display: block;
    }
    
    .sticky-navigation .main-navigation .primary-menu {
        display: block;
        padding: 0;
    }
    
    .sticky-navigation .main-navigation li {
        display: block;
        width: 100%;
    }
    
    .sticky-navigation .main-navigation li a {
        margin: 0;
        padding: 10px 15px;
    }
}

/* Pour tablettes */
@media (min-width: 768px) and (max-width: 991px) {
    .sticky-navigation .container {
        gap: 20px;
    }
    
    .sticky-navigation .navbar-brand img {
        max-height: 60px;
    }
    
    .sticky-navigation .main-navigation li a {
        margin: 0 8px;
        font-size: 14px;
    }
}

/* Pour grands écrans */
@media (min-width: 1200px) {
    .sticky-navigation .container {
        gap: 40px;
    }
    
    .sticky-navigation .navbar-brand img {
        max-height: 90px;
    }
    
    .sticky-navigation .main-navigation li a {
        margin: 0 15px;
    }
}

/* ==============================================
   RÉDUCTION MAXIMALE DU PIED DE PAGE (divisé par 4)
   Ajouté le 17/12/2024
=============================================== */

/* Réduction maximale du pied de page */
.footer {
    padding-top: 10px !important;  /* Réduit de 40px à 10px */
    padding-bottom: 10px !important; /* Réduit de 40px à 10px */
    font-size: 12px !important;
    line-height: 18px !important;
}

/* Réduction des marges des widgets du footer */
.footer .widget {
    margin-bottom: 12px !important; /* Réduit de 50px à 12px */
}

/* Réduction du titre des widgets */
footer.footer .widget-title {
    font-size: 14px !important; /* Réduit de 21px à 14px */
    line-height: 18px !important; /* Réduit de 28px à 18px */
    margin-bottom: 5px !important;
    margin-top: 0 !important;
}

/* Réduction de l'espace après le titre */
footer.footer .widget-title:after {
    height: 1px !important; /* Réduit de 2px à 1px */
    width: 60px !important; /* Réduit de 80px à 60px */
    margin-top: 2px !important; /* Réduit de 5px à 2px */
}

/* Réduction des listes dans le footer */
footer.footer ul {
    margin: 0 !important;
    padding-left: 0 !important;
}

footer.footer ul li {
    padding-top: 3px !important; /* Réduit de 10px à 3px */
    padding-bottom: 0 !important;
    font-size: 12px !important; /* Réduit de 16px à 12px */
    line-height: 16px !important;
}

/* Réduction de la section powered-by */
.powered-by {
    margin-top: 8px !important; /* Réduit de 30px à 8px */
    padding-top: 5px !important; /* Réduit de 5px */
    font-size: 11px !important; /* Réduit de 13px à 11px */
    line-height: 14px !important;
}

/* Réduction des icônes sociales */
ul.social-icons {
    margin-top: 3px !important; /* Réduit de 10px à 3px */
    margin-bottom: 0 !important;
}

.social-icons li {
    margin-right: 3px !important; /* Réduit de 5px à 3px */
    margin-left: 3px !important; /* Réduit de 5px à 3px */
}

footer.footer .social-icons i:before {
    width: 24px !important; /* Réduit de 30px à 24px */
    height: 24px !important; /* Réduit de 30px à 24px */
    line-height: 24px !important; /* Réduit de 30px à 24px */
    font-size: 11px !important; /* Réduit de 12px à 11px */
}

/* Réduction de l'espace des liens du footer */
.footer-links {
    margin: 0 !important;
}

.footer-links li {
    padding: 3px !important; /* Réduit de 10px à 3px */
}

.footer-links li a {
    font-size: 12px !important; /* Réduit de 14px à 12px */
    line-height: 16px !important;
}

/* Réduction des widgets box */
.footer-widget-wrap .widget-box {
    margin-bottom: 8px !important;
}

/* Calendrier widget */
footer.footer #wp-calendar {
    font-size: 11px !important;
}

footer.footer #wp-calendar caption {
    font-size: 12px !important;
    margin-bottom: 3px !important;
}

/* Formulaire de recherche */
.widget_search input {
    padding: 5px !important;
    font-size: 12px !important;
}

.widget_search .search-submit {
    height: 32px !important;
}

/* Texte du footer */
.footer,
.footer a {
    font-size: 12px !important;
    line-height: 18px !important;
}

/* Responsive - Mobile */
@media (max-width: 767px) {
    .footer {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
    
    .footer .widget {
        margin-bottom: 10px !important;
    }
    
    footer.footer .widget-title {
        font-size: 13px !important;
    }
    
    .powered-by {
        margin-top: 5px !important;
        font-size: 10px !important;
    }
}

/* Pour les tablettes */
@media (min-width: 768px) and (max-width: 991px) {
    .footer {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
}

/* ==============================================
   FORMULAIRE DE CONTACT MODERNE
   Ajouté le 17/12/2024
=============================================== */

/* Conteneur du formulaire */
.wpcf7 {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 30px 0;
}

/* Labels modernes */
.wpcf7 label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Champs de texte et textarea modernes */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 20px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    background: #f8f9fa;
    color: #2c3e50;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Focus des champs */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    outline: none;
    border-color: #f16c20;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(241, 108, 32, 0.15);
    transform: translateY(-2px);
}

/* Textarea spécifique */
.wpcf7 textarea {
    min-height: 140px;
    resize: vertical;
}

/* Bouton d'envoi moderne */
.wpcf7 input[type="submit"] {
    width: auto;
    min-width: 200px;
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #f16c20 0%, #e85d12 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(241, 108, 32, 0.3);
}

.wpcf7 input[type="submit"]:hover {
    background: linear-gradient(135deg, #e85d12 0%, #d94d02 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(241, 108, 32, 0.4);
}

.wpcf7 input[type="submit"]:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(241, 108, 32, 0.3);
}

/* Messages de validation */
.wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
    display: block;
    font-weight: 500;
}

.wpcf7-not-valid {
    border-color: #e74c3c !important;
    background: #fff5f5 !important;
}

/* Messages de succès et d'erreur */
.wpcf7-response-output {
    margin: 25px 0;
    padding: 18px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
}

.wpcf7-mail-sent-ok {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.wpcf7-mail-sent-ng,
.wpcf7-validation-errors,
.wpcf7-spam-blocked {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

/* Spinner de chargement */
.wpcf7 .ajax-loader {
    display: inline-block;
    margin-left: 15px;
    vertical-align: middle;
}

.wpcf7-spinner {
    visibility: visible;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #f16c20;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Colonnes pour formulaires multi-colonnes */
.wpcf7 .wpcf7-form-control-wrap {
    display: block;
}

/* Checkbox et radio modernes */
.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
    width: auto;
    margin-right: 8px;
    accent-color: #f16c20;
}

/* Groupes de champs */
.wpcf7 .wpcf7-form-control-wrap {
    position: relative;
    display: block;
}

/* Badge reCAPTCHA */
.grecaptcha-badge {
    z-index: 999;
}

/* Style pour les fichiers joints */
.wpcf7 input[type="file"] {
    padding: 12px;
    background: #f8f9fa;
    border: 2px dashed #e0e6ed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpcf7 input[type="file"]:hover {
    border-color: #f16c20;
    background: #fff5f0;
}

/* Responsive */
@media (max-width: 767px) {
    .wpcf7 {
        padding: 25px 20px;
        border-radius: 8px;
    }
    
    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"],
    .wpcf7 input[type="url"],
    .wpcf7 input[type="tel"],
    .wpcf7 textarea,
    .wpcf7 select {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .wpcf7 input[type="submit"] {
        width: 100%;
        min-width: auto;
        padding: 14px 30px;
        font-size: 15px;
    }
    
    .wpcf7 label {
        font-size: 14px;
    }
}

/* Tablettes */
@media (min-width: 768px) and (max-width: 991px) {
    .wpcf7 {
        padding: 35px 30px;
    }
}

/* Animation d'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wpcf7 {
    animation: fadeInUp 0.6s ease-out;
}

/* Effet de groupe de champs */
.wpcf7 p {
    margin-bottom: 0;
}

/* Style pour les champs requis */
.wpcf7 .wpcf7-form-control.wpcf7-validates-as-required {
    position: relative;
}

/* Amélioration de l'accessibilité */
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    outline: 2px solid #f16c20;
    outline-offset: 2px;
}

/* Style pour pirate forms si utilisé */
.pirate_forms_wrap input[type="text"],
.pirate_forms_wrap input[type="email"],
.pirate_forms_wrap textarea {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 20px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    background: #f8f9fa;
    color: #2c3e50;
    font-size: 15px;
    transition: all 0.3s ease;
}

.pirate_forms_wrap input[type="text"]:focus,
.pirate_forms_wrap input[type="email"]:focus,
.pirate_forms_wrap textarea:focus {
    border-color: #f16c20;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(241, 108, 32, 0.15);
}

.pirate_forms_wrap .pirate-forms-submit-button {
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #f16c20 0%, #e85d12 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ==============================================
   PAGE CONTACT - SUPPRESSION COLONNE GAUCHE (CALENDRIER)
   Ajouté et renforcé le 17/12/2024
=============================================== */

/* MASQUER COMPLÈTEMENT LA PREMIÈRE COLONNE avec tous les sélecteurs possibles */
.page-template-template-contact .content-page .col-md-6:first-child,
.page-template-template-contact .entry-content .col-md-6:first-child,
.page-template-template-contact .llorix_one_lite_contact_form .col-md-6:first-child,
.contact-page .content-page .col-md-6:first-child,
.contact-page .entry-content .col-md-6:first-child,
.contact-page .llorix_one_lite_contact_form .col-md-6:first-child,
article.contact-page .entry-content .col-md-6:first-child,
article.contact-page .llorix_one_lite_contact_form .col-md-6:first-child,
.page-template-template-contact article .entry-content .col-md-6:first-child,
.page-template-template-contact .entry-content > div.col-md-6:nth-child(1),
.contact-page .entry-content > div.col-md-6:nth-child(1) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Masquer aussi le contenu spécifique (calendrier, titre, paragraphes) */
.page-template-template-contact .entry-content .col-md-6:first-child *,
.contact-page .entry-content .col-md-6:first-child *,
article.contact-page .entry-content .col-md-6:first-child * {
    display: none !important;
}

/* METTRE LE FORMULAIRE (2ème colonne) EN PLEINE LARGEUR */
.page-template-template-contact .content-page .col-md-6:last-child,
.page-template-template-contact .entry-content .col-md-6:last-child,
.page-template-template-contact .llorix_one_lite_contact_form .col-md-6:last-child,
.contact-page .content-page .col-md-6:last-child,
.contact-page .entry-content .col-md-6:last-child,
.contact-page .llorix_one_lite_contact_form .col-md-6:last-child,
article.contact-page .entry-content .col-md-6:last-child,
article.contact-page .llorix_one_lite_contact_form .col-md-6:last-child,
.page-template-template-contact article .entry-content .col-md-6:last-child,
.page-template-template-contact .entry-content > div.col-md-6:nth-child(2),
.contact-page .entry-content > div.col-md-6:nth-child(2) {
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
    float: none !important;
    padding: 0 15px !important;
}

/* Masquer tous les calendriers WordPress sur la page contact */
.page-template-template-contact #wp-calendar,
.page-template-template-contact .widget_calendar,
.contact-page #wp-calendar,
.contact-page .widget_calendar,
article.contact-page #wp-calendar,
article.contact-page .widget_calendar {
    display: none !important;
    visibility: hidden !important;
}

/* Masquer la sidebar si elle existe */
.page-template-template-contact #sidebar-secondary,
.contact-page #sidebar-secondary {
    display: none !important;
}

/* Mettre le contenu principal en pleine largeur */
.page-template-template-contact #primary,
.contact-page #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin: 50px auto !important;
}

/* Titre de la page contact centré */
.page-template-template-contact .entry-title,
.page-template-template-contact .page-title,
.page-template-template-contact .single-title,
.contact-page .entry-title,
.contact-page .page-title,
.contact-page .single-title,
article.contact-page .entry-title {
    text-align: center !important;
    margin-bottom: 30px !important;
}

/* Ligne colorée centrée sous le titre */
.page-template-template-contact .colored-line-left,
.contact-page .colored-line-left,
article.contact-page .colored-line-left {
    float: none !important;
    margin: 0 auto 30px auto !important;
}

/* Entry content centré */
.page-template-template-contact .entry-content,
.contact-page .entry-content,
article.contact-page .entry-content {
    text-align: center;
}

/* Ajuster le conteneur du formulaire */
.page-template-template-contact .wpcf7,
.contact-page .wpcf7 {
    max-width: 100%;
    text-align: left;
}

/* Responsive - Mobile */
@media (max-width: 767px) {
    .page-template-template-contact .entry-content .col-md-6:last-child,
    .contact-page .entry-content .col-md-6:last-child,
    article.contact-page .entry-content .col-md-6:last-child {
        padding: 0 10px !important;
    }
}
