/**
 * ULYSE WordPress Theme Styles
 * Version: 1.0
 * Author: Christos Doulkeridis
 */

/* ========================================
   Variables CSS
   ======================================== */
:root {
    --primary-color: #6b8e4e;
    --secondary-color: #d4e4bc;
    --accent-color: #e85d2f;
    --text-dark: #2c3e50;
    --text-light: #fff;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --ulyse-orange: #e85d2f;
    --ulyse-green: #6b8e4e;
    --transition-speed: 0.3s;
    --border-radius: 10px;
    --box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* ========================================
   Reset & Base Styles
   ======================================== */
.ulyse-template {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.ulyse-template * {
    box-sizing: border-box;
}

/* ========================================
   Container
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Language Selector
   ======================================== */
.language-selector {
    position: absolute;
    top: 1rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 1000;
}

.language-selector a {
    text-decoration: none;
    color: var(--text-dark);
    padding: 0.3rem 0.8rem;
    border: 2px solid transparent;
    border-radius: 20px;
    transition: all var(--transition-speed);
    font-weight: 500;
}

.language-selector a:hover {
    border-color: var(--ulyse-orange);
    transform: translateY(-2px);
}

.language-selector a.active,
.language-selector .current-lang > a {
    background: var(--ulyse-orange);
    color: white;
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    background: white;
    color: var(--text-dark);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Logo ULYSE */
.logo-ulyse {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.logo-ulyse h1 {
    font-size: 3rem;
    font-weight: 300;
    margin: 0;
    display: flex;
    letter-spacing: -2px;
}

.logo-u {
    color: var(--ulyse-orange);
    font-weight: 600;
    animation: pulse 2s infinite;
}

.logo-lyse {
    color: var(--ulyse-green);
    font-weight: 600;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.logo-tagline {
    display: flex;
    flex-direction: column;
    margin-left: 2rem;
    padding-left: 2rem;
    border-left: 2px solid var(--gray-light);
    justify-content: center;
}

.logo-tagline span {
    font-size: 0.85rem;
    color: var(--gray-medium);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.3;
}

/* Navigation Menu */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color var(--transition-speed);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

nav a:hover {
    color: var(--ulyse-orange);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ulyse-orange);
    transition: width var(--transition-speed);
}

nav a:hover::after {
    width: 100%;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--gray-light) 0%, #e8f0e3 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--ulyse-orange) 0%, transparent 70%);
    opacity: 0.05;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text .subtitle {
    font-size: 1.4rem;
    color: var(--gray-medium);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-quote, .timeline-item {
    background: white;
    padding: 2rem;
    border-left: 4px solid var(--ulyse-orange);
    margin: 2rem 0;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    animation: slideInLeft 0.8s ease-out 0.3s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-quote p {
    font-style: italic;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin: 0;
}

.hero-quote strong:first-of-type, .approach-text strong:first-of-type {
    color: var(--ulyse-orange);
    font-weight: 700;
}

.hero-quote strong:nth-of-type(2), .approach-text strong:nth-of-type(2) {
    color: var(--ulyse-green);
    font-weight: 700;
}

/* Experience Card */
.experience-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    animation: slideInRight 0.8s ease-out 0.5s both;
    transition: transform var(--transition-speed);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.experience-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.experience-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    transition: transform var(--transition-speed);
}

.experience-item:hover {
    transform: translateX(5px);
}

.experience-item .number {
    background: var(--ulyse-orange);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    transition: all var(--transition-speed);
}

.experience-item:hover .number {
    transform: rotate(360deg) scale(1.1);
}

/* -----------TEST */

/* =====================================================
   Expertise
   ===================================================== */

.expertise {
    background: var(--secondary-color);
    padding: 4rem 0;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.expertise-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.expertise-category p {
    color: var(--gray-medium);
    line-height: 1.7;
}

.expertise-category ul, .expertise-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}

.expertise-category ul li, .expertise-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.expertise-category ul li::before, .expertise-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* =====================================================
   Approche
   ===================================================== */

.approach {
    padding: 4rem 0;
    background: #fff;
}

.approach-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.approach-text h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.approach-text p {
    color: var(--gray-medium);
    line-height: 1.8;
}

.approach-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-item {
    background: var(--gray-light);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: background 0.3s;
}

.value-item:hover {
    background: var(--secondary-color);
}

.value-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* =====================================================
   Réalisations / Timeline
   ===================================================== */

.achievements {
    background: var(--gray-light);
    padding: 4rem 0;
}

.timeline {
    position: relative;
    margin-top: 3rem;
    padding-left: 2rem;
    /*border-left: 2px solid var(--gray-medium);*/
}

/* .timeline-item {
    position: relative;
    margin-bottom: 2rem;
    /*TEST
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-left: 4px solid var(--accent-color); /* barre verticale orange     
}

/*.timeline-item::before {
    content: "";
    position: absolute;
    left: -1.1rem;
    top: 0.3rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--accent-color);
}*/

.timeline-period {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
}

.timeline-item h4 {
    margin: 0.25rem 0 0.5rem;
    color: var(--primary-color);
}

/* =====================================================
   Hero – image (conteneur visuel à droite)
   ===================================================== */

.hero-image {
    position: relative;
}





/* ----------FIN TEST */

/* ========================================
   Services Section
   ======================================== */
.services {
    padding: 4rem 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--ulyse-orange);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--ulyse-orange) 0%, var(--ulyse-green) 100%);
    transform: translateX(-100%);
    transition: transform var(--transition-speed);
}

.service-card:hover::before {
    transform: translateX(0);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: white;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--gray-medium);
    line-height: 1.6;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    background: linear-gradient(135deg, var(--ulyse-green) 0%, #7fa55f 100%);
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    opacity: 0.3;
}

.contact h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: all var(--transition-speed);
}

.contact-item a:hover {
    text-decoration: underline;
    transform: scale(1.05);
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 2rem;
    transition: all var(--transition-speed);
    font-weight: 600;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: #2c3e50;
    color: var(--text-light);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 0.95rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero-content, .approach-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .language-selector {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 1rem;
        justify-content: center;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .logo-ulyse {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .logo-ulyse h1 {
        font-size: 2.5rem;
    }
    
    .logo-tagline {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 2px solid var(--gray-light);
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        display: flex;
        flex-direction: row;
        gap: 1rem;
    }
    
    nav ul {
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .hero-text .subtitle {
        font-size: 1.2rem;
    }
    
    .services-grid, .approach-values {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .logo-ulyse h1 {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ========================================
   WordPress Compatibility
   ======================================== */
.ulyse-template .wp-block {
    max-width: 100%;
}

.ulyse-template img {
    max-width: 100%;
    height: auto;
}

/* WordPress Admin Bar Adjustment */
.admin-bar .language-selector {
    top: calc(32px + 1rem);
}

@media (max-width: 768px) {
    .admin-bar .language-selector {
        top: calc(46px + 1rem);
    }
        
   /* Le conteneur du logo + menu sert de référence */
    .header .nav-container {
        position: relative;
    }

    /* Menu caché par défaut en mobile */
    .header nav {
        display: none;
        position: absolute;
        top: 100%;              /* juste sous .nav-container */
        left: 0;
        right: 0;
        background: #fff;
        padding: 1rem 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        z-index: 999;
    }

    /* Quand on clique sur le burger */
    .header nav.mobile-active {
        display: block;
    }

    /* Menu en colonne pour mobile */
    .header nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin: 0;
        padding: 0;
    }

    .header nav a {
        display: block;
        padding: 0.5rem 1rem;    
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .language-selector,
    nav,
    .cta-button {
        display: none;
    }
    
    .hero {
        background: white;
    }
    
    .contact {
        background: white;
        color: var(--text-dark);
    }
}


