
/* ------------------- */
/* VARIABLES GLOBALES  */
/* ------------------- */

:root {
    --color-bordeaux: #8B1538;
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
	--color-gray-100: #f8f9fa;
	--color-gray-150: #e9ecef; 
	--color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    --shadow-sm: 0 2px 5px 0 rgb(0 0 0 / 0.2);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
	scroll-padding-top: 80px;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--color-white);
    color: var(--color-gray-800);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.link-bordeaux {
    color: var(--color-bordeaux);
    font-weight: 500;
    text-decoration: underline;
}

.link-bordeaux:hover {
    text-decoration: none;
}

/* -------------- */
/* BARRE DE TITRE */
/* -------------- */

.site-header {
    background-color: rgb(255 255 255 / 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
	width: 100%;
}

/* ------------------- */
/* BARRE DE NAVIGATION */
/* ------------------- */

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.home-title {
    font-size: 1.25rem;
	text-decoration: none;
    font-weight: 700;
    color: var(--color-gray-900);
	margin-right: 1.5rem;
}

.nav-links {
    display: none;
    gap: 1.5rem;
}

.nav-link {
    color: var(--color-gray-600);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-bordeaux);
}

/* -------------------------- */
/* BARRE DE NAVIGATION MOBILE */
/* ---------------------------*/

.mobile-menu-button-wrapper {
    display: block; 
}

.mobile-menu-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--color-gray-600);
}

.mobile-menu-button:hover {
    color: var(--color-bordeaux);
}

.icon-menu {
    width: 1.5rem;
    height: 1.5rem;
}

/* ------------------- */
/* SECTIONS & TITLES   */
/* ------------------- */

.page-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.page-section-gray {
    background-color: var(--color-gray-50);
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.subsection-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gray-900);
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-gray-800);
}

.section-paragraphs {
    text-align: justify;
    hyphens: auto;
}

.single-paragraph {
	text-align: justify;
    hyphens: auto;
	padding-bottom: 2rem;
}

/* -------------------- */
/* SECTION PRESENTATION */
/* -------------------- */

.presentation-logo {
    display: block;
    margin: 0 auto 3rem auto; 
    max-width: 300px;         
    height: auto;             
}

/* ------------- */
/* SECTION COURS */
/* ------------- */

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
	margin-bottom: 4rem;
	
}

.course-card {
    background-color: var(--color-white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    transition: transform 0.3s ease;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
	display: flex;
    flex-direction: column;
}

.course-card.is-cancelled {
    position: relative;
    overflow: hidden;
}

.course-card.is-cancelled > *:not(.cancelled-banner) {
    opacity: 0.4;
}

.cancelled-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
    background-color: var(--color-bordeaux);
    color: var(--color-white);
    padding: 0.5rem 4rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 10px rgb(0 0 0 / 0.2);
    white-space: nowrap;
	z-index: 10;
}

.course-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
	align-self: flex-start;
	background-color: rgb(139 21 56 / 0.1);
    color: var(--color-bordeaux);
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin: 0 0 0.5rem 0;
}

.course-teacher {
    color: var(--color-gray-600);
    margin-bottom: 1rem;
}

.course-details {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 1.5rem;
    row-gap: 0.25rem; 
    font-size: 0.875rem;
    color: var(--color-gray-500);
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
	margin-top: auto;
}

.course-details span {
    white-space: nowrap;
}

.rules-content {
    margin-left: auto;
    margin-right: auto;
    color: var(--color-gray-600);
	text-align: justify;
	hyphens: auto;
}

.rules-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.rules-content ul {
    list-style-position: outside;
    padding-left: 1.5rem;
}

.rules-content li {
    margin-bottom: 0.75rem;
}

.rules-content ul ul {
    margin-top: 0.75rem;
}

.section-content-centered {
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 3rem;
}

/* -------------------- */
/* SECTION INSTITUTIONS */
/* -------------------- */

.institution-group {
    text-align: center;
    margin-bottom: 4rem; /* Espace entre les deux groupes (universités et écoles) */
}

.institution-group:last-child {
    margin-bottom: 0; /* Pas de marge en bas pour le dernier groupe */
}

.logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap; 
}

.institution-logo {
    max-height: 200px;
    width: auto;      
    max-width: 300px; 
}

/* --------------------------- */
/* SECTION DIRECTION / CONTACT */
/* --------------------------- */

.tabs-container {
    display: flex;
	flex-direction: column;
    align-items: center;
	margin-bottom: 3rem;
}

.tab-button {
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
	width: clamp(300px, 40%, 100%);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gray-300);
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.tab-button:hover {
    color: var(--color-bordeaux);
}

.tab-button.active {
    color: var(--color-bordeaux);
    border-bottom-color: var(--color-bordeaux);
	font-weight: 900;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.directors-grid {
    display: flex;
    justify-content: center; 
    flex-wrap: wrap;
    gap: 10rem;
    text-align: center;
}

.director-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 280px;
}

.director-photo {
    width: 14rem;
    height: 14rem;
    border-radius: 40%;
    object-fit: cover;
    margin-bottom: 0rem;
    box-shadow: var(--shadow-md);
}

.director-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gray-900);
}

.director-info {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    line-height: 1.5;
}

.director-info p, .director-info a {
    margin: 0.25rem 0;
}

.director-details {
    font-weight: 500;
}

.director-contact {
    color: var(--color-bordeaux);
    text-decoration: none;
}

.director-contact:hover {
    text-decoration: underline;
}

.contact-intro {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 3rem auto;
    font-size: 1.125rem;
    color: var(--color-gray-600);
}


/* ------------------- */
/* FOOTER              */
/* ------------------- */

.site-footer {
    background-color: var(--color-gray-900);
    color: var(--color-white);
}

.footer-content {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-text {
    color: var(--color-gray-400);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.25rem;
}
.footer-link {
    color: var(--color-gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-link:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid var(--color-gray-700);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    color: var(--color-gray-500);
    font-size: 0.875rem;
}


/* ------------------- */
/* FAQ PAGE            */
/* ------------------- */

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-card {
    background-color: var(--color-white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    transition: transform 0.3s ease;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
	display: flex;
    flex-direction: column;
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 0.75rem;
}

.faq-answer {
    color: var(--color-gray-600);
    line-height: 1.6;
	text-align: justify;
    hyphens: auto;
}

.faq-links {
    margin-top: 0.5rem;
	margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
	justify-content: center;
}

.faq-link {
    display: inline-block;
    background-color: var(--color-gray-100);
	border: 2px solid var(--color-gray-150);
    color: var(--color-bordeaux);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem;
	text-align: center;
    border-radius: 9999px;
    transition: background-color 0.2s ease;
}

.faq-link:hover {
    background-color: var(--color-gray-150);
}


/* ------------------- */
/* RESPONSIVE STYLES   */
/* ------------------- */

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    align-items: center;
    gap: 1rem;
}


@media (min-width: 768px) {
    
	.nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        width: auto;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        gap: 2rem;
    }
    
	.nav-links.active {
        display: flex;
    }
    
	.mobile-menu-button-wrapper {
        display: none;
    }
    
	.main-title {
        font-size: 3rem; 
    }
    
	.main-subtitle {
        font-size: 1.875rem;
    }
    
	.section-title {
        font-size: 2.25rem;
    }

	.subsection-title {
        font-size: 1.75rem;
    }
    
	.page-section, .page-section-gray {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
    
	.course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
	.course-card {
        max-width: none;
    }
    
	.directors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
	.footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .course-grid {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
		gap: 2rem;
	}
}

@media (hover: hover) and (pointer: fine) {
    .course-card:hover {
        transform: translateY(-5px);
    }
	
	.faq-card:hover {
        transform: translateY(-5px);
    }
	
	
}
