/*
Theme Name: Base FSE
Author: SC
Description: Un thème FSE minimal pour servir de point de départ à la création de thème.
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.2
Version: 1.0
Text Domain: base-fse
Tags: 

/*
 * SOMMAIRE : 
 * 		CSS ISSU DE TWENTY TWENTY-FIVE
 * 		CSS ADDITIONNEL DU THÈME PERSONNEL
 * 			DÉFINITION DU REM
 * 			LARGEURS DE CARACTÈRES	
 */








/* -------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------
	CSS ISSU DE TWENTY TWENTY-FIVE
----------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------- */

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* 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;
}











/* -------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------
	CSS ADDITIONNEL DU THÈME PERSONNEL
----------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------- */


/* ----------------------------
DÉFINITION DU REM
16px jusqu’à 379px
puis augmentation progressive jusqu’à 18px
---------------------------- */
html {
	font-size: 16px;
}
@media (min-width: 380px) {
	html {
		font-size: clamp(16px, 16px + 0.12vw, 18px);
	}
}











/* ----------------------------
LARGEURS DE CARACTÈRES
75% jusqu’à 379px
puis augmentation progressive jusqu’à 125%
---------------------------- */

h1, h2, h3 {
	font-stretch: 92%;
	letter-spacing: -0.03em;
	transition: font-stretch .3s;
}
h1 {
	font-weight: 850;
}
h2 {
	font-weight: 725;
}
h3 {
	font-weight: 600;
}
@media (min-width: 800px) {
	h1 {
		font-stretch: 100%;
		letter-spacing: unset;
	}
	h2 {
		font-stretch: 100%;
		letter-spacing: -0.015em;
	}
}
@media (min-width: 1200px) {
	h1 {
		font-stretch: 125%;
	}
}

header{
	position: sticky;
	top:0;
	z-index: 50;
}

.wp-block-button__link:hover{
	background-color: #f5e6d6 !important;
	color: #2f5d50 !important;

}


.titre {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.titre.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animation de léger zoom au survol */
.zoom {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform: scale(1);
}

/* Effet au survol */
.zoom:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* -----------------------------------------------------------
	FORMULAIRE DE CONTACT
----------------------------------------------------------- */
/* Dans le cas où box-sizing: border-box; n’est pas intégré au code CSS de votre thème */
.wpcf7-form, 
.wpcf7-form *, 
.wpcf7-form *:before, 
.wpcf7-form *:after { 
	box-sizing: border-box; 
}

/* Général */
.wpcf7-form {
    padding: var(--wp--preset--spacing--20);
    background-color: var(--wp--preset--color--contraste-clair);
    border-radius: .5rem;
}
.wpcf7-form label {
    color: var(--wp--preset--color--contraste);
}
.wpcf7-form input[type=text], 
.wpcf7-form input[type=email], 
.wpcf7-form input[type=tel], 
.wpcf7-form textarea {
    width: 100%;
    padding: .5rem;
    margin-bottom: .75rem;
    border: .25rem solid var(--wp--preset--color--base-clair);
    color: var(--wp--preset--color--contraste);
    font-size: 1rem;
    /* Enlever styles par défaut */
    outline: none;
    appearance: none;
    box-shadow: none;
    border-radius: 0;
    /* Transition */
    transition: border 0.3s;
}
.wpcf7-form input:focus, 
.wpcf7-form textarea:focus {
    border: .25rem solid var(--wp--preset--color--accent-1);
    /* Enlever styles par défaut */
    outline: none !important;
    outline-width: 0 !important;
}
.wpcf7-form textarea {
    height: 9rem;
    resize: vertical;/* redimensionnement possible seulement vertical */
}
.wpcf7-form input[type=submit] {
    padding: 1rem 1.5rem;
    background-color: var(--wp--preset--color--accent-1);
    color: var(--wp--preset--color--contraste);
    font-size: 1rem;
    border-radius: .5rem;
    border: none;
}
.wpcf7-form input[type=submit]:hover {
    background-color: var(--wp--preset--color--contraste-sombre);
    color: var(--wp--preset--color--accent-1);
}

/* spécifique à Contact Form 7 */
.wpcf7-list-item.first, 
.wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
}
.wpcf7-form p input[type=text], 
.wpcf7-form p input[type=email], 
.wpcf7-form p input[type=tel], 
.wpcf7-form p textarea {
    margin-bottom: 0;
}
/* -----------------------------------------------------------
	FIN FORMULAIRE DE CONTACT
----------------------------------------------------------- */


.delegue{
    background-image: url(assets/images/plante.png);
    background-size: 20rem;
    background-repeat: no-repeat;
    background-position: left center;
}

footer.wp-block-template-part{
    padding: 0;
    margin: 0;
}

@media (max-width: 1000px){
    .delegue {
        background-image: none;
    }

}

@media (max-width: 1200px){
    .wp-block-gallery{
        grid-template-columns: (2,1fr);
    }
}

.wp-block-navigation a {
  text-decoration: none;
}
.wp-block-navigation a:hover {
  transform: scale(1.1); /* Zoom léger */
}

footer{
    padding-top: 2rem;
}