<!doctype html>
<html lang="fr">
<head>
{% set base_url = app.request.schemeAndHttpHost %}
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="fr" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex, nofollow">
{% block head %}
{% endblock %}
<!--Favicon-->
<link rel="icon" type="image/png" href="{{ base_url }}/static/img/dashboard-free/favicon.webp" />
<!--CSS-->
<link rel="preload" href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap" as="style" />
<link rel="preload" href="https://fonts.googleapis.com/css2?family=Gloria+Hallelujah&display=swap" as="style" />
<link rel="preload" href="https://fonts.cdnfonts.com/css/muller-narrow" as="style" />
<link rel="preload" type="text/css" title="Style" href="{{ base_url }}/styles.css" as="style" />
<link rel="stylesheet" type="text/css" title="Style" href="{{ base_url }}/styles.css" />
<!--JS-->
<script src="{{ base_url }}/js/custom.js" type="text/javascript"></script>
<script src="https://unpkg.com/alpinejs" defer></script>
{% for file in encore_entry_css_files('free') %}
<link href="{{ absolute_url(asset(file)) }}" rel="stylesheet" />
{% endfor %}
{#{{ encore_entry_link_tags('free',null,'/') }}#}
</head>
<body class="font-poppins" x-data="{ open: false, mobileMenuOpen: false, dropdownOpen: false }" @keydown.escape.window="open = false">
<!-- Header -->
<header class="flex bg-white fixed w-full z-10 border-bleu border-b-[1px] px-4 py-4 justify-between flex-wrap items-center" x-data="{ mobileMenuOpen: false, dropdownOpen: false }">
<div class="flex flex-wrap items-center">
<a href="https://lesbonsprofs.com" target="_blank" aria-label="Les Bons Profs"><img src="{{ base_url }}/static/img/dashboard-free/les-bons-profs-logo.svg" alt="Les bons profs - Cours gratuits" class="w-48 md:w-56 lg:w-auto"/></a>
<div class="hidden lg:flex text-nowrap font-bold text-bleu text-[15px]"><img src="{{ base_url }}/static/img/dashboard-free/phone.svg" alt="télephone" class="pl-3 pr-1" /> 01 86 95 72 01</div>
</div>
<div class="flex">
<!-- Menu -->
<div x-data="{ mobileMenuOpen: false, dropdownOpen: false }" class="w-full md:w-auto">
<!-- Bouton Menu Mobile -->
<button @click="mobileMenuOpen = !mobileMenuOpen" class="md:hidden text-bleu">
<svg x-show="!mobileMenuOpen" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"/>
</svg>
<svg x-show="mobileMenuOpen" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"/>
</svg>
</button>
<!-- Navigation Links (partagé entre Desktop et Mobile) -->
<nav :class="{'hidden': !mobileMenuOpen, 'absolute left-0 right-0 bg-white z-50': mobileMenuOpen}"
class="md:block md:relative">
<ul class="md:flex md:items-center xl:gap-8">
<!-- Nos offres -->
<li>
<a href="{{ base_url_front~'/nos-offres' }}" class="block px-4 py-2 text-bleu hover:text-grenat font-bold transition-colors">Nos offres</a>
</li>
<!-- Dropdown Nos cours -->
<li class="relative">
<button @click="dropdownOpen = !dropdownOpen"
class="flex items-center w-full px-4 py-2 text-bleu hover:text-grenat font-bold transition-colors">
<span>Nos cours</span>
<svg class="w-4 h-4 ml-1 transition-transform" :class="{'rotate-180': dropdownOpen}" fill="currentColor" viewBox="0 0 20 20">
<path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"/>
</svg>
</button>
<!-- Sous-menu (même contenu pour Desktop et Mobile) -->
<div x-show="dropdownOpen"
@click.away="dropdownOpen = false"
x-transition:enter="transition ease-out duration-200"
x-transition:enter-start="opacity-0"
x-transition:enter-end="opacity-100"
x-transition:leave="transition ease-in duration-150"
x-transition:leave-start="opacity-100"
x-transition:leave-end="opacity-0"
class="md:absolute md:left-0 md:mt-2 md:w-48 bg-white md:border-2 md:rounded-lg md:shadow-lg z-50">
<div class="py-2 text-[14px]">
{% for al in allCourses %}
<a href="{{ base_url_front }}/nos-cours/{{ al.slug }}" class="block px-8 md:px-4 py-2 text-bleu hover:text-grenat transition-colors">{{ al.title|capitalize }}</a>
{% endfor %}
</div>
</div>
</li>
<!-- Blog -->
<li>
<a href="#" class="block px-4 py-2 text-bleu hover:text-grenat font-bold transition-colors">Blog</a>
</li>
<!-- Bouton Essayer gratuitement -->
<li class="px-4 md:px-0 py-2">
<a href="#" class="block bg-bleu hover:bg-grenat text-white md:text-[12px] lg:text-[16px] font-bold py-2 px-4 rounded-full text-center transition-colors">
Essayer gratuitement
</a>
</li>
</ul>
</nav>
</div>
</div>
</header>
{% block content %}
{% endblock %}
<footer class="bg-bleu bg-[url('{{ base_url }}/static/img/dashboard-free/logo-bleu-transparent.png')] bg-no-repeat bg-right-bottom bg-[size:250px] text-white py-12 px-4" x-data="{
openSection: null,
toggleSection(section) {
this.openSection = this.openSection === section ? null : section
}
}">
<div class="max-w-[1160px] mx-auto">
<!-- Logo -->
<a href="https://lesbonsprofs.com" target="_blank" aria-label="Les Bons Profs" class="block mb-8">
<img src="{{ base_url }}/static/img/dashboard-free/logo-blanc.svg" alt="Les bons profs - Cours gratuits" class="w-[285px]"/>
</a>
<!-- Navigation -->
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-8 text-[15px]">
<!-- Nos cours -->
<div>
<button
@click="toggleSection('cours')"
class="font-bold text-xl md:text-2xl mb-4 md:cursor-default inline-flex items-center gap-2"
>
<span>Nos cours</span>
<svg
class="w-4 h-4 transition-transform md:hidden"
:class="{'rotate-180': openSection === 'cours'}"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
>
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/>
</svg>
</button>
<ul
class="space-y-2 overflow-hidden transition-all duration-300 md:block"
:class="{'hidden': openSection !== 'cours'}"
>
{% for al in allCourses %}
<li><a href="{{ base_url_front~'/nos-cours/'~al.slug }}" class="hover:text-peche transition-colors">{{ al.title }}</a></li>
{% endfor %}
</ul>
</div>
<!-- Nos pages -->
<div class="sm:col-start-1 md:col-start-2 sm:-mt-16 md:mt-0">
<button
@click="toggleSection('pages')"
class="font-bold text-xl md:text-2xl mb-4 md:cursor-default inline-flex items-center gap-2"
>
<span>Nos pages</span>
<svg
class="w-4 h-4 transition-transform md:hidden"
:class="{'rotate-180': openSection === 'pages'}"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
>
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/>
</svg>
</button>
<ul
class="space-y-2 overflow-hidden transition-all duration-300 md:block"
:class="{'hidden': openSection !== 'pages'}"
>
<li><a href="{{ base_url_front }}" class="hover:text-peche transition-colors">Les Bons Profs</a></li>
<li><a href="{{ base_url_front }}/nos-offres" class="hover:text-peche transition-colors">Nos offres</a></li>
<li><a href="{{ base_url_front }}/blog" class="hover:text-peche transition-colors">Blog</a></li>
<li><a href="#" class="hover:text-peche transition-colors">Notre manifeste</a></li>
<li><a href="#" class="hover:text-peche transition-colors">Conditions générales d'utilisation</a></li>
<li><a href="#" class="hover:text-peche transition-colors">Mentions légales</a></li>
</ul>
</div>
<!-- Réseaux sociaux et Contact -->
<div class="grid sm:col-start-2 sm:row-start-1 md:col-start-3">
<span class="hidden md:block font-bold text-xl md:text-2xl md:-mb-8">Nous suivre</span>
<div class="flex space-x-4">
<a href="https://www.facebook.com/lesbonsprofs" target="_blank" class="hover:opacity-75 transition-opacity">
<img src="{{ base_url }}/static/img/dashboard-free/facebook.svg" alt="Facebook" class="w-8 h-8">
</a>
<a href="https://www.instagram.com/lesbonsprofs/" target="_blank" class="hover:opacity-75 transition-opacity">
<img src="{{ base_url }}/static/img/dashboard-free/instagram.svg" alt="Instagram" class="w-8 h-8">
</a>
<a href="https://fr.linkedin.com/company/lesbonsprofs" target="_blank" class="hover:opacity-75 transition-opacity">
<img src="{{ base_url }}/static/img/dashboard-free/linkedin.svg" alt="Linkedin" class="w-8 h-8">
</a>
</div>
<span class="font-bold text-xl md:text-2xl row-start-1 md:row-start-3 mb-8 md:mb-0">Contactez-nous</span>
</div>
</div>
</div>
</footer>
{% for file in encore_entry_js_files('free') %}
<script src="{{ absolute_url(asset(file)) }}" ></script>
{% endfor %}
</body>
</html>