/* === PAGE SEARCH EASYLETTRE === */


/* ============================================================
   DESIGN BUREAU (Par défaut - plus de 1024px)
   ============================================================ */
#slide-search {
    background-image: url('assets/slide-search3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
	background-attachment: fixed;
    height: 650px;
    width: 100%;
    margin-top: -135px; /* Votre réglage actuel */
	z-index:-10;	
}

/* ============================================================
   DESIGN TABLETTE (Entre 768px et 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    #slide-search {
        background-image: url('assets/slide-search3.jpg');
        height: 650px;    /* On réduit un peu la hauteur */
        margin-top: -135px; /* On ajuste le décalage */
    }
}

/* ============================================================
   DESIGN MOBILE (Moins de 767px)
   ============================================================ */
@media (max-width: 767px) {
    #slide-search {
        background-image: url('assets/slide-mobile2.jpg');
        height: 600px;     /* Hauteur adaptée aux petits écrans */
        margin-top: -135px;  /* Décalage réduit pour ne pas manger le contenu */
        background-position: top center;
    }
}

/* ============================================================
   1. BASE & ORDINATEUR (Par défaut)
   ============================================================ */
   
.title-search {
	position: relative;
	font-family : Montserrat;
    font-size: 65px;
	font-weight : normal;
    color: #f3f3f3;
	margin-top: -460px;
    text-align: center;
	text-shadow: 1px 1px 1px rgb(0 0 0 / 20%);
}
.parent {
    display: flex;
    flex-direction: column;
    align-items: center; /* centre horizontalement */
    /*align-items: center;*/     /* vertical */
    height: 370px;           /* hauteur nécessaire */
	margin-top: -10px;
	padding-left:15px;
	padding-right:15px;
}
.enfant1 {
	display: flex;
    justify-content: center;
    height: 170px;
	width: 950px;
	max-width: 950px;
	min-width: 350px;
	text-align:center;
    background-image: url('assets/bg-icone.jpg');
	background-repeat: no-repeat;
	background-size: cover;
	border-radius: 10px 10px 0px 0;
	z-index:5;
}
.enfant2 {
	/*display: flex;*/
    justify-content: center;
	margin-top: -25px;
	width: 950px;
	max-width: 950px;
	min-width: 350px;
	text-align:center;
	background-color: #2d6eb2;
	background-repeat: no-repeat;
	background-size: cover;
	z-index:4;
}
.enfant3 {
	display: flex;
    justify-content: center;
	margin-top: -40px;
	width: 950px;
	max-width: 950px;
	min-width: 350px;
	text-align:center;
    background-image: url('assets/bg-footer.jpg');
	background-repeat: no-repeat;
	background-size: cover;
	z-index:6;
}
.bgo-result {
	display: flex;
    justify-content: center;
    height: 119px;
	margin-top: -235px;
    background-image: url('assets/bgo-result.png');
	background-repeat: no-repeat;
	background-size: 100%;
	/*background-size: cover;*/
	z-index:2;
}
.white-result {
    height: 136px;
	margin-top: -24px;
	background-color: #f7f7f7;
	z-index:2;
}
   
.easylettre-result-card {
    position: relative;
}
.easylettre-search-header {
    margin-bottom: 40px;
}

.easylettre-search-title {
    font-size: 2.2em;
    margin: 20px;
    text-align: center;
	color : #ffffff;
}

.easylettre-search-subtitle {
    font-size: 1.1em;
    color: #555;
    margin: 90px 20px 0px 20px;
    text-align: center;
}

.easylettre-search-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 24px;
    margin: 30px auto;
    justify-content: center;
    max-width: 1200px;
}

.easylettre-result-card {
    border: 5px solid #e2e2e2;
    padding: 20px;
    border-radius: 10px;
    background: #ffffff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex; /* Permet d'aligner le contenu verticalement */
    flex-direction: column;
}

.easylettre-result-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.easylettre-result-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.easylettre-result-excerpt {
    font-size: 0.95em;
    color: #444;
    flex-grow: 1; /* Pousse le bouton vers le bas pour que toutes les cartes soient égales */
}


.easylettre-no-result {
	margin-top: 64px; 
    text-align : center;
	color: #444;
	padding : 15px;
}

.easylettre-result-cta {
    display: inline-block;
    margin-top: auto; /* LA MAGIE EST ICI : pousse le bouton tout en bas */
    padding: 10px 16px;
    background: #1e73be;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s ease;
    text-align: center;
}
.easylettre-result-cta2 {
    display: inline-block;
    margin-top: auto; /* LA MAGIE EST ICI : pousse le bouton tout en bas */
    padding: 10px 16px;
    background: #1e73be;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s ease;
    text-align: center;
}

.easylettre-result-cta:hover {
    color: #ffffff;
    background: #3B3B3B;
}
.easylettre-result-cta2:hover {
    color: #ffffff;
    background: #3B3B3B;
}

.ancre-results {
	margin-top:-18px;
	width:100%;
	text-align:center;
}

/*-------------------------------------------------------------------*/
.card-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #1a4f8b;
    background: #eaf3fb;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

/*-------------------------------------------------------------*/
.card-category-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.card-category-icon {
    width: 150px;
    height: 100px;
    object-fit: contain;
}

/*----------------------------------------------------------*/

.card-category + .card-title {
    margin-top: 4px;
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    background: #ffcc00;
    color: #000;
	z-index: 10;
}

.card-badge-le_plus_utilise {
    background: #2ec306;
	color: #ffffff;
}

.card-badge-nouveau {
    background: #db2fc1;
    color: #fff;
}

.card-badge-recommande {
    background: #f86808;
    color: #fff;
}

.card-badge-lettre {
    background: #fff005;
    color: #000;
}

.card-badge-modeles {
    background: #36de61;
    color: #000;
}
/*------------------------------------------------*/
.card-cta {
    display: inline-block;
    padding: 8px 16px;
    background: #1a4f8b;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
}

.card-cta.secondary {
    background: #eaf3fb;
    color: #1a4f8b;
}
/*-----------------------------------------------*/
.search-results-meta {
    max-width: 1200px;
    margin: -30px auto 25px auto;
    padding: 10px 20px;
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 500;
    text-align: center;
    /*background: rgba(0,0,0,0.02);
    border-radius: 8px;*/
}

.search-results-meta .search-query {
    color: var(--global-palette1);
    font-weight: 600;
}
.search-results-meta.no-results {
	margin-top: 64px;
    color: #a33;
    font-weight: 500;
	z-index: 7;
}
/*-----------------------------------------------*/
.category-model-count {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--global-palette5);
	    padding: 4px 10px;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.04);
}



/* ============================================================
   2. TABLETTE (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .easylettre-search-title {
        font-size: 1.8em;
        margin: 15px;
    }
    
    .easylettre-search-results {
        padding: 0 15px; /* Évite que les cartes touchent les bords de l'écran */
        gap: 20px;
    }
	
.title-search {
    font-size: 50px;
}
	

.enfant1 {
	max-width: 750px;
	min-width: 360px;
	background-size: cover;
}

.enfant2 {
	margin-top: -10px;
	max-width: 750px;
	min-width: 360px;
}

.enfant3 {
	margin-top: -45px;
	max-width: 750px;
	min-width: 360px;
}

.bgo-result {
	background-size: cover;
}
.white-result {
    height: 136px;
	margin-top: 0px;
	background-color: #f7f7f7;
	z-index:2;
}
.easylettre-no-result {
	margin-top: 34px; 
}
	
}


/* ============================================================
   3. SMARTPHONE (max 767px)
   ============================================================ */
@media (max-width: 767px) {
    .easylettre-search-header {
        margin-bottom: 20px;
    }

    .easylettre-search-title {
        font-size: 1.5em; /* Titre plus petit pour mobile */
        margin: 10px 5px;
    }

    .easylettre-search-subtitle {
        font-size: 1em;
        margin: 10px 5px;
    }

    .easylettre-search-results {
        margin: 15px;
        gap: 16px; /* Espace réduit entre les cartes */
    }

    .easylettre-result-card {
        padding: 15px;
        border-width: 3px; /* Bordure un peu plus fine sur mobile */
    }

    .easylettre-result-title {
        font-size: 1.1em;
    }

    .easylettre-result-cta {
        width: 100%; 
        align-self: stretch; /* Oblige le bouton à prendre toute la largeur sur mobile */
        /*margin-top: auto;*/    /* Toujours en bas */
        padding: 12px;
    }
	    .easylettre-result-cta2 {
        width: 90%; 
        align-self: stretch; /* Oblige le bouton à prendre toute la largeur sur mobile */
        /*margin-top: auto;*/    /* Toujours en bas */
        padding: 12px;
    }
	
.title-search {
    font-size: 50px;
}
	

.enfant1 {
	max-width: 360px;
	min-width: 360px;
	background-size: cover;
}

.enfant2 {
	margin-top: -10px;
	max-width: 360px;
	min-width: 360px;
}

.enfant3 {
	margin-top: -45px;
	max-width: 360px;
	min-width: 360px;
}

.bgo-result {
	background-size: cover;
}
.white-result {
    height: 136px;
	margin-top: 0px;
	background-color: #f7f7f7;
	z-index:2;
}
.search-results-meta.no-results {
	margin-top: -50px;
}
.search-results-meta {
    padding-top:20px;
}
.easylettre-no-result {
	margin-top: 54px; 
}
	
}


/*------------------------------Bouton ancre-----------------------------------*/

.img-hover-link {
    display: inline-block;
    text-decoration: none;
}

.img-hover-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.img-hover-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Image principale */
.img-hover-main {
    position: relative;
    z-index: 1;
}

/* Image au survol */
.img-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 2;
}

/* Effet au hover */
.img-hover-link:hover .img-hover-overlay {
    opacity: 1;
}

.img-hover-link:hover .img-hover-main {
    opacity: 0;
}





