/**
 * @file
 * Use this CSS file to override base CSS rules
 */

/* Set default font weight to 300 for better typography in high-density screens */
/*body {
  font-weight: 300;
}*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/*----------------PAGE ACCUEIL----------------*/

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

      

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        h1 {
            
            color: #2c3e50;
            margin-bottom: 40px;
            font-size: 2.5em;
            font-weight: 600;
        }

        .grid-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
            padding: 20px;
        }

        .grid-item {
            background: white;
            border-radius: 16px;
            padding: 30px 20px;
            text-align: center;
            transition: all 0.3s ease;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
            position: relative;
            overflow: hidden;
            cursor: pointer;
        }

        .grid-item .card-link {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 1;
        }

        .grid-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 8px;
            background: var(--accent-color);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .grid-item:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
        }

        .grid-item:hover::before {
            transform: scaleX(1);
        }

        .icon-wrapper {
            width: 100px;
            height: 100px;
            margin: 0 auto 20px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-color);
            transition: transform 0.3s ease;
        }

        .icon-wrapper a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            text-decoration: none;
        }

        .grid-item:hover .icon-wrapper {
            transform: scale(1.1) rotate(5deg);
        }

        .icon-wrapper svg {
            width: 50px;
            height: 50px;
            fill: var(--icon-color);
        }

        .titre-accueil {
            margin: 0;
            color: #2c3e50;
            font-size: 1.1em;
            font-weight: 600;
            transition: color 0.3s ease;
        }

        .titre-accueil a {
            color: #2c3e50;
            text-decoration: none;
            position: relative;
            display: inline-block;
            transition: all 0.3s ease;
            padding: 4px 0;
        }
		
		.hero-top{
			
			padding:60px 0 60px 0;
			background-color:#e3f2fd!important;
			font-family: "Montserrat", sans-serif;
			
		}
		
		.field--name-title{
			font-family: "Montserrat", sans-serif!important;
		}

        

        .grid-item:hover .titre-accueil a {
            color: var(--accent-color);
            letter-spacing: 0.3px;
        }

        .grid-item:hover .titre-accueil a::after {
            width: 100%;
        }

        /* Couleurs spécifiques pour chaque carte */
        .grid-item:nth-child(1) {
            --bg-color: #FFF4E6;
            --icon-color: #F97316;
            --accent-color: #F97316;
        }

        .grid-item:nth-child(2) {
            --bg-color: #E0F2FE;
            --icon-color: #0EA5E9;
            --accent-color: #0EA5E9;
        }

        .grid-item:nth-child(3) {
            --bg-color: #FCE7F3;
            --icon-color: #EC4899;
            --accent-color: #EC4899;
        }

        .grid-item:nth-child(4) {
            --bg-color: #DBEAFE;
            --icon-color: #3B82F6;
            --accent-color: #3B82F6;
        }

        .grid-item:nth-child(5) {
            --bg-color: #FEF3C7;
            --icon-color: #F59E0B;
            --accent-color: #F59E0B;
        }

        .grid-item:nth-child(6) {
            --bg-color: #E0E7FF;
            --icon-color: #6366F1;
            --accent-color: #6366F1;
        }

        .grid-item:nth-child(7) {
            --bg-color: #D1FAE5;
            --icon-color: #10B981;
            --accent-color: #10B981;
        }

        .grid-item:nth-child(8) {
            --bg-color: #FEE2E2;
            --icon-color: #EF4444;
            --accent-color: #EF4444;
        }

        .grid-item:nth-child(9) {
            --bg-color: #E9D5FF;
            --icon-color: #A855F7;
            --accent-color: #A855F7;
        }

        .grid-item:nth-child(10) {
            --bg-color: #CCFBF1;
            --icon-color: #14B8A6;
            --accent-color: #14B8A6;
        }

        .grid-item:nth-child(11) {
            --bg-color: #F3E8FF;
            --icon-color: #9333EA;
            --accent-color: #9333EA;
        }

        .grid-item:nth-child(12) {
            --bg-color: #DCFCE7;
            --icon-color: #22C55E;
            --accent-color: #22C55E;
        }

        @media (max-width: 968px) {
            .grid-container {
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
            }
        }

        @media (max-width: 640px) {
            .grid-container {
                grid-template-columns: 1fr;
                gap: 20px;
                padding: 10px;
            }

            h1 {
                font-size: 1.8em;
                margin-bottom: 30px;
            }

            .grid-item {
                padding: 25px 15px;
            }

            .icon-wrapper {
                width: 80px;
                height: 80px;
            }

            .icon-wrapper svg {
                width: 40px;
                height: 40px;
            }
        }
		
		
/*---------------PAGE DES FILTRES PAR FORMATION------------------*/

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  min-height:400px;
}


.card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f5f5f5;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.custom-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 20px;
  text-align:center;
}

.card-title {
  font-size: 1.0em;
  font-weight: bold;
  color: #333;
  margin: 0 0 15px 0;
  line-height: 1.3;
}

.card-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ebebeb;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  margin-top: 10px;
}

.card-button:hover {
  background-color: #dedede;
  text-decoration: none;
}

.card-button a {
  text-decoration: none;
}

.views-exposed-form:not(.bef-exposed-form) .form--inline .form-actions input[type='submit'] {
    width: 179px!important;
}

/*------orange---------*/

.custom-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 300px;
  border-top: 4px solid #e77921;
}

.custom-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/*--------page alpha----------*/

.custom-card-alpha {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 300px;
  border-top: 4px solid #17a1ea!important;
}

.custom-card-alpha:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/*--------page anglais----------*/

.custom-card-anglais {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 300px;
  border-top: 4px solid #dc4a92!important;
}

.custom-card-anglais:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


/*--------page numerique----------*/

.custom-card-numerique {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 300px;
  border-top: 4px solid #3b81f9!important;
}

.custom-card-numerique:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/*--------page fle----------*/

.custom-card-fle {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 300px;
  border-top: 4px solid #f59e10!important;
}

.custom-card-fle:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/*--------page francais----------*/

.custom-card-francais {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 300px;
  border-top: 4px solid #6366f1!important;
}

.custom-card-francais:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/*--------page math----------*/

.custom-card-math {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 300px;
  border-top: 4px solid #12b783!important;
}

.custom-card-math:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/*--------page emploi----------*/

.custom-card-emploi {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 300px;
  border-top: 4px solid #d3504e!important;
}

.custom-card-emploi:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/*--------page concours----------*/

.custom-card-concours {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 300px;
  border-top: 4px solid #a753f4!important;
}

.custom-card-concours:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


/*--------page jeu forma----------*/

.custom-card-jeuforma {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 300px;
  border-top: 4px solid #11b6a2!important;
}

.custom-card-jeuforma:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/*--------page durable----------*/

.custom-card-durable {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 300px;
  border-top: 4px solid #22c65b!important;
}

.custom-card-durable:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.region--bright-background select option {
   
    color: #000000!important;
}


/*-------------tableau views ressource h5p----------*/

.view-conception-h5p .views-table tbody tr:nth-child(2n) {
  background-color: #eaf1f7;
}