/* Style pour le conteneur principal de l'éditeur */
.editor-styles-wrapper {
    max-width: 100% !important;
    position: relative;
}

/* Style pour les blocs standards */
.wp-block {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Style pour les blocs alignés en large */
.wp-block[data-align="wide"] {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Style pour les blocs en pleine largeur */
.wp-block[data-align="full"] {
    max-width: 100vw;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative;
    padding-left: 0;
    padding-right: 0;
}

/* Style spécifique pour le bloc cover en pleine largeur */
.wp-block-cover.alignfull,
.wp-block-cover[data-align="full"] {
    max-width: 100vw;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative;
    padding-left: 0;
    padding-right: 0;
}

/* Ajustement pour le contenu interne du cover */
.wp-block-cover__inner-container {
    width: 100%;
    max-width: 1300px; /* Pour le contenu large */
    margin: 0 auto;
    padding: 0 20px; /* Ajoute un peu d'espace sur les côtés */
}

/* Ajustement de l'espacement dans les blocs d'en-tête */
.wp-block-cover .wp-block-cover__inner-container > * {
    margin-bottom: 1.5rem;
}

.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover h3,
.wp-block-cover h4,
.wp-block-cover h5,
.wp-block-cover h6 {
    margin-bottom: 2rem;
}

.wp-block-cover p {
    margin-bottom: 1.5rem;
}

/* Ajustement pour les grands titres dans les blocs cover */
.wp-block-cover__inner-container > h1,
.wp-block-cover__inner-container > h2 {
    margin-bottom: 2.5rem;
    line-height: 1.4;
}

/* Espacement entre les éléments du bloc */
.wp-block-cover__inner-container > *:not(:last-child) {
    margin-bottom: 2rem;
}

/* Style pour les colonnes dans le cover */
.wp-block-cover .wp-block-columns {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Espacement pour le cover */
.wp-block-cover {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

/* Réplique des styles de votre thème */
.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6 {
    /* Copiez ici les styles de vos titres */
    color: #FFB603; /* Votre couleur principale */
}

/* =========================
   BOUTONS HARMONISÉS ÉDITEUR
========================= */
.wp-block-button__link {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid #FFB603;
    background: #FFB603;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 4px 15px rgba(255, 182, 3, 0.15);
    position: relative;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    z-index: 1;
}

.wp-block-button__link:hover {
    background: #79C5DD;
    border-color: #79C5DD;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(121, 197, 221, 0.18);
}

.wp-block-button__link:focus {
    outline: none;
    box-shadow: 0 0 0 3px #FFB603;
}

.is-style-outline .wp-block-button__link {
    background: transparent;
    color: #FFB603;
    border: 2px solid #FFB603;
    box-shadow: none;
}

.is-style-outline .wp-block-button__link:hover {
    background: #FFB603;
    color: #fff;
    border-color: #FFB603;
    box-shadow: 0 4px 15px rgba(255, 182, 3, 0.15);
    transform: translateY(-2px);
}

/* Espacement pour les boutons */
.wp-block-buttons {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Style pour le bloc Média & texte */
.wp-block-media-text {
    max-width: 1140px !important;
    margin: 4rem auto;
    grid-template-columns: 50% 1fr;
    gap: 2rem;
}

.wp-block-media-text__content {
    padding: 0 8%;
}
