/* =================================================================   JG Conseils - V2 Moderne : Onepage & Mentions Légales
   Palette orange d'origine (#ff6347) et design professionnel épuré
   =================================================================== */

:root {
    --primary: #ff6347; /* Orange identitaire JG Conseils */
    --primary-dark: #e05338;
    --primary-light: #ff7f66;
    --text-dark: #1a1e21;
    --text-muted: #596168;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --radius: 8px;
    --max-width: 1140px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
header.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-contact-nav {
    background-color: var(--primary) !important;
    color: white !important;
    padding: 10px 20px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-contact-nav:hover {
    background-color: var(--primary-dark) !important;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #fff5f3 0%, var(--bg-white) 100%);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(255, 99, 71, 0.35);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 99, 71, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(255, 99, 71, 0.02);
}

/* Sections Common */
section {
    padding: 90px 0;
}

section:nth-of-type(even) {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 60px;
}

/* Prestations & Formation Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--bg-white);
    padding: 40px 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.card-icon {
    width: 54px;
    height: 54px;
    background-color: rgba(255, 99, 71, 0.1);
    color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 24px;
}

.card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-dark);
}

.card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

/* À propos */
.about-content {
    max-width: 750px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: 50px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.about-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Contact */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: 50px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.contact-container p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.7;
}

.btn-email {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    padding: 16px 32px;
    background-color: rgba(255, 99, 71, 0.08);
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-email:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: #111418;
    color: #94a3b8;
    padding: 60px 0 30px;
    font-size: 0.95rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-logo span {
    color: var(--primary);
}

.footer-info {
    line-height: 1.6;
    color: #cbd5e1;
}

.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    padding-top: 24px;
    font-size: 0.85rem;
    color: #64748b;
}

.footer-legal a {
    color: var(--primary-light);
    text-decoration: none;
}

.footer-legal a:hover {
    text-decoration: underline;
}

/* Styles spécifiques pour la page Mentions Légales */
.legal-main {
    padding: 140px 0 80px;
    background-color: var(--bg-light);
    min-height: calc(100vh - 200px);
}

.legal-container {
    background-color: var(--bg-white);
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto;
}

.legal-container h1 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.legal-container h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.legal-section {
    margin-bottom: 30px;
}

.legal-section h2 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.legal-section p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.legal-section a {
    color: var(--primary);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

.legal-back {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Mobile menu can be expanded or kept simple */
    }
    .hero h1 {
        font-size: 2.3rem;
    }
    .about-content, .contact-container, .legal-container {
        padding: 30px 20px;
    }
}
