/*
Theme Name: Coin Carrière
Theme URI: https://coin-carriere.com
Author: Coin Carrière
Author URI: https://coin-carriere.com
Description: Thème WordPress RTL pour la landing page Coin Carrière - أسبوع التوظيف لخبراء الميديا 2026
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coin-carriere
Tags: rtl-language-support, custom-logo, custom-menu, featured-images, theme-options

Coin Carrière - Landing Page WordPress Theme
*/

/* ==========================================================================
   CSS Variables & Base Styles
   ========================================================================== */

:root {
    /* Primary Colors */
    --cc-primary-blue: #0094d9;
    --cc-dark-blue: #16498c;
    --cc-medium-blue: #1875bb;
    --cc-teal-dark: #0b3f59;
    --cc-lime: #dcfe11;
    --cc-lime-dark: #ccfa04;
    --cc-lime-darker: #b4dc02;
    
    /* Background Colors */
    --cc-bg-dark: #0b3f59;
    --cc-bg-darker: #082a3d;
    --cc-bg-card: rgba(11, 63, 89, 0.6);
    --cc-bg-footer: #082a3d;
    
    /* Text Colors */
    --cc-text-white: #ffffff;
    --cc-text-muted: rgba(255, 255, 255, 0.7);
    --cc-text-dark: #0b3f59;
    
    /* Borders */
    --cc-border: rgba(255, 255, 255, 0.2);
    --cc-border-light: rgba(255, 255, 255, 0.1);
    
    /* Shadows */
    --cc-shadow-card: 0 4px 24px -8px rgba(0, 0, 0, 0.4);
    --cc-shadow-button: 0 4px 16px -4px rgba(220, 254, 17, 0.4);
    
    /* Border Radius */
    --cc-radius: 0.75rem;
    --cc-radius-lg: 1rem;
    --cc-radius-full: 9999px;
    
    /* Transitions */
    --cc-transition: all 0.3s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--cc-bg-dark);
    color: var(--cc-text-white);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--cc-transition);
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

/* ==========================================================================
   Layout
   ========================================================================== */

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

.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: rgba(22, 73, 140, 0.15);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--cc-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--cc-transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--cc-lime);
    color: var(--cc-text-dark);
    box-shadow: var(--cc-shadow-button);
}

.btn-primary:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--cc-text-white);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(11, 63, 89, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cc-border-light);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--cc-lime);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--cc-text-dark);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.main-nav {
    display: none;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--cc-lime);
}

.header-cta {
    display: none;
}

.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--cc-text-white);
    transition: var(--cc-transition);
}

.mobile-nav {
    display: none;
    padding: 1rem;
    border-top: 1px solid var(--cc-border-light);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    display: block;
    padding: 0.5rem 0;
}

@media (min-width: 768px) {
    .main-nav {
        display: block;
    }
    
    .header-cta {
        display: block;
    }
    
    .mobile-toggle {
        display: none;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to left,
        rgba(8, 42, 61, 0.85),
        rgba(11, 63, 89, 0.75)
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(220, 254, 17, 0.2);
    color: var(--cc-lime);
    padding: 0.5rem 1rem;
    border-radius: var(--cc-radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(220, 254, 17, 0.3);
    margin-bottom: 2rem;
    animation: pulse 3s infinite;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--cc-lime);
    border-radius: 50%;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title-accent {
    color: var(--cc-lime);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
}

/* ==========================================================================
   Stats Section
   ========================================================================== */

.stats {
    position: relative;
    z-index: 20;
    margin-top: -4rem;
    padding-bottom: 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    background-color: var(--cc-bg-card);
    backdrop-filter: blur(8px);
    border-radius: var(--cc-radius-lg);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--cc-border-light);
    box-shadow: var(--cc-shadow-card);
    animation: float 6s ease-in-out infinite;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.stat-icon {
    width: 40px;
    height: 40px;
    color: var(--cc-lime);
    margin: 0 auto 1rem;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--cc-text-muted);
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   Video Section
   ========================================================================== */

.video-section {
    padding: 5rem 0;
    background-color: rgba(22, 73, 140, 0.15);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    color: var(--cc-text-muted);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
}

.video-container {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.video-placeholder {
    aspect-ratio: 16 / 9;
    background-color: var(--cc-bg-card);
    backdrop-filter: blur(12px);
    border-radius: var(--cc-radius-lg);
    border: 1px solid var(--cc-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--cc-transition);
}

.video-placeholder:hover {
    border-color: rgba(220, 254, 17, 0.5);
}

.video-placeholder:hover .play-button {
    transform: scale(1.1);
    background-color: rgba(220, 254, 17, 0.3);
}

.play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(220, 254, 17, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--cc-transition);
}

.play-button svg {
    width: 40px;
    height: 40px;
    color: var(--cc-lime);
    margin-right: -4px;
}

.video-text {
    text-align: center;
}

.video-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Why Us Section
   ========================================================================== */

.why-us {
    padding: 5rem 0;
}

.challenges-grid,
.solutions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.challenge-card,
.solution-card {
    background-color: var(--cc-bg-card);
    backdrop-filter: blur(12px);
    border-radius: var(--cc-radius-lg);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--cc-border-light);
    transition: var(--cc-transition);
}

.challenge-card:hover {
    border-color: rgba(239, 68, 68, 0.5);
}

.solution-card:hover {
    border-color: rgba(220, 254, 17, 0.5);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.challenge-card .card-icon {
    background-color: rgba(239, 68, 68, 0.2);
}

.challenge-card .card-icon svg {
    color: #ef4444;
}

.challenge-card .card-stat {
    color: #ef4444;
}

.solution-card .card-icon {
    background-color: rgba(220, 254, 17, 0.2);
}

.solution-card .card-icon svg {
    color: var(--cc-lime);
}

.solution-card .card-stat {
    color: var(--cc-lime);
}

.card-stat {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.card-description {
    color: var(--cc-text-muted);
    font-size: 0.875rem;
}

.subsection {
    margin-top: 5rem;
}

@media (min-width: 768px) {
    .challenges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .solutions-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 1024px) {
    .challenges-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   Process Section
   ========================================================================== */

.process-section {
    padding: 5rem 0;
    background-color: rgba(22, 73, 140, 0.15);
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.process-step {
    background-color: var(--cc-bg-card);
    backdrop-filter: blur(12px);
    border-radius: var(--cc-radius-lg);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--cc-border-light);
    transition: var(--cc-transition);
}

.process-step:hover {
    border-color: rgba(220, 254, 17, 0.5);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--cc-lime);
    color: var(--cc-text-dark);
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-icon {
    width: 32px;
    height: 32px;
    color: var(--cc-lime);
    margin: 0 auto 0.75rem;
}

.step-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--cc-text-muted);
    font-size: 0.875rem;
}

.timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.timeline-item {
    background-color: var(--cc-bg-card);
    backdrop-filter: blur(12px);
    border-radius: var(--cc-radius-lg);
    padding: 1rem 2rem;
    text-align: center;
    border: 1px solid var(--cc-border-light);
}

.timeline-label {
    color: var(--cc-lime);
    font-weight: 600;
}

.timeline-value {
    color: var(--cc-text-muted);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .process-steps {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-section {
    padding: 5rem 0;
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background-color: var(--cc-bg-card);
    backdrop-filter: blur(12px);
    border-radius: var(--cc-radius-lg);
    padding: 2rem;
    border: 1px solid var(--cc-border-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-group:last-of-type {
    margin-bottom: 0;
}

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

.form-input,
.form-textarea {
    width: 100%;
    background-color: rgba(22, 73, 140, 0.3);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius);
    padding: 0.875rem 1rem;
    color: var(--cc-text-white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--cc-transition);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--cc-text-muted);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(220, 254, 17, 0.5);
    box-shadow: 0 0 0 3px rgba(220, 254, 17, 0.1);
}

.form-textarea {
    resize: none;
    min-height: 120px;
}

.form-submit {
    margin-top: 1.5rem;
}

.form-note {
    text-align: center;
    color: var(--cc-text-muted);
    font-size: 0.875rem;
    margin-top: 1rem;
}

.form-message {
    padding: 1rem;
    border-radius: var(--cc-radius);
    margin-top: 1rem;
    text-align: center;
}

.form-message.success {
    background-color: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.form-message.error {
    background-color: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: var(--cc-bg-footer);
    border-top: 1px solid var(--cc-border-light);
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-contact a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cc-text-muted);
    margin-bottom: 0.75rem;
}

.footer-contact a:hover {
    color: var(--cc-lime);
}

.footer-contact svg {
    width: 18px;
    height: 18px;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--cc-text-muted);
}

.footer-links a:hover {
    color: var(--cc-lime);
}

.footer-bottom {
    border-top: 1px solid var(--cc-border-light);
    padding-top: 2rem;
    text-align: center;
    color: var(--cc-text-muted);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-col:not(:first-child) {
        text-align: center;
    }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--cc-text-muted);
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
    display: none !important;
}

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-left: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
