/*
Theme Name: Twenty Twenty-Four Child
Template: twentytwentyfour
Theme URI: https://wordpress.org/themes/twentytwentyfour/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Four emphasizes simplicity and adaptability. It offers flexible design options, supported by a variety of patterns for different page types, such as services and landing pages, making it ideal for building personal blogs, professional portfolios, online magazines, or business websites. Its templates cater to various blog styles, from text-focused to image-heavy layouts. Additionally, it supports international typography and diverse color palettes, ensuring accessibility and customization for users worldwide.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/
 
/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */

/* Ligne 297 : alignements */
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
}
.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
}
.aligncenter {
	clear: both;
	text-align: center;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.featured-label {
  background: var(--wp--preset--color--accent-4);
  color: #000000;
  text-transform: uppercase;
  font-size: 12px !important;
  font-weight: bold;
  border-radius: 5px;
  padding: 2px !important;
  display: inline-block !important; /* ajoute !important */
  width: auto !important;           /* évite le 100% */
  max-width: fit-content;           /* adapte à la taille du texte */
}

.icon-dash {
    border-radius: 5px;
    padding: 8px; /* Vous pouvez simplifier le padding comme ceci */
    display: inline-block; /* Ajoutez cette ligne */
}

/* Assurer une largeur raisonnable du champ de recherche */
.wp-block-search__input {
    width: 100%;
    max-width: 400px;
    padding: 0.6em 1em;
    font-size: 1rem;
    border: 1px solid var(--wp--preset--color--contrast-30, #ccc);
    border-radius: 4px;
}

/* Optionnel : Style du bouton */
.wp-block-search__button {
    padding: 0.6em 1.2em;
    font-size: 1rem;
    border-radius: 4px;
    background-color: var(--wp--preset--color--primary, #000);
    color: #fff;
    border: none;
    cursor: pointer;
}

.wp-block-search__button:hover {
    background-color: var(--wp--preset--color--primary-hover, #333);
}

@media (min-width: 1024px) {
  .sticky-col {
    position: sticky;
    top: 100px; /* ajuste selon ton en-tête */
    align-self: flex-start;
  }
}

/* Appliquer un style global aux wrappers */
.wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 1rem; /* espace entre les champs */
}

/* Inputs textuels + email + tel + url + password */
.wpcf7-form-control[type="text"],
.wpcf7-form-control[type="email"],
.wpcf7-form-control[type="tel"],
.wpcf7-form-control[type="url"],
.wpcf7-form-control[type="password"],
textarea.wpcf7-form-control,
select.wpcf7-form-control {
  width: 90%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
}

/* Focus avec effet visuel */
.wpcf7-form-control[type="text"]:focus,
.wpcf7-form-control[type="email"]:focus,
.wpcf7-form-control[type="tel"]:focus,
.wpcf7-form-control[type="url"]:focus,
.wpcf7-form-control[type="password"]:focus,
textarea.wpcf7-form-control:focus,
select.wpcf7-form-control:focus {
  border-color: #eb7f1d;
  box-shadow: 0 0 0 3px rgba(0,115,230,0.2);
  outline: none;
}

/* Placeholder plus doux */
.wpcf7-form-control::placeholder {
  color: #888;
  font-style: italic;
}

.wpcf7-buttons-wrapper {
  display: flex;               /* active flexbox */
  justify-content: flex-end;   /* aligne à droite */
  align-items: center;         /* centre verticalement */
  gap: 20px;                   /* espace entre boutons */
  flex-wrap: nowrap;           /* empêche l’empilement */
}

/* S'assure que les boutons restent flex items */
.wpcf7-buttons-wrapper .cf7-btn-previous,
.wpcf7-buttons-wrapper .cf7-btn-submit {
  display: inline-flex;       /* nécessaire pour que le gap fonctionne correctement */
}