/*
Theme Name:   Current Trends (enfant de Hello Elementor)
Theme URI:    https://currenttrends.fr/
Description:  Thème enfant de Hello Elementor pour Current Trends. Il reproduit l'en-tête et le pied de page du site avec du PHP et du CSS, sans Elementor Pro.
Author:       Romain Royer
Template:     hello-elementor
Version:      1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain:  currenttrends-child
License:      GNU General Public License v3 or later
License URI:  https://www.gnu.org/licenses/gpl-3.0.html
*/

/* ==========================================================================
   Réglages communs
   Les valeurs reprennent celles mesurées sur le site en ligne (novembre 2026).
   Points de rupture identiques à Elementor : ordinateur à partir de 1025 px,
   tablette et mobile jusqu'à 1024 px.
   ========================================================================== */

:root {
	--ct-container: 1140px;
	--ct-border: #d5d5d5;
	--ct-text: #7a7a7a;          /* Couleur « Texte » du kit Elementor */
	--ct-accent: #61ce70;        /* Couleur « Accent » du kit Elementor */
	--ct-dark: #3f444b;          /* Survol des menus déroulants */
	--ct-dropdown-text: #33373d; /* Texte des menus déroulants */
	--ct-search-bg: #f1f2f3;
	--ct-font-title: "Open Sans", sans-serif;
	--ct-font-text: "Roboto", sans-serif;
}

.ct-header,
.ct-header *,
.ct-footer,
.ct-footer * {
	box-sizing: border-box;
}

.ct-header {
	position: relative;
}

.ct-container {
	display: flex;
	position: relative;
	max-width: var(--ct-container);
	margin-inline: auto;
}

/* Icônes SVG (mêmes dessins que Font Awesome et les icônes Elementor) */
.ct-icon {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* Boutons : on neutralise les styles de bouton du thème Hello et du kit
   Elementor (bordure rose, fond rose au survol). L'apparence visible est
   portée par les éléments placés dans le bouton. */
.ct-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

body button.ct-btn {
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	font: inherit;
	line-height: 1;
	text-transform: none;
	white-space: normal;
	transition: none;
	cursor: pointer;
	min-height: 0;
	width: auto;
}

body button.ct-btn:hover,
body button.ct-btn:focus,
body button.ct-btn:active {
	background-color: transparent;
	border-color: transparent;
	color: inherit;
	text-decoration: none;
}

/* ==========================================================================
   Menus : base commune
   ========================================================================== */

.ct-nav .ct-menu,
.ct-nav .ct-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ct-nav .ct-menu li {
	position: relative;
}

.ct-nav .ct-menu a {
	display: flex;
	align-items: center;
	text-decoration: none;
	transition: 0.4s;
}

/* ---------- Menu horizontal (en-tête ordinateur et pied de page ordinateur) */

.ct-nav--main .ct-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.ct-nav--main .ct-menu > li > a {
	position: relative;
	font-family: var(--ct-font-title);
	font-weight: 600;
	font-size: 16px;
	line-height: 20px;
	color: var(--ct-text);
}

.ct-nav--main .ct-menu > li > a:hover,
.ct-nav--main .ct-menu > li > a:focus,
.ct-nav--main .ct-menu > li:hover > a,
.ct-nav--main .ct-menu > li.ct-open > a,
.ct-nav--main .ct-menu > li.current-menu-item > a {
	color: var(--ct-accent);
}

/* Trait sous le lien (effet « soulignement » en fondu d'Elementor) */
.ct-nav--main .ct-menu > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 2;
	width: 100%;
	height: 3px;
	background-color: var(--ct-accent);
	opacity: 0;
	transition: 0.3s;
	transition-timing-function: cubic-bezier(0.58, 0.3, 0.005, 1);
}

.ct-nav--main .ct-menu > li > a:hover::after,
.ct-nav--main .ct-menu > li > a:focus::after,
.ct-nav--main .ct-menu > li:hover > a::after,
.ct-nav--main .ct-menu > li.ct-open > a::after,
.ct-nav--main .ct-menu > li.current-menu-item > a::after {
	opacity: 1;
}

/* Sous-menus du menu horizontal : apparition au survol après 0,25 s et
   disparition après 0,5 s, comme le script SmartMenus d'Elementor. */
.ct-nav--main .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 3;
	width: auto;
	min-width: 10em;
	max-width: 1000px;
	font-size: 13px;
	background-color: #fff;
	visibility: hidden;
	transition: visibility 0s linear 0.5s;
}

.ct-nav--main .sub-menu .sub-menu {
	top: 0;
	left: 100%;
}

.ct-nav--main li:hover > .sub-menu {
	visibility: visible;
	transition-delay: 0.25s;
}

.ct-nav--main li:focus-within > .sub-menu,
.ct-nav--main li.ct-open > .sub-menu {
	visibility: visible;
	transition-delay: 0s;
}

.ct-nav--main .sub-menu a {
	padding: 13px 20px;
	border-inline-start: 8px solid transparent;
	font-family: var(--ct-font-text);
	font-weight: 500;
	font-size: 13px;
	line-height: 20px;
	white-space: nowrap;
	color: var(--ct-dropdown-text);
	background-color: transparent;
}

.ct-nav--main .sub-menu a:hover,
.ct-nav--main .sub-menu a:focus,
.ct-nav--main .sub-menu li:hover > a,
.ct-nav--main .sub-menu li.ct-open > a {
	background-color: var(--ct-dark);
	color: #fff;
}

/* ---------- Menu déroulant (en-tête mobile et pied de page mobile) */

.ct-nav--dropdown {
	margin-top: 10px;
	font-size: 13px;
	background-color: #fff;
	transform-origin: top;
	transform: scaleY(0);
	max-height: 0;
	overflow: hidden;
	visibility: hidden;
	transition: max-height 0.3s, transform 0.3s, visibility 0s linear 0.3s;
}

.ct-nav--dropdown.is-open {
	transform: scaleY(1);
	max-height: 1000vmax; /* même réglage qu'Elementor : le menu ouvert n'est pas limité en hauteur */
	overflow-x: hidden;
	overflow-y: auto;
	visibility: visible;
	transition: max-height 0.3s, transform 0.3s, visibility 0s;
}

.ct-nav--dropdown .ct-menu a {
	justify-content: flex-start;
	padding: 10px 20px;
	font-family: var(--ct-font-text);
	font-weight: 500;
	font-size: 13px;
	line-height: 20px;
	color: var(--ct-dropdown-text);
	background-color: transparent;
}

.ct-nav--dropdown .ct-menu a:hover,
.ct-nav--dropdown .ct-menu a:focus,
.ct-nav--dropdown .ct-menu li.ct-open > a,
.ct-nav--dropdown .ct-menu li.current-menu-item > a {
	background-color: var(--ct-dark);
	color: #fff;
}

.ct-nav--dropdown .sub-menu {
	display: none;
}

.ct-nav--dropdown li.ct-open > .sub-menu {
	display: block;
}

.ct-nav--dropdown .sub-menu a {
	border-inline-start: 8px solid transparent;
	font-size: 0.85em;
}

/* Flèche des éléments qui ont un sous-menu */
.ct-sub-arrow {
	display: flex;
	align-items: center;
	margin-block: -10px;
	padding: 10px 0 10px 10px;
	font-size: 13px;
	line-height: 1;
}

.ct-sub-arrow .ct-icon {
	width: 0.625em;
}

/* Langues TranslatePress dans les menus (drapeau + nom) */
.ct-nav .trp-flag-image {
	display: inline-block;
	margin: -1px 5px;
	vertical-align: baseline;
}

/* ---------- Bouton « hamburger » */

.ct-burger__box {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.25em;
	border-radius: 3px;
	font-size: 22px;
	color: var(--ct-dropdown-text);
	background-color: rgba(0, 0, 0, 0.05);
}

.ct-burger .ct-icon--close,
.ct-burger[aria-expanded="true"] .ct-icon--menu-bar {
	display: none;
}

.ct-burger[aria-expanded="true"] .ct-icon--close {
	display: block;
}

/* ==========================================================================
   En-tête : version ordinateur (à partir de 1025 px)
   ========================================================================== */

.ct-header__desktop {
	border-bottom: 1px solid var(--ct-border);
}

.ct-col {
	display: flex;
	align-items: center;
	align-content: center;
	position: relative;
	min-height: 1px;
}

.ct-col--logo {
	width: 11.047%;
}

.ct-col--nav {
	width: 72.454%;
	padding: 10px;
}

.ct-col--search {
	width: 16.163%;
	padding: 10px;
	justify-content: flex-end;
}

.ct-logo {
	display: inline-flex;
	line-height: 0;
}

.ct-header .ct-logo img {
	display: block;
	width: 70px;
	max-width: 100%;
	height: 50px;
	object-fit: contain;
	object-position: center center;
}

.ct-col--nav .ct-nav--main {
	flex: 1 1 auto;
	margin: 4px;
}

.ct-header .ct-nav--main .ct-menu > li > a {
	padding: 13px 2px;
}

/* Elementor laisse 10 px de plus à droite des rubriques qui ont un sous-menu
   (emplacement de la flèche, vide sur ce site) : on garde le même espacement. */
.ct-header .ct-nav--main .ct-menu > li.menu-item-has-children > a {
	padding-inline-end: 12px;
}

.ct-header .ct-nav--main .ct-menu > li:not(:first-child) {
	margin-inline-start: 17.5px;
}

.ct-header .ct-nav--main .ct-menu > li:not(:last-child) {
	margin-inline-end: 17.5px;
}

/* Couleur de chaque rubrique (repris du CSS personnalisé du modèle Elementor).
   Les numéros sont ceux des éléments du menu « Menu navigation ». */
body .ct-header .ct-nav--main li.menu-item-5136 a { color: #fdad04; } /* Technologie */
body .ct-header .ct-nav--main li.menu-item-5161 a { color: #25ce95; } /* Écologie */
body .ct-header .ct-nav--main li.menu-item-5158 a { color: #3290f6; } /* Cours */
body .ct-header .ct-nav--main li.menu-item-5135 a { color: #f056ba; } /* Finances */
body .ct-header .ct-nav--main li.menu-item-6774 a { color: #7451eb; } /* Éducation */
body .ct-header .ct-nav--main li.menu-item-6773 a { color: #9acd32; } /* Pratique */

/* ---------- Recherche (style « minimal ») */

.ct-search--minimal {
	flex: 1 1 auto;
}

.ct-search--minimal:focus-within {
	outline: 2px solid;
}

.ct-search--minimal .ct-search__form {
	margin: 7px 0 7px 13px;
}

.ct-search__container {
	display: flex;
	overflow: hidden;
	border: 0 solid transparent;
	transition: 0.2s;
}

.ct-search--minimal .ct-search__container {
	min-height: 40px;
	border-radius: 3px;
	background-color: var(--ct-search-bg);
}

.ct-search--minimal .ct-search__icon {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-left: calc(40px / 3);
	font-size: 15px;
	color: var(--ct-text);
	opacity: 0.6;
}

.ct-search--minimal .ct-search__icon .ct-icon {
	width: 15px;
	height: 15px;
}

body .ct-search input[type="search"].ct-search__input {
	appearance: none;
	display: inline-block;
	flex-basis: 100%;
	width: 100%;
	min-width: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: none;
	font-family: var(--ct-font-text);
	font-weight: 400;
	font-size: 15px;
	line-height: 1;
	color: var(--ct-text);
	vertical-align: middle;
	white-space: normal;
	transition: color 0.2s;
}

body .ct-search--minimal input[type="search"].ct-search__input {
	padding: 0 calc(40px / 3);
}

body .ct-search input[type="search"].ct-search__input:focus {
	color: inherit;
	outline: 0;
	box-shadow: none;
}

.ct-search .ct-search__input::placeholder {
	color: inherit;
	font-family: inherit;
	opacity: 0.6;
}

/* ==========================================================================
   En-tête : version tablette et mobile (jusqu'à 1024 px)
   ========================================================================== */

.ct-header__mobile {
	display: none;
	position: relative;
}

.ct-mobile-bar {
	display: flex;
	align-items: center;
	padding: 3px 7px;
	border-bottom: 1px solid var(--ct-border);
}

.ct-mobile-bar .ct-logo {
	margin: auto;
}

/* Menu mobile en pleine largeur, sous l'en-tête */
.ct-nav--stretch {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 9997;
	margin-top: 2.5px;
}

/* ---------- Recherche plein écran */

.ct-search__toggle-box {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 33px;
	height: 33px;
	border-radius: 3px;
	font-size: 33px;
	color: var(--ct-dropdown-text);
	background-color: rgba(0, 0, 0, 0.05);
}

.ct-search__toggle-box .ct-icon {
	width: 0.55em;
	height: 0.55em;
}

.ct-search--fullscreen .ct-search__container {
	position: fixed;
	inset: 0;
	z-index: 9998;
	height: 100vh;
	align-items: center;
	padding: 0 15%;
	color: var(--ct-text);
	background-color: rgba(0, 0, 0, 0.8);
	opacity: 0;
	transform: scale(0);
	transition: 0.3s;
}

.ct-search--fullscreen .ct-search__container.is-open {
	opacity: 1;
	transform: none;
}

body .ct-search--fullscreen input[type="search"].ct-search__input {
	padding: 0;
	border-style: solid;
	border-color: #fff;
	border-width: 0 0 1px;
	border-radius: 3px;
	font-size: 50px;
	line-height: 1.5;
	text-align: center;
	color: var(--ct-text);
}

.ct-search--fullscreen .ct-search__close {
	position: absolute;
	inset-inline-end: 15px;
	margin-top: 15px;
	font-size: 15px;
}

.ct-search--fullscreen .ct-search__container:not(.is-open) .ct-search__close {
	display: none;
}

/* ==========================================================================
   Pied de page
   ========================================================================== */

.ct-footer {
	margin-top: 25px;
	border-top: 1px solid var(--ct-border);
}

.ct-footer__inner {
	flex-direction: column;
	padding: 10px;
}

.ct-footer__menu,
.ct-social {
	margin-bottom: 20px;
}

.ct-footer .ct-nav--main .ct-menu > li > a {
	padding: 13px 20px;
}

.ct-burger--footer,
.ct-nav--footer-dropdown {
	display: none;
}

body .ct-footer button.ct-burger--footer {
	width: max-content;
	margin: 0 auto;
}

.ct-nav--footer-dropdown .ct-menu a {
	justify-content: center;
	text-align: center;
}

/* Réseaux sociaux */
.ct-social {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 5px;
}

.ct-footer .ct-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 10%;
	font-size: 25px;
	line-height: 25px;
	background-color: #fff;
	color: var(--ct-text);
	text-decoration: none;
	transition: all 0.3s;
}

.ct-footer .ct-social__link:hover,
.ct-footer .ct-social__link:focus {
	color: var(--ct-text);
	opacity: 0.9;
}

.ct-footer .ct-social__link .ct-icon {
	fill: var(--ct-text);
}

/* Mention de copyright */
.ct-copyright p {
	margin: 0 0 0.9rem;
	text-align: center;
	font-family: var(--ct-font-text);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.5;
	color: var(--ct-text);
}

/* ==========================================================================
   Tablette et mobile (jusqu'à 1024 px)
   ========================================================================== */

@media (max-width: 1024px) {
	.ct-header__desktop {
		display: none;
	}

	.ct-header__mobile {
		display: block;
	}

	.ct-header .ct-logo img {
		height: 40px;
	}

	.ct-nav--footer {
		display: none;
	}

	.ct-burger--footer {
		display: flex;
	}

	.ct-nav--footer-dropdown {
		display: block;
	}
}
