/*
Theme Name:        Twenty Twenty-Five Child
Theme URI:         https://caire84.org
Description:       Thème enfant pour Twenty Twenty-Five - Designé pour CAIRE84
Author:            Clothilde Héras - Code au Soleil
Author URI:        https://www.codeausoleil.fr
Template:          twentytwentyfive
Version:           0.1.0
*/


/*****************/
/* CORRECTIONS WP*/
/*****************/

/* Galerie : centrer verticalement les images*/
.wp-block-gallery.has-nested-images:not(.is-cropped) figure.wp-block-image:not(#individual-image) {
  margin-bottom: initial;
}


/*********/
/* MENUS */
/*********/

/* Désactiver le souligné au hover*/
.wp-block-navigation-item a:hover {
  text-decoration: none;
}

/* Ajouter un petit rond de couleur au hover */
.wp-block-navigation-item a {
  position: relative;
  padding-bottom: 14px;
}
.wp-block-navigation-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.wp-block-navigation-item a:hover::after {
  opacity: 1;
}

/* Les couleurs des ronds du menu */
.c84-menu-item-1 a::after  { background-color: #ed6284; } /* Rose */
.c84-menu-item-2 a::after  { background-color: #4b68aa; } /* Bleu */
.c84-menu-item-3 a::after  { background-color: #ed7044; } /* Orange */
.c84-menu-item-4 a::after  { background-color: #69a086; } /* Vert foncé */
.c84-menu-item-5 a::after  { background-color: #ed6284; } /* Rose */
.c84-menu-item-6 a::after  { background-color: #9cc724; } /* Vert clair */
.c84-menu-item-7 a::after  { background-color: #4b68aa; } /* Bleu */


/* MENU RESPONSIVE */
.c84-menu-responsive .wp-block-navigation-item a::after {
  top: 0;
  left: 0;
  transform: none;
  float: left;
  position: relative;
  margin-right: 15px;
  opacity: 1;
}

/* Désactiver l'encadré du logo */
.custom-logo-link {
  outline-style: none;
}



/********/
/* HERO */
/********/

.c84-hero-title { 
  font-size: clamp(4rem, 4vw, 6rem) !important;
  letter-spacing: 0.2rem !important;
  position: relative;
  z-index: 1;
}

.c84-hero-text {
  position: relative;
  z-index: 1;
  height: 100%;
}

.c84-hero-text::before {
  content: "";
  background-color: var(--wp--preset--color--accent-2);
  height: 100px;
  width: 100px;
  border-radius: 100px;
  display: block;
  position: absolute;
  left: -50px;
  top: calc(100% + 75px);
  z-index: -10;
}

.c84-hero-img {
  position: relative;
  z-index: 10;
}

.c84-hero-img::before {
  content: "";
  background-color: var(--wp--preset--color--accent-3);
  height: 184px;
  width: 184px;
  border-radius: 150px;
  display: block;
  position: absolute;
  left: -92px;
  top: 0px;
  z-index: -10;
}

.c84-hero-img::after {
  content: "";
  background-color: var(--wp--preset--color--custom-accent-7);
  height: 400px;
  width: 400px;
  border-radius: 200px;
  display: block;
  position: absolute;
  right: 0;
  bottom: 0px;
  z-index: -10;
}



/**********/
/* TITRES */
/**********/

/* Pages par défaut */

h1 {
  background-color: var(--wp--preset--color--accent-3);
  color: #FFFFFF;
  padding: 2em 1em;
}

h2::before {
  content: '';
  background-color: var(--wp--preset--color--accent-2);
  width: 0.6em;
  height: 0.6em;
  display: inline-block;
  border-radius: 6em;
  position: relative;
  z-index: -1;
  vertical-align: center;
  margin-right: 0.5em;
}

.is-style-section-1 h2::before {
  content: none;
}

h3.is-style-text-subtitle {
  color: var(--wp--preset--color--accent-3);
}

.c84-list-number {
  background-color: var(--wp--preset--color--accent-3);
  color: #FFFFFF;
  font-weight: bold;
  border-radius: 2em;
  font-size: 3em;
  padding: 0;
  text-align: center;
  min-height: 2em;
  min-width: 2em;
  line-height: 2em;
}
.c84-list-number.c84-list-number-1  { background-color: #4b68aa; } /* Bleu */
.c84-list-number.c84-list-number-2  { background-color: #ed6284; } /* Rose */
.c84-list-number.c84-list-number-3  { background-color: #9cc724; } /* Vert clair */
.c84-list-number.c84-list-number-4  { background-color: #ed7044; } /* Orange */
.c84-list-number.c84-list-number-5  { background-color: #69a086; } /* Vert foncé */
.c84-list-number.c84-list-number-6  { background-color: #ed6284; } /* Rose */

.c84-colored-list-1 li::marker  { color: #4b68aa; } /* Bleu */
.c84-colored-list-2 li::marker  { color: #ed7044; } /* Orange */
.c84-colored-list-3 li::marker  { color: #ed6284; } /* Rose */
.c84-colored-list-4 li::marker  { color: #69a086; } /* Vert foncé */

/* Pages sans titre (Accueil) */
.c84-subtitle {
  color: var(--wp--preset--color--accent-2);
  font-style: italic;
  text-transform: none;
}

.page-template-page-no-title h1 {
  background-color: initial;
  color: inherit;
}

.page-template-page-no-title h2::before {
  content: none;
}



/************/
/* PARALLAX */
/************/

.c84-background-img-parallax {
  background-attachment: fixed;
}

.c84-background-img-parallax::before {
  content: "";
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
  width: 100%;
  height: 100%;
  inset: 0;
}

.c84-background-img-parallax > * {
  position: relative;
  z-index: 10;
}



/********************/
/*    RESPONSIVE    */
/********************/

/* XS + SM */
@media (max-width: 575.98px) {
  
  .c84-hero-text::before, 
  .c84-hero-img::before, 
  .c84-hero-img::after {
    display: none;
  }
  
  .c84-hero-text {
    background-image: radial-gradient(circle at 105% 65%, var(--wp--preset--color--accent-3) 84px, transparent 85px);
    background-repeat: no-repeat;
  }

}

