/*
Theme Name: Koga - Child Theme
Theme URI: http://www.3forty.media/koga
Author: 3FortyMedia
Author URI: http://www.3forty.media
Description: Koga Child theme
Version: 1.0
Text Domain: koga
Template: koga
*/

/* Start Custom CSS */

@font-face {
    font-family: "Mangueira Alt";
    src: url("./fonts/Mangueira-Alt-regular.woff2") format("woff2"),
    url("./fonts/Mangueira-Alt-regular.woff") format("woff");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Mangueira Alt";
    src: url("./fonts/Mangueira-Alt-bold.woff2") format("woff2"),
    url("./fonts/Mangueira-Alt-bold.woff") format("woff");
    font-weight: 700;
    font-display: swap;
}

:root {
    --body-font: "Mangueira Alt", Arial, Helvetica, sans-serif;
    --title-font: "Mangueira Alt", Arial, Helvetica, sans-serif;
    --alt-font: "Mangueira Alt", Arial, Helvetica, sans-serif;
}

.travel-destinations {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.category-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    justify-content: flex-start;
}

.category-item img {
    max-width: 80px;
}

.category-content {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    color: #2E2D2C; /* TODO: IMPLEMENT VARIABLES */
    padding: .25rem 0;
}

.category-content h4 {
    margin: 0;
}

:root {
	--widget-link-font-weight: 500;
	--chapka-yellow: #F3AA3C;
	--chapka-pink: #C83461;
	--chapka-blue: #2B6798;
	--chapka-green: #33754B;
	--chapka-orange: #ED6D34;
}

.travel-destinations {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.category-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex;
    justify-content: flex-start;
}

.category-content {
    display: flex;
    flex-direction: column;
    gap: .25rem;
		padding: .25rem 0;
}

.travel-destinations {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.travel-destinations h4 {
	color: var(--entry-title-color);
	margin: 0;
}

.category-content a {
	color: var(--entry-title-color);
	font-size: 1.25rem;
}

.category-content span {
	color: var(--medium-grey);
}

/**
 * Point de couleur pour les catégories (sur le côté des posts)
 * */

/* Ceux qui n'ont pas de styles */
.entry-meta a.cat-link-3::before, [class*="cat-slug"] a::before {
    background: #F3AA3C;
}

/* Mon PVT (ID 8) */
.entry-meta a.cat-link-8::before, [class*="cat-slug"] a.cat-link-8::before {
    background: #ED6D34;
}

/* Ma venue en France (ID 2) */
.entry-meta a.cat-link-2::before, [class*="cat-slug"] a.cat-link-2::before {
    background: #33324F;
}

/* Mes études et missions à l'étranger (ID 3) */
.entry-meta a.cat-link-3::before, [class*="cat-slug"] a.cat-link-3::before {
    background: #C83461;
}

/* Mes vacances (ID 4) */
.entry-meta a.cat-link-4::before, [class*="cat-slug"] a.cat-link-4::before {
    background: #F3AA3C;
}


/* Mon assurance Chapka (ID 6) */
.entry-meta a.cat-link-6::before, [class*="cat-slug"] a.cat-link-6::before {
    background: #5B5290;
}


/* Mon long voyage (ID 7) */
.entry-meta a.cat-link-7::before, [class*="cat-slug"] a.cat-link-7::before {
    background: #2B6798;
}

/* Retire les border sur les posts ou l'image cover (focus assurance)  */
.post-grid .article.cover.has-post-media .hentry-footer {
	border-top: none;
}

/** ---------- Section promotion app / assurance */

/* Conteneur principal */
.mobile-app-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px; /* max-w-6xl */
    margin: 0 auto;
    overflow: hidden;
    gap: 2rem;
	flex-grow: 1;
}

/* Sidebar */
.mobile-app-sidebar {
    background-color: #5B5290;
    color: white;
    padding: 1.5rem; /* p-6 */
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-radius: 0.5rem; /* rounded-lg */
}

.mobile-app-sidebar h2 {
    font-weight: bold;
    font-size: 1.25rem; /* text-xl */
    margin-bottom: 1.5rem; /* mb-6 */
}

.mobile-app-blog-posts {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem; /* space-y-6 */
    flex-grow: 1;
}

.mobile-app-post h3 {
    font-weight: 600;
    color: #C6C3DA;
		margin: 0;
	  font-size: 1.15rem;
		text-align: left;
}

.mobile-app-post p {
    font-size: 1rem;
    margin-top: 0.25rem; /* mt-1 */
    font-weight: 600;
		text-align: left;
}

/* Main content */
.mobile-app-main-content {
    position: relative;
    padding: 1.5rem; /* p-6 */
    background-color: #C6C3DA;
    border-radius: 0.5rem; /* rounded-lg */
	color: #000;
}

.mobile-app-content-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding-right: 0; /* Par défaut */
}

.mobile-app-main-content h1 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: bold;
    margin-bottom: 1.5rem; /* mb-6 */
}

/* Grille contenu */
.mobile-app-content-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;
}

/* Screenshots */
.mobile-app-screenshots {
    display: flex;
    justify-content: center;
		align-items: flex-end;
}

.mobile-app-screenshot-container {
    position: relative;
    height: 300px;
    width: 400px;
}

.mobile-app-screenshot {
    position: absolute;
    max-width: 100%;
    height: auto;
    bottom: 0; /* top-10 */
    transform: translateY(1.75rem);
}

.mobile-app-screenshot-left {
    z-index: 10;
}

/* Features */
.mobile-app-features {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem; /* space-y-4 */
}

.mobile-app-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem; /* gap-3 */
}

.mobile-app-feature-icon {
    width: 2rem;
    height: 2rem;
    padding: 0.5rem; /* p-2 */
    border-radius: 0.375rem;
		background-color: #fff;
		display: flex;
		justify-content: center;
		align-items: center;
}



.mobile-app-feature p {
    font-size: .75rem;
		text-align: left;
		margin: 0;
}

.mobile-app-button-container {
    display: flex;
    justify-content: flex-end;
}

.mobile-app-button {
    display: inline-block;
    background-color: #5D4B8C;
    color: white;
    padding: .75rem 1.5rem; /* px-4 py-2 */
    border-radius: 0.5rem; /* rounded-md */
    text-decoration: none;
    transition: background-color 0.3s; /* transition-colors */
    width: 100%;
    text-align: center;
}

.mobile-app-button:hover {
    background-color: #4A3A70;
		color: #fff;
}

.yellow {color: var(--chapka-yellow)}
.pink {color: var(--chapka-pink)}
.blue {color: var(--chapka-blue)}
.green {color: var(--chapka-green)}
.orange {color: var(--chapka-orange)}

.mobile-app-feature-icon span::before {
	font-size: 1.15rem;
}


.mobile-app-feature-icon .ic-picto-teleconsult::before {
	font-size: 1.25rem;
}

/* Media Queries pour le responsive */
@media (min-width: 1280px) { /* md: */
    .mobile-app-container {
        flex-direction: row;
    }

    .mobile-app-sidebar {
        width: 25%; /* md:w-1/4 */
    }

    .mobile-app-main-content {
        width: 75%; /* md:w-3/4 */
    }

    .mobile-app-content-inner {
        padding-right: 2.5rem; /* md:pr-10 */
    }

    .mobile-app-main-content h1 {
        font-size: 1.65rem; /* md:text-3xl */
				margin-bottom: 0;
    }

    .mobile-app-content-grid {
        flex-direction: row;
    }

    .mobile-app-screenshots {
        width: 50%; /* md:w-1/2 */
        margin-bottom: 0; /* md:mb-0 */
    }

    .mobile-app-features {
        width: 50%; /* md:w-1/2 */
    }

    .mobile-app-button {
        width: auto;
    }

    .mobile-app-button-container {
        margin-right: 20%; /* mt-6 */
    }
}

#tfm_post_block_4 > aside {
	flex-basis: auto;
	width: 100%;
}

/* Force le conteneur en carré */
.post-grid.tfm-posts-widget .thumbnail-wrapper {
    width: 90px;
    height: 90px;
    overflow: hidden;
    border-radius: 50%;
    display: inline-block; /* ou flex selon votre layout */
}

/* Adapte l'image au cercle */
.post-grid.tfm-posts-widget .post-thumbnail img {
    width: 100%;
		aspect-ratio: 4/4;
    height: 100%;
    object-fit: cover; /* Couvre tout l'espace sans déformation */
    object-position: center; /* Centre l'image */
}

.tp_container {
	margin: auto;
	display: flex;
	justify-content: center;
	max-width: 200px;
	flex-direction: column;
	gap: .5rem;
	justify-content: center;
	color: var(--widget-link-color, var(--entry-title-color));
}

.tp_logo {
	max-width: 160px;
	margin: auto;
}

.tp_stars {
	max-width: 250px;
}

.footer-column.footer-column-2 {
	gap: 1rem;
}

@media (min-width: 1060px) {
	.site-footer:not(.has-footer-nav) .footer-logo {
		margin-left: 0;
	}
}

body.tfm-dark-mode .footer-logo path {
	fill: #fff;
}

/** Bannière CTA Newsletter */

.cta-newsletter-block {
width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: rgba(43,103,152,1);
    height: 290px;
}

        .cta-newsletter-image {
            background-image: url('/wp-content/uploads/2025/06/newsletter_background-1.jpg');
            background-position: center;
            background-size: cover;
            height: 100%;
            width: 70%;
        }

        .cta-newsletter-gradient {
            position: absolute;
            width: 100%;
            bottom: 0;
            right: 0;
            height: 290px; 
            background: rgb(213,234,253);        
            background: linear-gradient(90deg, rgba(213,234,253,0) 24%,rgba(43,103,152,1) 62%);
        }

        .cta-newsletter-container {
            display: flex; 
            flex-direction: column;
            justify-content: center;
						align-items: center;
            width: 50%; 
            position: absolute;
            right: 0; 
            align-items: center; 
            height: 100%;
        }


        /* Reset CSS */
        .cta-newsletter-email-input {
        	 appearance: none;
        	 -webkit-appearance: none;
        	 -moz-appearance: none;
        	 border: none;
					border-width: 0!important;
        	 outline: none;
        	 background-clip: padding-box;
        	/* Styles de base */
        	 width: 100%;
        	 max-width: 350px!important;
        	 padding: 12px 16px!important;
        	 background-color: #d5eafd;
        	 border-radius: 0.5rem!important;
        	 color: #33324f;
        	 font-family: inherit;
        	 font-size: 1rem;
        	 line-height: 1.5;
        	 box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05)!important;
             transition: all 0.2s ease;
             font-weight: 600;
             text-align: center;
						 flex: 1 1 auto; 
        }

        .cta-newsletter-email-input::placeholder {
        	 color: #33324f!important;
        	 opacity: 0.9;
					transition: opacity .25s ease!important;
        }
        
        .cta-newsletter-email-input:hover {
        	 background-color: #c0dffb!important;
        	 box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1)!important;
        }
        
        .cta-newsletter-email-input:focus {
        	 background-color: #ebf5ff!important;
        	 box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.25), inset 0 1px 3px rgba(0, 0, 0, 0.1)!important;
        }



.cta-newsletter-email-input:focus::placeholder {
	transition: opacity .25s ease!important;
	   opacity: 0;
}

.cta-newsletter-input-wrapper {
            display: flex;
    align-items: center;
    justify-content: center; /* 👈 très important pour centrer input + bouton */
    gap: 10px;
    flex-wrap: wrap; /* pour le responsive */
    width: 100%;
    max-width: 500px;
        }

        .cta-newsletter-submit-btn {
            opacity: 0;
            transform: translateX(-20px);
            pointer-events: none;
            transition: opacity 0.3s ease, transform 0.3s ease;
            background-color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: 600;
            color: #2b6798;
            cursor: pointer;
					  position: absolute;
						padding: 14px 24px;
    right: -9999px;      /* complètement caché hors de l'écran */
        }

        /* Quand visible */
.cta-newsletter-submit-btn.visible {
    position: static;       /* revient dans le flow normal */
    right: auto;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

@media (max-width: 1024px) {
	.cta-newsletter-container {
		width: 100%;
	}
}

.question-select {
	padding: 10px;
	border: none;
	border-radius: 5px;
	outline: 'none';
	background-color: #BDE0DA;
	font-weight: 600;
	text-align: center;
	min-width: 250px;
	flex-grow: 1;
}

.question-select:focus {
	outline: none;
}

.question-select-container {
	display: flex;
	align-items: center;
	gap: 1rem;
	max-width: 70%;
}

#questions-container {
	justify-content: center;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.product-adviser {
	display: flex;
	width: var(--site-max-width); 
	flex-direction: column; 
	align-items: center;
	justify-content: center;
	background-color: #33754B;
	gap: 15px;
	padding: 40px 20px;
	border-radius: var(--post-thumbnail-border-radius);
}

.product-adviser.sidebar {
	width: auto;
	text-align: center;
	flex-direction: column;
	max-width: 300px;
}

.product-adviser.sidebar #questions-container {
	flex-direction: column;
}

.product-adviser.sidebar h3 {
	font-size: 1.25rem;
}

.product-adviser.sidebar h5 {
	font-size: 1rem;
}

.product-adviser.sidebar .question-select {
	 width: auto;
	 min-width: auto;
}

.wrap-inner {
	flex-wrap: inherit;
}

.product-adviser .button {
	background-color: #fff;
	color: #33754B;
}

.tfm-light-mode .wp-block-heading {
	color: #2B6798;
}


@font-face {
  font-family: 'chapka';
  src:  url('./fonts/chapka.eot?l55yrn');
  src:  url('./fonts/chapka.eot?l55yrn#iefix') format('embedded-opentype'),
    url('./fonts/chapka.ttf?l55yrn') format('truetype'),
    url('./fonts/chapka.woff?l55yrn') format('woff'),
    url('./fonts/chapka.svg?l55yrn#chapka') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

[class^="ic-"], [class*=" ic-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'chapka' !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ic-picto-assistance:before {
  content: "\e900";
}
.ic-picto-contrat:before {
  content: "\e901";
}
.ic-picto-remboursement:before {
  content: "\e902";
}
.ic-picto-teleconsult:before {
  content: "\e903";
}

.featured-media-caption {
	display: none;
}

#tfm_posts_widget-10 > h3:after {
	opacity: 0;
}