/*
Theme Name: Twenty Twenty-Five
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Five 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.3
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
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */


/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}
.centre{
	display:flex !important;
	justify-content:center !important;
}

/* CSS */
.banner{
  /* change juste ce chemin */
  background-image: url("http://www.maison-sources.fr/wp-content/uploads/2025/08/Appli-Maison-Sources-sur-iOS-et-Android-trading-en-culture_-fixez-Base-et-Futures-et-vendez-ble-orge.webp");
  background-size: cover;       /* remplit sans déformer */
  background-position: center;  /* centre l’image */
  background-repeat: no-repeat; /* pas de répétition */
  min-height: 18vw;            /* hauteur de ta bannière */
  width: 100%;
}
main{
	margin-top: 0 !important;
padding-bottom: 0 !important;
}

.wp-block-group.alignfull.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained{
	padding-top:0 !important;
padding-bottom: 0 !important;
}

.wp-block-group.alignfull.pin-stack.has-global-padding.is-layout-constrained.wp-container-core-group-is-layout-e555385e.wp-block-group-is-layout-constrained {
    margin-top: 0 !important;
}
  /* === Sticky + shrink on scroll === */
  .navbar{
    position: sticky;          /* reste en haut pendant toute la nav */
    top: 0;
    z-index: 9999;
    background: color-mix(in srgb, #ffffff 92%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(8px);
            backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid rgba(0,0,0,.06);
	  margin-bottom:0 !important;
  }
  /* décale sous la barre admin WP (connecté) */
  body.admin-bar .navbar{ top: 32px; }
  @media (max-width: 782px){
    body.admin-bar .navbar{ top: 46px; }
  }

  /* taille initiale (override des paddings inline) */
  .navbar .is-layout-flex{
    padding-top: 24px !important;
    padding-bottom: 24px !important;
    transition: padding .18s ease;
  }
  /* logo (override du style width inline) */
  .navbar .wp-block-image img{
    width: clamp(200px, 22vw, 330px) !important;
    height: auto !important;
    transition: width .18s ease;
  }

  /* état compact après scroll */
  .navbar.is-compact .is-layout-flex{
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
  .navbar.is-compact .wp-block-image img{
    width: 210px !important;
  }
  /* bouton plus dense quand compact */
  .navbar.is-compact .ml-login-cta{
    --ml-fz: 15px;
    --ml-py: 6px;
    --ml-px: 12px;
    --ml-gap: 6px;
    --ml-minh: 34px;
  }

footer{
	margin:0 !important;
}

  .gradient-circle{
    /* couleurs */
    --g1:#4C9E45; /* clair */
    --g2:#2B5328; /* foncé */

    position: relative;
    isolation: isolate;

    /* RADIAL : centre bas-gauche → les bords (donc le haut-droite) deviennent foncés */
    background-image: radial-gradient(
      ellipse farthest-corner at 26% 74%, /* centre ≈ bas-gauche */
      var(--g1) 0% 40%,                   /* étale le clair autour du centre */
      var(--g2) 100%                      /* foncé vers les coins (haut-droite notamment) */
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--g2); /* fallback */
  }

  /* Motif au-dessus du gradient, à 50% d’opacité */
  .gradient-circle::before{
    content:"";
    position:absolute; inset:0;
    background-image: url("https://www.maison-sources.fr/wp-content/uploads/2025/08/circle.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity:.5;              /* 50% */
    pointer-events:none;
    z-index:0;
  }

  /* Assure que ton contenu passe au-dessus du motif */
  .gradient-circle > *{ position:relative; z-index:1; }

  /* Ajuste légèrement sur mobile (optionnel) */
  @media (max-width: 768px){
    .gradient-circle{
      background-image: radial-gradient(
        ellipse farthest-corner at 22% 78%,
        var(--g1) 0% 44%,
        var(--g2) 100%
      );
    }
  }
/* Même hauteur pour les 2 colonnes de CETTE rangée */
@media (min-width:782px){
  .wp-container-core-columns-is-layout-35a45fa9{
    align-items: stretch !important;                 /* le parent étire ses enfants */
  }
  .wp-container-core-columns-is-layout-35a45fa9 > .wp-block-column{
    align-self: stretch !important;                  /* override des .is-vertically-aligned-* */
  }

  /* Optionnel : garder le contenu de la 1ère colonne centré verticalement */
  .wp-container-core-columns-is-layout-35a45fa9
  > .wp-block-column.gradient-circle{
    display:flex; flex-direction:column; justify-content:center;
  }
}
@media (min-width:782px){
  /* cette rangée */
  .wp-container-core-columns-is-layout-35a45fa9{
    align-items: stretch !important;
  }

  /* chaque colonne s’étire et devient un conteneur flex */
  .wp-container-core-columns-is-layout-35a45fa9 > .wp-block-column{
    align-self: stretch !important;
    display: flex;
    flex-direction: column;
  }

  /* centre le contenu de la gauche sans casser la hauteur */
  .wp-container-core-columns-is-layout-35a45fa9 > .wp-block-column.gradient-circle{
    justify-content: center;
    /* si ton fond est une image */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
  }
}

