@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary-blue: #4452A4;
    --primary-blue-dark: #323e82;
    --accent-yellow: #F4ED16;
    --accent-yellow-hover: #e0d912;
    --slate-gray: #9AA5AB;
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background-color: var(--bg-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 60px;
    transition: transform var(--transition-speed);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
    transition: color var(--transition-speed);
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--accent-yellow);
    transition: width var(--transition-speed);
}

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

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--bg-white);
    padding: 6rem 0;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(244, 237, 22, 0.1) 0%, rgba(68, 82, 164, 0) 60%);
    z-index: 1;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(244, 237, 22, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-yellow-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(244, 237, 22, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
    margin-left: 1rem;
}

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

/* Features/Expertise Section */
.expertise {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-yellow);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.expertise-card {
    background: var(--bg-white);
    border: 1px solid rgba(154, 165, 171, 0.3);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(255,255,255,0) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(68, 82, 164, 0.1);
    border-color: var(--primary-blue);
}

.expertise-card:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: rgba(68, 82, 164, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-blue);
    font-size: 2rem;
    transition: all var(--transition-speed);
}

.expertise-card:hover .icon-wrapper {
    background-color: var(--primary-blue);
    color: var(--accent-yellow);
}

.expertise-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Info Section */
.info-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.info-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.info-text {
    flex: 1;
}

.info-text p {
    font-size: 1.1rem;
}

.info-image {
    flex: 1;
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, var(--slate-gray), var(--primary-blue));
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.image-placeholder::after {
    content: 'Cabinet ICE';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 5px;
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    gap: 3rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 4rem;
}

.contact-info {
    flex: 1;
    background: var(--primary-blue);
    color: var(--bg-white);
    padding: 4rem;
}

.contact-info h2 {
    color: var(--accent-yellow);
    margin-bottom: 2rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info p strong {
    color: var(--bg-white);
    display: block;
    margin-bottom: 0.2rem;
}

.contact-form {
    flex: 1.5;
    padding: 4rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--slate-gray);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(68, 82, 164, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
footer {
    background-color: var(--primary-blue-dark);
    color: var(--bg-white);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 50px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 1rem;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: var(--accent-yellow);
}

.footer-bottom {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .info-content, .contact-wrapper {
        flex-direction: column;
    }
    
    .contact-info, .contact-form {
        padding: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .nav-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Result Section Styles (for contact-ok.php) */
.result-section {
    padding: 8rem 0;
    text-align: center;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.result-content {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    max-width: 600px;
    width: 100%;
}
.result-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}
.icon-success {
    color: #28a745;
}
.icon-error {
    color: #dc3545;
}
.result-content h2 {
    margin-bottom: 1rem;
    color: var(--primary-blue);
}
.result-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Group Presence Page Styles (for groupe.html) */
.group-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}
.group-intro p {
    font-size: 1.2rem;
}
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}
.location-card {
    background: var(--bg-white);
    border-left: 4px solid var(--primary-blue);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.location-card:hover {
    transform: translateY(-5px);
    border-left-color: var(--accent-yellow);
}
.card-header-blue {
    background-color: #36587B;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 85px;
}
.logo-wrapper-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    height: 100%;
    width: 100%;
}
.logo-wrapper-card img {
    max-height: 45px;
    max-width: 120px;
    object-fit: contain;
}
.logo-wrapper-card .entity-twelve {
    color: var(--bg-white);
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.location-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.location-card p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.location-card .group-contact {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(154, 165, 171, 0.2);
}
.location-card a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: underline;
}
.location-card a:hover {
    color: var(--primary-blue-dark);
}
