/* ========================================
   Les Vertus de l'Égoïsme - Styles Communs
   ======================================== */

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

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(28, 35, 45, 1);
    background-color: #f0f0f0;
}

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    transition: all 0.3s ease;
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 15px 40px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--white, #ffffff);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.3s, color 0.3s;
}

.logo-text:hover {
    opacity: 0.8;
}

.header.scrolled .logo-text {
    color: var(--dark, #1c232d);
}

.logo {
    height: 40px;
}

.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    color: var(--white, #ffffff);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

.header.scrolled .nav a {
    color: var(--dark, #1c232d);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--dark, #1c232d);
    transition: width 0.3s;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a.active {
    color: var(--dark, #1c232d);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--white, #ffffff);
    margin: 6px 0;
    border-radius: 3px;
    transition: 0.3s;
}

.header.scrolled .menu-toggle span {
    background: var(--dark, #1c232d);
}

/* ========== MOBILE SIDEBAR ========== */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: rgb(74, 189, 221);
    padding: 80px 30px 30px;
    transition: left 0.3s ease;
    z-index: 2000;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav a {
    display: block;
    color: #fff;
    font-size: 18px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1500;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========== HERO BANNER ========== */
.hero {
    padding: 0;
}

.hero-image {
    width: 100%;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 44px;
    font-weight: 500;
    color: rgba(28, 35, 45, 1);
    line-height: 1.3;
}

/* Hero text in main section */
.hero-text {
    padding: 40px 20px;
    text-align: center;
}

.hero-text h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: rgba(28, 35, 45, 1);
    max-width: 900px;
    margin: 0 auto;
}

.hero-text p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 20px;
    color: rgba(28, 35, 45, 1);
    line-height: 1.6;
}

/* Page-specific hero text styles */
.page-index .hero-text h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 44px;
    font-weight: 500;
}

.page-livre .hero-text h1 {
    font-size: 32px;
}

.page-coaching .hero-text p {
    font-size: 22px;
    max-width: 800px;
}

.page-cabinet .hero-text h1 {
    font-size: 27px;
}

.page-conferences .hero-text h1 {
    font-size: 36px;
}

.page-contact .hero-text {
    padding: 60px 20px;
}

.page-contact .hero-text h1 {
    font-size: 45px;
    margin-bottom: 20px;
}

/* Page-specific background colors */
.page-index .main {
    background-color: rgb(74, 189, 221);
}

.page-livre .main {
    background-color: rgb(184, 231, 253);
}

.page-coaching .main {
    background-color: rgb(223, 249, 218);
}

.page-cabinet .main {
    background-color: rgb(217, 240, 247);
}

.page-conferences .main {
    background-color: rgb(146, 183, 231);
}

.page-contact .main {
    background-color: rgb(153, 195, 243);
}

.page-blog .main {
    background-color: rgb(230, 240, 250);
}

/* ========== MAIN CONTENT ========== */
.main {
    width: 100%;
    padding: 60px 20px;
}

.main > * {
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-family: 'Roboto', sans-serif;
    font-size: 45px;
    font-weight: 500;
    color: rgba(28, 35, 45, 1);
    margin-bottom: 20px;
    text-align: center;
}

.section-subtitle {
    font-size: 18px;
    color: rgba(28, 35, 45, 0.8);
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}

/* ========== CONTENT SECTIONS ========== */
.content-section {
    margin: 50px 0;
}

.content-section h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: rgba(28, 35, 45, 1);
    margin-bottom: 20px;
}

.content-section h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.content-section p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(28, 35, 45, 0.9);
}

.content-section ul {
    margin: 20px 0 20px 30px;
}

.content-section ul li {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 10px;
    color: rgba(28, 35, 45, 0.9);
}

/* Two columns layout */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.two-columns.reverse {
    direction: rtl;
}

.two-columns.reverse > * {
    direction: ltr;
}

/* Three columns layout */
.three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 50px 0;
    align-items: start;
}

.column {
    text-align: center;
    padding: 30px 20px;
}

.column h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.column .subtitle {
    font-size: 18px;
    font-weight: 500;
    color: rgba(28, 35, 45, 1);
    margin-bottom: 10px;
}

.column .detail {
    font-size: 16px;
    color: rgba(28, 35, 45, 0.7);
    font-style: italic;
}

/* Image styles */
.content-image {
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.illustration {
    text-align: center;
    margin: 50px 0;
}

.illustration img {
    width: 80%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Highlight box */
.highlight-box {
    text-align: center;
    margin: 60px 0;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(74, 189, 221, 0.1) 0%, rgba(244, 139, 12, 0.1) 100%);
    border-radius: 8px;
}

.highlight-box h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 42px;
    font-weight: 500;
    color: rgba(28, 35, 45, 1);
    margin-bottom: 20px;
}

.highlight-box p {
    font-size: 22px;
    color: #ffffff;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: rgba(179, 84, 30, 1);
    color: #fff;
}

.btn-primary:hover {
    background-color: rgba(159, 74, 20, 1);
}

.btn-secondary {
    background-color: rgba(244, 139, 12, 1);
    color: #fff;
}

.btn-secondary:hover {
    background-color: rgba(224, 119, 0, 1);
}

/* ========== FOOTER ========== */
.footer {
    background-color: rgba(51, 51, 51, 1);
    color: #fff;
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.footer-col p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.footer-col .logo-footer {
    height: 40px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: rgb(74, 189, 221);
}

.footer-social {
    margin-top: 25px;
}

.footer-social h5 {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Newsletter */
.newsletter-form {
    margin-top: 10px;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
}

.newsletter-form input[type="email"]::placeholder {
    color: #999;
}

.newsletter-form button {
    width: 100%;
    padding: 15px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    background-color: #ffffff;
    color: #333333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Roboto', sans-serif;
}

.newsletter-form button:hover {
    background-color: #f0f0f0;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* ========== CONTACT FORM ========== */
.contact-form {
    background: rgba(238, 233, 230, 0.8);
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgb(74, 189, 221);
}

.contact-form textarea {
    height: 200px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    background-color: rgba(244, 139, 12, 1);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Roboto', sans-serif;
}

.contact-form button:hover {
    background-color: rgba(224, 119, 0, 1);
}

/* Social icons */
.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

.social-icons img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s;
}

.social-icons img:hover {
    transform: scale(1.1);
}

/* Contact info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.contact-info-item {
    text-align: center;
    padding: 20px;
}

.contact-info-item h4 {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: rgba(28, 35, 45, 1);
}

.contact-info-item p {
    font-size: 16px;
    color: rgba(28, 35, 45, 0.8);
    line-height: 1.8;
}

/* Conference cards */
.conference-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

.conference-card img {
    width: 100%;
}

.conference-card-content {
    padding: 30px;
}

.conference-card h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: rgba(28, 35, 45, 1);
    margin-bottom: 10px;
}

.conference-card .subtitle {
    font-size: 16px;
    color: rgba(28, 35, 45, 0.7);
    font-weight: 500;
    margin-bottom: 15px;
}

.conference-card p {
    font-size: 16px;
    color: rgba(28, 35, 45, 0.8);
    line-height: 1.7;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 800px) {
    .nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 28px;
    }

    .section-title {
        font-size: 32px;
    }

    .two-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .two-columns.reverse {
        direction: ltr;
    }

    .three-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }

    .footer-col {
        margin-bottom: 30px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .content-section h2 {
        font-size: 26px;
    }

    .content-section p,
    .content-section ul li {
        font-size: 16px;
    }

    .highlight-box h2 {
        font-size: 28px;
    }

    .highlight-box p {
        font-size: 18px;
    }
}
