/*
Theme Name: IDB Formation
Theme URI: https://github.com/fassiouihamza/DBFormation
Author: Antigravity IDE
Author URI: https://github.com/
Description: Un thème premium pour IDB Formation (Assurance, Banque, Immobilier)
Version: 1.0.0
Text Domain: idbformation
*/

/* ==========================================================================
   Base Styles & CSS Variables
   ========================================================================== */
   :root {
    /* Color Palette */
    --primary-color: #0F2C59; /* Deep Trust Blue */
    --secondary-color: #DAC0A3; /* Elegant Sand/Gold */
    --accent-color: #EADBC8;
    --text-main: #1F2937;
    --text-muted: #4B5563;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: #0b2247;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
}

.btn-primary-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-white);
    color: var(--primary-color);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.badge {
    display: inline-block;
    background-color: rgba(218, 192, 163, 0.2);
    color: var(--secondary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

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

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

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

.nav-links .btn-primary-outline {
    color: var(--primary-color);
}
.nav-links .btn-primary-outline:hover {
    color: var(--bg-white);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, rgba(15, 44, 89, 0.03) 0%, rgba(218, 192, 163, 0.1) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    /* Use the generated background image if needed */
    /* background-image: url('hero_background_1790086165908.png');
       background-size: cover;
       background-position: center; */
}

.hero-container {
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 8px;
    background-color: rgba(218, 192, 163, 0.4);
    z-index: -1;
}

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

.hero-actions {
    display: flex;
    gap: 16px;
}

/* ==========================================================================
   Domains Section
   ========================================================================== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header h2 span {
    color: var(--secondary-color);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.domain-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.domain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.domain-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.domain-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(218, 192, 163, 0.15);
    color: var(--secondary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
}

.domain-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.domain-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary-color);
    font-weight: 600;
}

.card-link i {
    transition: transform 0.2s ease;
}

.card-link:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 80px 0;
    margin: 60px 0;
}

.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z" fill="%23dac0a3" fill-opacity="0.1" fill-rule="evenodd"/%3E%3C/svg%3E');
}

.cta-content h2 {
    color: var(--bg-white);
    font-size: 2.25rem;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #08172c;
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    color: var(--bg-white);
    display: block;
    margin-bottom: 16px;
}

.footer h4 {
    color: var(--bg-white);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul a:hover {
    color: var(--secondary-color);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    text-align: center;
    font-size: 0.875rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
    .cta-container { flex-direction: column; text-align: center; gap: 30px; }
    .footer-container { grid-template-columns: 1fr; gap: 40px; }
    .nav-links { display: none; } /* Simple responsive hide for now */
}
