/* L27 website - shared styles (index.html, fr.html, ar.html). Arabic overrides live in ar.css. */
/* Brand colours: L27 Brand Book (navy, gradient blue→magenta, gradient coral→magenta) */
:root { --font-body: 'Roboto', sans-serif; --font-heading: 'Exo 2', sans-serif; --font-display: 'Enter The Grid', 'Exo 2', sans-serif; --l27-dark: #15204d; --l27-gradient: linear-gradient(135deg, #2e3898 0%, #942c73 100%); --l27-gradient-coral: linear-gradient(135deg, #f84d55 0%, #942c73 100%); --l27-purple: #2e3898; --l27-pink: #942c73; --l27-coral: #f84d55; --text-dark: #15204d; --bg-light: #f8f9fa; --bg-white: #ffffff; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { .slide-track { animation: none; } }
.icon { width: 1.25em; height: 1em; fill: currentColor; vertical-align: -0.125em; }
body { font-family: var(--font-body); line-height: 1.6; color: var(--text-dark); background-color: var(--bg-white); overflow-x: hidden; }
h1, h2, h3, .btn { font-family: var(--font-heading); }
/* Brand heading typeface: "Enter The Grid" by Andrew McCluskey, CC BY-SA */
@font-face { font-family: 'Enter The Grid'; src: url('../fonts/enter-the-grid.woff2') format('woff2'); font-display: swap; }
.hero h1, .section-title h2 { font-family: var(--font-display); font-weight: 400; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
header { background: #ffffff; padding: 0.8rem 5%; position: sticky; top: 0; z-index: 1000; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 15px rgba(0,0,0,0.08); }
.logo-img { height: 50px; width: auto; display: block; }
.nav-container { display: flex; align-items: center; gap: 2rem; }
nav ul { display: flex; gap: 2rem; }
.menu-toggle { display: none; }
nav a { font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--l27-dark); position: relative; }
nav a::after { content: ''; position: absolute; width: 0; height: 3px; bottom: -5px; left: 0; background: var(--l27-gradient); transition: width 0.3s; }
nav a:hover::after { width: 100%; }
nav a:hover { color: var(--l27-purple); }
		.card .btn {
    display: block;        /* Prend toute la largeur disponible */
    width: 50%;
    margin: 20px auto 0;      /* Espace après la liste */
    padding: 12px 0;       /* Padding ajusté pour l'affichage bloc */
    text-align: center;
}
	
		/* Ensure the careers section uses the grid correctly */
		#careers .cards-container {
			text-align: center; /* Resets the text alignment for cards */
		}
.lang-switch { display: flex; align-items: center; gap: 5px; font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem; border-left: 2px solid #eee; padding-left: 15px; }
.lang-link { cursor: pointer; color: #6b6b6b; transition: 0.3s; padding: 0; font-weight: inherit; }
.lang-link.active { color: var(--l27-pink); border-bottom: 2px solid var(--l27-coral); }
.lang-link:hover { color: var(--l27-dark); }
.hero { background: var(--l27-dark); background-image: radial-gradient(circle at 80% 20%, #23306b 0%, transparent 20%); height: 85vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: white; padding: 0 20px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -10%; left: -5%; width: 400px; height: 400px; background: var(--l27-gradient-coral); filter: blur(100px); opacity: 0.4; border-radius: 50%; }
.hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 1.25rem; max-width: 900px; line-height: 1.4; font-weight: 400; letter-spacing: 0.03em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.hero-subtitle { font-size: 1.5rem; margin-bottom: 2.5rem; max-width: 800px; color: #cfd0e3; font-weight: 300; font-family: var(--font-heading); }
.btn { display: inline-block; padding: 15px 40px; background: var(--l27-gradient); color: white; border-radius: 50px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 10px 25px rgba(148, 44, 115, 0.4); transition: transform 0.3s, box-shadow 0.3s; border: none; cursor: pointer; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(148, 44, 115, 0.6); }
.section-title { text-align: center; margin-bottom: 3.5rem; }
.section-title h2 { font-size: 2.5rem; color: var(--l27-dark); margin-bottom: 15px; text-transform: uppercase; }
.section-title h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--l27-gradient); margin: 10px auto 0; border-radius: 2px; }
.services { padding: 6rem 5%; background: var(--bg-white); }
.cards-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.card { background: white; padding: 2.5rem; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: all 0.3s ease; border: 1px solid #eee; position: relative; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--l27-gradient); }
.card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.card-icon { font-size: 3rem; margin-bottom: 1.5rem; line-height: 1; }
.card-icon .icon { fill: url(#l27-grad); }
.card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--l27-dark); font-weight: 700; }
.card ul { border-top: 1px solid #eee; padding-top: 1rem; margin-top: auto; }
.card ul li { margin-bottom: 0.5rem; color: #444; font-size: 0.9rem; display: flex; align-items: center; }
.card ul li::before { content: '›'; color: var(--l27-pink); font-weight: bold; font-size: 1.2rem; margin-right: 10px; }
.references { padding: 4rem 0; background-color: var(--bg-light); overflow: hidden; }
.slider { height: 100px; margin: auto; position: relative; width: 100%; display: grid; place-items: center; overflow: hidden; }
.slide-track { display: flex; width: calc(250px * 12); animation: scroll 30s linear infinite; }
.slider:hover .slide-track { animation-play-state: paused; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-250px * 6)); } }
.slide { height: 100px; width: 250px; display: flex; align-items: center; justify-content: center; }
.slide img { max-height: 60px; max-width: 180px; filter: grayscale(100%); opacity: 0.6; transition: 0.3s; }
.slide:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.05); }
.careers { padding: 6rem 5%; background: linear-gradient(135deg, #fdfbfd 0%, #f4f7f6 100%); text-align: center; }
.careers-content { max-width: 800px; margin: 0 auto; background: white; padding: 3rem; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #eee; }
.careers-content h3 { color: var(--l27-purple); font-size: 1.8rem; margin-bottom: 1rem; }
.careers-content p { color: #555; margin-bottom: 2rem; font-size: 1.1rem; }
.contact { padding: 6rem 5%; background: white; }
.contact-container { max-width: 900px; margin: 0 auto; padding: 3rem; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); border: 1px solid #eee; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: span 2; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--l27-dark); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; font-family: var(--font-body); background: #fdfdfd; }
.captcha-container { display: flex; justify-content: center; margin: 25px 0; }
.form-status { margin-top: 1rem; min-height: 1.5em; font-weight: 500; }
.form-status.success { color: #1e7e46; }
.form-status.error { color: #b3261e; }
footer { background: var(--l27-dark); color: white; padding: 4rem 5% 2rem; text-align: center; position: relative; }
footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--l27-gradient); }
.footer-logo-img { height: 60px; width: auto; margin-bottom: 20px; }
.footer-info p { margin: 8px 0; color: #cfd0e3; }
.footer-info .icon { fill: var(--l27-coral); margin-right: 8px; }
.copyright { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; margin-top: 3rem; font-size: 0.8rem; color: #a3a6c2; }
@media (max-width: 768px) { .hero h1 { font-size: 1.6rem; } .hero-subtitle { font-size: 1.1rem; }
    .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; }
    .menu-toggle span { display: block; height: 2px; background: var(--l27-dark); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
    .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    nav ul { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.08); padding: 0.5rem 5% 1rem; }
    nav ul.open { display: flex; }
    nav ul a { display: block; padding: 0.9rem 0; border-bottom: 1px solid #eee; }
    nav ul a::after { display: none; }
    .logo-img { height: 40px; } .lang-switch { position: absolute; right: calc(5% + 56px); top: 1.5rem; } .form-grid { grid-template-columns: 1fr; } .form-group.full-width { grid-column: span 1; } }
