/*
Theme Name: Gogrin Child — Conseiller en Voyage
Theme URI: https://conseillerenvoyage.com/
Description: Thème enfant de Gogrin pour la refonte de conseillerenvoyage.com (direction B, octobre 2026) : en-tête, pied de page, page d'article, habillage Tutor LMS.
Author: Conseiller en Voyage
Template: gogrin
Version: 1.3.4
Requires PHP: 7.4
Text Domain: gogrin-child
*/

/* ==========================================================
   1. Jetons
   ========================================================== */
:root {
	--cev-navy-900: #0F1F44;
	--cev-navy: #15306E;
	--cev-teal: #0B7684;
	--cev-text: #1A2233;
	--cev-text-2: #46526A;
	--cev-muted: #556070;
	--cev-soft: #F4F7FB;
	--cev-border: #E6EAF2;
	--cev-peach: #FCE7DB;
	--cev-footer: #0A1633;
	--cev-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--cev-serif: 'Source Serif 4', Georgia, serif;
	--cev-max: 1240px;

	/* Tutor LMS lit ces variables : couleurs de marque sur les fiches et le tableau de bord */
	--tutor-color-primary: #15306E;
	--tutor-color-primary-rgb: 21, 48, 110;
	--tutor-color-primary-hover: #0F1F44;
	--tutor-color-primary-hover-rgb: 15, 31, 68;
	--tutor-body-color: #1A2233;
	--tutor-border-color: #E6EAF2;
}

/* ==========================================================
   2. Base
   ========================================================== */
body.cev-v2 {
	font-family: var(--cev-font);
	color: var(--cev-text);
	background: #fff;
}
body.cev-v2 h1, body.cev-v2 h2, body.cev-v2 h3, body.cev-v2 h4, body.cev-v2 h5, body.cev-v2 h6 {
	font-family: var(--cev-font);
	text-transform: none;
	letter-spacing: normal;
}
.cev-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.cev-skip {
	position: absolute; left: -9999px; top: 8px; z-index: 10000;
	background: var(--cev-navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.cev-skip:focus { left: 8px; color: #fff; }

.cev-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 11px 18px; border-radius: 10px;
	font-family: var(--cev-font); font-weight: 700; font-size: 15px; line-height: 1.2;
	text-decoration: none; transition: background-color .15s ease;
}
.cev-btn--primary { background: var(--cev-navy); color: #fff; border: 1px solid var(--cev-navy); }
.cev-btn--primary:hover, .cev-btn--primary:focus { background: var(--cev-navy-900); color: #fff; }
.cev-btn--outline { background: #fff; color: var(--cev-navy); border: 1px solid #CBD3E1; }
.cev-btn--outline:hover, .cev-btn--outline:focus { border-color: var(--cev-navy); color: var(--cev-navy); }

/* ==========================================================
   3. En-tête
   ========================================================== */
.cev-header { background: #fff; border-bottom: 1px solid var(--cev-border); position: relative; z-index: 50; }
.cev-header__inner {
	max-width: var(--cev-max); margin: 0 auto; padding: 8px 24px;
	display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
}
.cev-header__logo img { height: 85px; width: auto; display: block; }
@media (max-width: 760px) {
	.cev-header__logo img { height: 62px; }
	.cev-header__account .cev-btn { padding: 8px 12px; font-size: 14px; min-height: 44px; }
}
.cev-header__search {
	flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 10px;
	background: var(--cev-soft); border: 1px solid var(--cev-border); border-radius: 12px; padding: 0 14px; margin: 0;
}
.cev-header__search input[type="search"] {
	flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none;
	font: inherit; font-size: 15px; padding: 12px 0; height: auto; color: var(--cev-text);
}
.cev-header__search input[type="search"]:focus { outline: none; }
.cev-header__search:focus-within { border-color: var(--cev-teal); }
.cev-header__nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-weight: 600; font-size: 15px; }
.cev-header__nav a { color: var(--cev-text); text-decoration: none; padding: 10px 0; }
.cev-header__nav a:hover, .cev-header__nav a.is-current { color: var(--cev-teal); }
.cev-header__account { display: flex; gap: 10px; align-items: center; }

@media (max-width: 760px) {
	.cev-header__inner { gap: 12px; }
	.cev-header__search { order: 3; flex-basis: 100%; }
	.cev-header__nav { order: 4; flex-basis: 100%; gap: 4px 18px; }
	.cev-header__account { margin-left: auto; }
	.cev-header__account .cev-btn--outline { display: none; }
}

/* ==========================================================
   4. Pied de page
   ========================================================== */
.cev-footer { background: var(--cev-footer); color: #B9C3D8; font-family: var(--cev-font); }
.cev-footer__inner {
	max-width: var(--cev-max); margin: 0 auto; padding: 48px 24px 24px;
	display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between;
}
.cev-footer__brand { flex: 1 1 280px; min-width: 0; }
.cev-footer__brand img { height: 52px; width: auto; display: block; margin-bottom: 12px; }
.cev-footer__brand p { margin: 0; font-size: 15px; color: #B9C3D8; }
.cev-footer__col { flex: 0 1 220px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.cev-footer__title { font-weight: 800; color: #fff; }
.cev-footer a { color: #B9C3D8; text-decoration: none; }
.cev-footer a:hover { color: #fff; }
.cev-footer__legal {
	max-width: var(--cev-max); margin: 0 auto; padding: 16px 24px 24px;
	border-top: 1px solid #22305A; font-size: 14px; color: #8D99B5;
}

/* ==========================================================
   5. Page d'un article (single.php)
   ========================================================== */
.cev-article { padding: 32px 0 0; }
.cev-article__head, .cev-article__body, .cev-article__cta, .cev-article__comments {
	max-width: 760px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px;
}
.cev-crumbs { font-size: 14px; color: var(--cev-muted); margin-bottom: 24px; }
.cev-crumbs a { color: var(--cev-muted); }
.cev-article__meta { margin: 0 0 10px; color: var(--cev-teal); font-weight: 700; font-size: 14px; }
.cev-article__title { margin: 0 0 18px; font-size: 34px; line-height: 1.2; font-weight: 700; color: var(--cev-navy-900); }
.cev-article__lead { margin: 0 0 28px; font-size: 18px; color: var(--cev-text-2); }
.cev-article__image { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.cev-article__image img { width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: 20px; display: block; }
.cev-article__body {
	max-width: 728px; padding-top: 40px;
	font-family: var(--cev-serif); font-size: 19px; line-height: 1.75; color: #24304A;
}
.cev-article__body p, .cev-article__body ul, .cev-article__body ol { margin: 0 0 22px; }
.cev-article__body h2, .cev-article__body h3 { font-family: var(--cev-font); color: var(--cev-navy-900); line-height: 1.3; }
.cev-article__body h2 { font-size: 24px; font-weight: 800; margin: 40px 0 14px; }
.cev-article__body h3 { font-size: 20px; font-weight: 800; margin: 32px 0 12px; }
.cev-article__body a { color: var(--cev-navy); text-decoration: underline; text-underline-offset: 3px; }
.cev-article__body blockquote {
	margin: 32px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--cev-teal);
	font-size: 22px; line-height: 1.5; color: var(--cev-navy-900); font-weight: 600; font-style: normal; background: none;
}
.cev-article__body img { max-width: 100%; height: auto; border-radius: 12px; }
.cev-article__body table { width: 100%; border-collapse: collapse; font-family: var(--cev-font); font-size: 16px; margin: 0 0 24px; }
.cev-article__body th, .cev-article__body td { border-bottom: 1px solid var(--cev-border); padding: 10px 12px; text-align: left; }
.cev-article__cta {
	margin-top: 16px; margin-bottom: 64px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.cev-article__cta > div { flex: 1 1 280px; background: none; }
.cev-article__cta { background: var(--cev-soft); border-radius: 22px; padding-top: 28px; padding-bottom: 28px; max-width: 712px; }
.cev-article__cta-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--cev-teal); }
.cev-article__cta-title { margin: 0; font-weight: 800; font-size: 18px; color: var(--cev-navy-900); line-height: 1.35; }

.cev-related { background: var(--cev-soft); }
.cev-related__inner { max-width: var(--cev-max); margin: 0 auto; padding: 56px 24px 64px; }
.cev-related h2 { margin: 0 0 22px; font-size: 24px; font-weight: 700; color: var(--cev-navy-900); }
.cev-related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 22px; }
.cev-card {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--cev-border);
	border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit;
}
.cev-card__img { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; display: block; }
.cev-card__title { padding: 16px 20px 22px; font-weight: 800; color: var(--cev-navy-900); line-height: 1.35; }

/* ==========================================================
   6. Tutor LMS : fiche de formation et tableau de bord
   ========================================================== */
body.cev-v2 .tutor-wrap, body.cev-v2 .tutor-dashboard { font-family: var(--cev-font); }
body.cev-v2 .tutor-course-details-title { color: var(--cev-navy-900); font-weight: 700; }
body.cev-v2 .tutor-btn { border-radius: 10px; font-weight: 700; }
body.cev-v2 .tutor-card, body.cev-v2 .tutor-sidebar-card { border-color: var(--cev-border); border-radius: 18px; }
body.cev-v2 .tutor-sidebar-card { box-shadow: 0 20px 50px rgba(15, 31, 68, .10); overflow: hidden; }
body.cev-v2 .tutor-course-details-tab .tutor-nav-link.is-active { color: var(--cev-navy); border-color: var(--cev-navy); }
body.cev-v2 .tutor-accordion-item { border-color: var(--cev-border); }
body.cev-v2 .tutor-accordion-item-header.is-active, body.cev-v2 .tutor-accordion-item-header:hover { color: var(--cev-navy); }
body.cev-v2.single-courses .tutor-wrap { padding-top: 32px; }

/* ==========================================================
   7. Règles reprises du CSS additionnel de l'ancien thème actif
   (le CSS du personnalisateur est enregistré par thème : il ne suit pas
   le thème enfant, on le recopie donc ici)
   ========================================================== */
.entry-title, .post-title, h1.title, h2.title { text-transform: none; }
.breadcrumb-wrap, .breadcrumb-wrap span, .breadcrumb-wrap a,
.breadcrumb-area, .breadcrumb-area span, .breadcrumb-area a,
.page-header .breadcrumb, .page-header .breadcrumb span, .page-header .breadcrumb a,
#breadcrumbs, #breadcrumbs span, #breadcrumbs a { text-transform: none !important; }
.brpt, .brptsize, .brpt span, .brpt a, .brptsize span, .brptsize a, span.current { text-transform: none !important; }
.logo_area_bg { background-color: #ffffff !important; }
@media (max-width: 991px) {
	.mobile_logo_area img, .logo img { max-height: 80px !important; width: auto !important; height: auto !important; }
}
.btn-details {
	display: block; width: 100%; text-align: center; background: #2563eb; color: white;
	padding: 16px 20px; border-radius: 8px; font-weight: 600; text-decoration: none;
	margin-top: 10px; transition: all 0.3s ease; font-size: 1.02rem;
}
.btn-details:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3); }
.h1-seo { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tutor-course-thumbnail .tutor-ratio-16x9 { padding-top: 66.667%; }

/* ==========================================================
   8. Listes d'articles (blogue, catégories), recherche, 404, pages simples
   ========================================================== */
.cev-band { background: var(--cev-soft); }
.cev-band__inner { max-width: var(--cev-max); margin: 0 auto; padding: 28px 24px 44px; }
.cev-band h1 { margin: 0 0 12px; font-size: 34px; line-height: 1.2; font-weight: 700; color: var(--cev-navy-900); }
.cev-band p { margin: 0; font-size: 17px; color: var(--cev-text-2); max-width: 40em; }
.cev-wrap { max-width: var(--cev-max); margin: 0 auto; padding: 48px 24px 80px; }
.cev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.cev-card__kicker { padding: 16px 20px 0; font-size: 13px; font-weight: 700; color: var(--cev-teal); }
.cev-card__kicker + .cev-card__title { padding-top: 6px; }
.cev-card__excerpt { padding: 0 20px 22px; margin-top: -10px; color: var(--cev-text-2); font-size: 15px; line-height: 1.5; }
.cev-pagination { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px; }
.cev-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--cev-border); border-radius: 10px; color: var(--cev-navy); text-decoration: none; font-weight: 700; }
.cev-pagination .page-numbers.current { background: var(--cev-navy); color: #fff; border-color: var(--cev-navy); }
.cev-empty { padding: 32px; border: 1px solid var(--cev-border); border-radius: 18px; color: var(--cev-text-2); }
.cev-empty p { margin: 0 0 16px; }
.cev-page { max-width: var(--cev-max); margin: 0 auto; padding: 40px 24px 80px; }
.cev-page__title { margin: 0 0 24px; font-size: 34px; line-height: 1.2; font-weight: 700; color: var(--cev-navy-900); }
.cev-404 { max-width: 640px; margin: 0 auto; padding: 96px 24px; text-align: center; }
.cev-404 h1 { margin: 0 0 12px; font-size: 34px; color: var(--cev-navy-900); }
.cev-404 p { margin: 0 0 24px; color: var(--cev-text-2); font-size: 17px; }
.cev-404 .cev-btn { margin: 4px; }

/* ==========================================================
   9. Fiche de formation : parcours et suggestions (ajoutés par crochets Tutor)
   ========================================================== */
.cev-course-box { margin-top: 20px; border-radius: 18px; padding: 22px; background: var(--cev-soft); font-family: var(--cev-font); }
.cev-course-box--line { background: #fff; border: 1px solid var(--cev-border); }
.cev-course-box__title { margin: 0 0 14px; font-weight: 800; color: var(--cev-navy-900); font-size: 16px; }
.cev-course-box p { margin: 0 0 12px; color: var(--cev-text-2); font-size: 15px; }
.cev-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.cev-steps li { display: flex; gap: 10px; align-items: center; }
.cev-steps__n { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--cev-teal); color: var(--cev-teal); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; background: #fff; }
.cev-steps li.is-current .cev-steps__n { background: var(--cev-teal); color: #fff; }
.cev-steps a { color: var(--cev-text); text-decoration: none; font-weight: 600; }
.cev-steps a:hover { color: var(--cev-teal); }
.cev-steps li.is-current span.cev-steps__label { color: var(--cev-navy-900); font-weight: 800; }
.cev-course-box__link { font-weight: 700; color: var(--cev-navy); text-decoration: none; }
.cev-suggest { background: var(--cev-soft); margin-top: 48px; }
.cev-suggest__inner { max-width: var(--cev-max); margin: 0 auto; padding: 56px 24px 64px; font-family: var(--cev-font); }
.cev-suggest h2 { margin: 0 0 22px; font-size: 26px; font-weight: 700; color: var(--cev-navy-900); }

/* ==========================================================
   10. Finitions (v1.2)
   ========================================================== */
body.cev-v2 .tutor-course-details-widget-title { text-transform: none !important; letter-spacing: normal; color: var(--cev-navy-900); font-size: 20px; }
body.cev-v2 #scrollUp {
	background: var(--cev-navy) !important; color: #fff !important; border-radius: 12px !important;
	box-shadow: 0 8px 20px rgba(15, 31, 68, .18);
}
body.cev-v2 #scrollUp:hover, body.cev-v2 #scrollUp:focus { background: var(--cev-navy-900) !important; }

.cev-short { display: none; }
@media (max-width: 760px) {
	.cev-long { display: none; }
	.cev-short { display: inline; }
}

/* ==========================================================
   11. Tableau de bord Tutor : logo dans la colonne de gauche
   (sans logo personnalisé, Tutor affichait le nom du site, coupé)
   ========================================================== */
.tutor-dashboard-sidebar-logo{background:url(../../uploads/2026/05/logo-course2.png) no-repeat 40px center/auto 54px;min-height:80px}
html[data-tutor-theme="dark"] .tutor-dashboard-sidebar-logo{background-image:url(../../uploads/2026/05/logo-course3.png)}
.tutor-dashboard-sidebar-logo .site-title{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
