/* ============================================
   DIGIS - Styles Principaux
   Design: Minimalisme Africain Contemporain
   Palette: Vert Émeraude (#1B7D4F), Ocre Chaud (#C4A74D), Blanc Cassé (#F7F6F1)
   ============================================ */

:root {

/*    --primary: #1B7D4F;  */
    --primary: #A1409D;
    --accent: #C4A74D;
    --background: #F7F6F1;
    --foreground: #2C2C2C;
    --border: #E5E5E5;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* ============================================
   RESET & GLOBAL STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--foreground);
    background-color: var(--background);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

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

a:hover {
    color: var(--accent);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0.65rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

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

.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background-color: transparent;
}

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

.btn-accent {
    background-color: var(--accent);
    color: var(--foreground);
}

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

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-letter {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.logo-digis {
    width: 70px;
}

.logo-text {
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

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

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 0.5rem;
}

.menu-toggle span {
    width: 1.5rem;
    height: 0.2rem;
    background-color: var(--foreground);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--white);
        padding: 2rem;
        gap: 1rem;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .navbar .btn {
        display: none;
    }
}

/* ============================================
   ACCENT BAR
   ============================================ */

.accent-bar {
    width: 4rem;
    height: 0.25rem;
    background-color: var(--accent);
    margin: 0 auto 1rem;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

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

.section-header h2 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--foreground);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--foreground);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    object-fit: cover;
}

.hero-decoration {
    position: absolute;
    top: 5rem;
    right: -10rem;
    width: 30rem;
    height: 30rem;
    background-color: var(--accent);
    opacity: 0.05;
    border-radius: 50%;
    z-index: -1;
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

/* ============================================
   VALUES SECTION
   ============================================ */

.values {
    padding: 5rem 0;
    background-color: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background-color: var(--background);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: var(--transition);
}

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

.value-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.value-icon.security {
    background-color: var(--primary);
    color: var(--white);
}

.value-icon.reactivity {
    background-color: var(--accent);
    color: var(--white);
}

.value-icon.innovation {
    background-color: var(--primary);
    color: var(--white);
}

.value-icon.collaboration {
    background-color: var(--accent);
    color: var(--white);
}

.value-card h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.value-card p {
    color: var(--foreground);
    line-height: 1.6;
}

/* ============================================
   SERVICES PREVIEW SECTION
   ============================================ */

.services-preview {
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--foreground);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.link-arrow {
    color: var(--accent);
    font-weight: 600;
    display: inline-block;
}

.link-arrow:hover {
    color: var(--primary);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials {
    padding: 5rem 0;
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.testimonial-card {
    background-color: var(--background);
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid var(--accent);
    transition: var(--transition);
}

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

.stars {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-card .quote {
    color: var(--foreground);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.testimonial-author img {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    font-size: 0.9rem;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    background-color: var(--primary);
    color: var(--white);
    padding: 3rem;
    border-radius: 1rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat p {
    font-size: 1.1rem;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta {
    padding: 5rem 0;
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    padding: 5rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.info-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.info-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.info-icon.phone {
    background-color: var(--primary);
    color: var(--white);
}

.info-icon.email {
    background-color: var(--accent);
    color: var(--white);
}

.info-icon.location {
    background-color: var(--primary);
    color: var(--white);
}

.info-card h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.info-card a {
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--foreground);
}

.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 125, 79, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-note {
    font-size: 0.85rem;
    color: var(--foreground);
    margin-top: 1rem;
}

.contact-form .btn {
    width: 100%;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--foreground);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    opacity: 0.8;
}

.footer-section a:hover {
    color: var(--accent);
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-text {
    animation: fadeInUp 0.6s ease-out;
}

.hero-image {
    animation: slideInRight 0.6s ease-out 0.2s both;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .values-grid,
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cta h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}
