/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1A202C; /* Bleu Marine */
    --accent-color: #D4AF37;  /* Or */
    --bg-color: #F9F9F9;
    --text-color: #333;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--white);
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 1rem;
}

.logo-img {
    height: 50px; /* Ajustez la taille selon vos besoins */
    width: auto;
}

.logo h1 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(26, 32, 44, 0.8), rgba(26, 32, 44, 0.8)), url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&q=80&w=1920') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero h2 {
    color: var(--accent-color);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Boutons */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: #b8962d;
    transform: translateY(-2px);
}

/* Services Grid */
.services {
    padding: 5rem 0;
}

.services h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, min-columns(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.service-card h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-transform: uppercase;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

/* Styles Phase 2 - Pages de Contenu */

/* En-tête de page */
.page-header {
    background-color: #f0f2f5;
    padding: 3rem 0;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
}

.page-header h2 {
    font-size: 2.5rem;
    margin: 0;
}

/* Page À Propos */
.about-content {
    padding: 4rem 0;
}

.flex-layout {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.text-content {
    flex: 1;
}

.image-content {
    flex: 1;
}

.img-responsive {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.shadow {
    box-shadow: var(--shadow);
}

.expertise-details {
    padding: 4rem 0;
    background-color: var(--white);
}

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

.expertise-item {
    padding: 1.5rem;
    border-left: 4px solid var(--accent-color);
    background: var(--bg-color);
}

/* Page Mot du Directeur */
.director-message {
    padding: 4rem 0;
}

.message-card {
    display: flex;
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    gap: 3rem;
}

.director-info {
    flex: 0 0 250px;
    text-align: center;
}

.director-photo {
    width: 100%;
    border-radius: 50%;
    border: 5px solid var(--accent-color);
    margin-bottom: 1.5rem;
}

.director-info .title {
    color: var(--accent-color);
    font-weight: bold;
}

.message-text .quote {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--primary-color);
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
    margin-bottom: 2rem;
}

.message-text p {
    margin-bottom: 1.5rem;
}

.signature {
    margin-top: 2rem;
    font-weight: bold;
}

.signature-name {
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Page Contact */
.contact-section {
    padding: 4rem 0;
}

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

.info-item {
    margin-bottom: 2rem;
}

.info-item strong {
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
}

/* Formulaires */
.standard-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.btn-full {
    width: 100%;
    cursor: pointer;
    border: none;
}

/* Alertes Formulaire */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-weight: bold;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Map Placeholder */
.map-section {
    padding-bottom: 4rem;
}

.map-placeholder {
    height: 450px;
    background: #e0e0e0;
    display: block;
    border-radius: 8px;
    overflow: hidden;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 20px;
}

/* Chatbot Styles */
#gemini-chat-launcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    font-weight: bold;
    transition: transform 0.3s;
}

#gemini-chat-launcher:hover {
    transform: scale(1.05);
}

#gemini-chat-window {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    height: 450px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
}

.chat-header {
    background-color: var(--primary-color);
    color: var(--accent-color);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.chat-header button {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

#chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 15px;
    max-width: 80%;
}

.assistant {
    background-color: #f1f1f1;
    align-self: flex-start;
    color: var(--primary-color);
}

.user {
    background-color: var(--accent-color);
    color: var(--white);
    align-self: flex-end;
}

.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
}

.chat-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 5px;
}

.chat-input button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}
