{% extends 'dashboard_free/layout.html.twig' %}
{% block head %}
<meta name="description" content="{{ video.metaDescription }}" />
<title>{{ find.title }} - Les Bons Profs</title>
<link rel="canonical" href="{{ base_url_front }}{{ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) }}" />
<!--Tags Facebook-->
<meta property="og:url" content="{{ base_url_front }}{{ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) }}" />
<meta property="og:type" content="website" />
<meta property="og:title" content="{{ find.title }} - Les Bons Profs" />
<meta property="og:description" content="{{ video.metaDescription }}" />
<meta property="og:image" content="{{ base_url_front }}/static/img/dashboard-free/eleve-cours-gratuit.webp" />
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "VideoObject",
"name": "{{ course.title|capitalize }}",
"description": "{% if find.metadescription is not null %}{{ find.metadescription }}{% else %}Cours de {% if find %}{{ find.notion.library.discipline.title }}{% endif %} pour {{ course.title }} : vidéos pédagogiques, exercices corrigés et méthodologie. Par Les Bons Profs.{% endif %}",
"thumbnailUrl": "https://img.youtube.com/vi/{{ video.videoId }}/maxresdefault.jpg",
"uploadDate": "2025-06-16",
"duration": "{{ video.durationYoutube }}",
"contentUrl": "https://www.youtube.com/embed/{{ video.videoId }}",
"embedUrl": "https://www.youtube.com/embed/{{ video.videoId }}",
"publisher": {
"@type": "Organization",
"name": "Les Bons Profs",
"logo": {
"@type": "ImageObject",
"url": "https://lesbonsprofs.com/static/img/dashboard-free/les-bons-profs-logo.svg"
}
},
"teachingMode": "online",
"educationalLevel": "{{ course.title|capitalize }}",
"inLanguage": "fr",
"learningResourceType": "VideoLesson",
"isAccessibleForFree": true,
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "EUR",
"availability": "https://schema.org/InStock"
}
}
</script>
{% endblock %}
{% block content %}
<!-- Popup -->
<div x-cloak>
<!-- Fond noir transparent flouté -->
<div x-show="open"
x-transition:enter="transition ease-out duration-300"
x-transition:enter-start="opacity-0"
x-transition:enter-end="opacity-100"
x-transition:leave="transition ease-in duration-200"
x-transition:leave-start="opacity-100"
x-transition:leave-end="opacity-0"
class="fixed inset-0 bg-black/50 backdrop-blur-sm z-40"
@click="open = false">
<!-- Contenu du popup -->
<div class="fixed inset-0 z-50 flex items-center justify-center">
<div class="flex flex-col items-center bg-white border-8 border-miel rounded-lg p-4 sm:p-6 max-w-lg mx-4" @click.stop>
<!-- Contenu à personnaliser -->
<p class="text-2xl text-bleu font-bold text-center mb-4">Tous nos cours en ligne en accès gratuit</p>
<img src="{{ base_url }}/static/img/dashboard-free/hibou-popup1.webp" alt="Tous nos cours en ligne en accès gratuit" class="w-40 z-10">
<div class="flex justify-between bg-miel text-bleu font-bold rounded-lg columns-2 w-full sm:w-[90%] p-4 sm:p-5 -mt-[14px]">
<ul>
<li class="flex items-baseline"><img src="{{ base_url }}/static/img/dashboard-free/coche-grenat.webp" alt="Vidéos" class="w-4 sm:w-5 mr-1">Vidéos</li>
<li class="flex items-baseline"><img src="{{ base_url }}/static/img/dashboard-free/coche-grenat.webp" alt="Fiches" class="w-4 sm:w-5 mr-1">Fiches</li>
<li class="flex items-baseline"><img src="{{ base_url }}/static/img/dashboard-free/coche-grenat.webp" alt="QCM" class="w-4 sm:w-5 mr-1">QCM</li>
</ul>
<ul>
<li class="flex items-baseline"><img src="{{ base_url }}/static/img/dashboard-free/coche-grenat.webp" alt="Exercices corrigés" class="w-4 sm:w-5 mr-1">Exercices corrigés</li>
<li class="flex items-baseline"><img src="{{ base_url }}/static/img/dashboard-free/coche-grenat.webp" alt="Méthodologie" class="w-4 sm:w-5 mr-1">Méthodologie</li>
<li class="flex items-baseline"><img src="{{ base_url }}/static/img/dashboard-free/coche-grenat.webp" alt="Compte parent" class="w-4 sm:w-5 mr-1">Compte parent</li>
</ul>
</div>
<p class="text-lg sm:text-2xl text-bleu text-center font-bold mt-4">
Inscrivez-vous gratuitement
</p>
<p class="text-lg sm:text-xl text-center">
pour accéder à tous nos cours en ligne
</p>
<p class="flex text-lg sm:text-xl text-bleu font-bold">
pendant 7 jours <img src="{{ base_url }}/static/img/dashboard-free/emphase-miel-dr.webp" alt="Inscrivez-vous gratuitement" class="w-[24px] mt-[12px]">
</p>
<a href="{{ base_url_front }}/nos-offres/" class="bg-miel hover:bg-grenat text-bleu hover:text-white text-lg sm:text-xl font-bold py-2 px-4 rounded-full transition-colors mt-4">
Obtenir mon accès gratuit
</a>
<p class="text-base sm:text-xl mt-4">Déjà un compte ?
<a href="{{ url("app_login") }}" class="text-bleu hover:text-grenat">Je me connecte</a>
</p>
</div>
</div>
</div>
</div>
<!-- Fil d'arianne -->
<div class="flex justify-center px-5 pt-[80px] md:pt-[100px]">
<div class="text-[14px] w-[1160px]">
<a href="https://www.lesbonsprofs.com/" class="text-bleu"><span class="text-[21px]">⌂</span> Accueil</a> » <a href="" class="text-bleu">Terminale</a> » <a href="" class="text-bleu">Philosophie</a> » Vidéo Le bonheur
</div>
</div>
<!-- Bloc Contenu -->
<section class="flex justify-center px-5 pt-[120px]">
<div class="flex flex-col md:flex-row w-[1160px] relative">
<!-- Menu gauche -->
<aside id="menu-gauche" class="w-full md:w-[275px] absolute bg-rose md:bg-inherit mb-5 md:mb-0">
{% include 'dashboard_free/menu-gauche.html.twig' %}
<div class="hidden md:flex flex-col justify-center text-center text-sm items-center border-2 border-miel rounded-lg gap-4 my-5 py-5">
<img src="{{ base_url }}/static/img/dashboard-free/hibou-bons-profs.webp" alt="Les bons profs - Cours gratuits" class="w-20" />
<p>
Envie de tester gratuitement nos vidéos de cours enrichies de jeux interactifs ?
</p>
<a href="#" class="block bg-grenat hover:bg-bleu text-white py-2 px-4 rounded-full text-center transition-colors">
J'essaie gratuitement
</a>
<p>Déjà un compte ? <a href="" class="text-bleu hover:text-grenat">Je me connecte</a> </p>
</div>
</aside>
<!-- Partie droite -->
<section class="md:ml-[300px] md:w-[calc(100%-275px)]">
<div class="mb-4">
<!-- En-têtes des onglets -->
<div class="flex gap-1">
<button class="md:px-4 py-2 text-[3vw] sm:text-[2.5vw] md:text-sm font-bold text-white bg-lavande rounded-t-lg w-full" data-tab="video">
Vidéo
</button>
<button @click.prevent="open = true" class="md:px-4 py-2 text-[3vw] sm:text-[2.5vw] md:text-sm font-bold text-lavande bg-lavandePastel hover:text-bleu rounded-t-lg w-full" data-tab="fiche">
Fiche
</button>
<button @click.prevent="open = true" class="md:px-4 py-2 text-[3vw] sm:text-[2.5vw] md:text-sm font-bold text-lavande bg-lavandePastel hover:text-bleu rounded-t-lg w-full" data-tab="qcm">
QCM
</button>
<button @click.prevent="open = true" class="md:px-4 py-2 text-[3vw] sm:text-[2.5vw] md:text-sm font-bold text-lavande bg-lavandePastel hover:text-bleu rounded-t-lg w-full" data-tab="exercice">
Exercice
</button>
<button @click.prevent="open = true" class="md:px-4 py-2 text-[3vw] sm:text-[2.5vw] md:text-sm font-bold text-lavande bg-lavandePastel hover:text-bleu rounded-t-lg w-full" data-tab="annale">
Annale Bac
</button>
<button @click.prevent="open = true" class="md:px-4 py-2 text-[3vw] sm:text-[2.5vw] md:text-sm font-bold text-lavande bg-lavandePastel hover:text-bleu rounded-t-lg w-full" data-tab="carte">
Carte mentale
</button>
</div>
<!-- Contenu des onglets -->
<div class="pt-4 md:p-4">
<div id="video" class="tab-panel text-justify">
<h1 class="font-bold capitalize text-2xl my-3">{{ video.title }}</h1>
{#<video controls class="w-full"></video>#}
<iframe class="w-full mb-4" height="442"
src="https://www.youtube.com/embed/{{ video.videoId }}?controls=0">
</iframe>
{#<h2 class="font-bold text-xl my-3">Sous-titre</h2>#}
<iframe class="w-full mb-4" id="description-video-iframe"
style="min-height: 200px" scrolling="no"
src="{{ url('app_front_dashboard_descripyion_video',{'videoSlug':video.slug}) }}"></iframe>
</div>
</div>
<div class="flex md:hidden justify-center">
<div class="flex flex-col justify-center text-center text-sm items-center border-2 border-miel rounded-lg gap-4 my-5 py-5 w-[275px]">
<img src="/static/img/dashboard-free/hibou-bons-profs.webp" alt="Les bons profs - Cours gratuits" class="w-20" />
<p>
Envie de tester gratuitement nos vidéos de cours enrichies de jeux interactifs ?
</p>
<a href="#" class="block bg-grenat hover:bg-bleu text-white py-2 px-4 rounded-full text-center transition-colors">
J'essaie gratuitement
</a>
<p>Déjà un compte ? <a href="" class="text-bleu hover:text-grenat">Je me connecte</a> </p>
</div>
</div>
</section>
</div>
</section>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML-full"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX", "output/HTML-CSS"],
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
processEscapes: true
},
"HTML-CSS": { fonts: ["TeX"] }
});
</script>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() {
// Fonction pour recevoir la hauteur depuis l'iframe
window.addEventListener('message', function(e) {
const iframe = document.getElementById('description-video-iframe');
if (iframe && e.data.type === 'setHeight') {
iframe.style.height = e.data.height + 'px';
}
});
});
</script>
{% endblock %}