/* ============================================================
   LOGIPC INFORMATIQUE - DESIGN PREMIUM V2.3 (FINAL)
   Palette : Bleu #2563eb / Turquoise #14b8a6
   ============================================================ */

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

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

:root {
    --color-dark: #0a1628;
    --color-dark-light: #141b2d;
    --color-blue: #2563eb;
    --color-blue-light: #3b82f6;
    --color-teal: #14b8a6;
    --color-white: #ffffff;
    --color-gray-50: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e1;
    --color-gray-400: #94a3b8;
    --color-gray-500: #64748b;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1e293b;
    --color-gray-900: #0f172a;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 20px 60px rgba(0, 0, 0, 0.08);
    --shadow-hard: 0 30px 80px rgba(0, 0, 0, 0.12);
    --radius: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--color-gray-50);
    color: var(--color-gray-800);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

img {
    max-width: 100%;
    display: block;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-gray-100);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--color-blue), var(--color-teal));
    border-radius: 9999px;
}

/* ---------- HEADER ---------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.main-header.scrolled {
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ---------- LOGO ---------- */
.logo-section {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-img {
    height: 48px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
    background: transparent !important;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    padding: 0;
    transition: var(--transition);
}

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

.company-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--color-white);
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.company-name span {
    background: linear-gradient(135deg, var(--color-blue-light), var(--color-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.company-tagline {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}

/* ---------- MENU (sans demi-lune) ---------- */
.nav-menu {
    display: flex;
    gap: 4px;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.06);
}

.nav-menu a.active {
    color: var(--color-white);
    background: rgba(37, 99, 235, 0.15);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
    /* PAS de ::after, PAS de demi-lune */
}

/* ---------- BURGER MENU (mobile) ---------- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-white);
    border-radius: 9999px;
    transition: var(--transition);
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- HERO ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    background: linear-gradient(135deg, #0a1628 0%, #141b2d 40%, #1a2a4a 70%, #0f1a2e 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(20, 184, 166, 0.06) 0%, transparent 60%);
    animation: heroGlow 20s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(-5%, 5%) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-full);
    color: var(--color-blue-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.2rem;
    font-weight: 900;
    color: var(--color-white);
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero h1 span {
    background: linear-gradient(135deg, #60a5fa, #14b8a6, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

/* ---------- BOUTONS ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-blue), var(--color-teal));
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

/* ---------- SECTIONS ---------- */
.section {
    padding: 80px 0;
}
.section-dark {
    background: var(--color-dark);
    color: var(--color-white);
}
.section-light {
    background: var(--color-white);
}
.section-gray {
    background: var(--color-gray-50);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.section-title span {
    background: linear-gradient(135deg, var(--color-blue), var(--color-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-gray-500);
    max-width: 600px;
    margin: 0 auto 48px;
}
.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.5);
}

/* ---------- CARTES ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: var(--transition);
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.card-dark {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.card-dark:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(37, 99, 235, 0.2);
}

.card-icon {
    font-size: 2.6rem;
    margin-bottom: 16px;
    display: inline-block;
    background: linear-gradient(135deg, var(--color-blue), var(--color-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.card p {
    color: var(--color-gray-500);
    font-size: 0.95rem;
}
.card-dark p {
    color: rgba(255, 255, 255, 0.6);
}

.badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 12px;
}
.badge-blue {
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-blue);
}
.badge-teal {
    background: rgba(20, 184, 166, 0.1);
    color: var(--color-teal);
}
.badge-green {
    background: rgba(20, 184, 166, 0.1);
    color: var(--color-teal);
}
.badge-pink {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

/* ---------- STATS ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    text-align: center;
}
.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-blue), var(--color-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    font-size: 0.95rem;
    color: var(--color-gray-500);
    margin-top: 4px;
}
.section-dark .stat-label {
    color: rgba(255, 255, 255, 0.5);
}

/* ---------- TÉMOIGNAGES ---------- */
.testimonial {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 36px;
    border: 1px solid var(--color-gray-200);
    transition: var(--transition);
}
.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}
.testimonial p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--color-gray-700);
    line-height: 1.8;
}
.testimonial cite {
    display: block;
    margin-top: 16px;
    font-style: normal;
    font-weight: 600;
    color: var(--color-gray-800);
}
.testimonial cite small {
    font-weight: 400;
    color: var(--color-gray-400);
    font-size: 0.85rem;
}

.testimonial-dark {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}
.testimonial-dark p {
    color: rgba(255, 255, 255, 0.8);
}
.testimonial-dark cite {
    color: var(--color-white);
}
.testimonial-dark cite small {
    color: rgba(255, 255, 255, 0.4);
}

/* ---------- FORMULAIRES ---------- */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-gray-700);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--color-white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
    outline: none;
}
.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* ---------- TABLEAUX ---------- */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--color-gray-200);
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
th {
    background: var(--color-gray-50);
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--color-gray-700);
    border-bottom: 2px solid var(--color-gray-200);
}
td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-gray-100);
}
tr:last-child td {
    border-bottom: none;
}
tr:hover td {
    background: var(--color-gray-50);
}

/* ---------- ALERTES ---------- */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin: 20px 0;
    border-left: 4px solid;
}
.alert-info {
    background: #eff6ff;
    border-color: var(--color-blue);
    color: #1e40af;
}
.alert-success {
    background: #ecfdf5;
    border-color: var(--color-teal);
    color: #065f46;
}
.alert-warning {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

/* ---------- LISTES ---------- */
.icon-list li {
    padding-left: 32px;
    position: relative;
    margin-bottom: 10px;
}
.icon-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-teal);
    font-weight: 700;
}

/* ---------- FOOTER ---------- */
.main-footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 0 30px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--color-white);
    margin-bottom: 8px;
}
.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    max-width: 300px;
}
.footer-links h4 {
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--color-white);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--color-teal);
    color: var(--color-white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
}
.webmaster-name {
    color: var(--color-teal);
    font-weight: 500;
}

/* ---------- CONTACT : GRID RESPONSIVE ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form-wrapper {
    padding: 32px;
    background: var(--color-gray-50);
    border-radius: var(--radius-xl);
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
}

/* ---------- CONTACT : DÉTAILS ---------- */
.contact-detail {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--color-white);
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-gray-200);
    transition: var(--transition);
}
.contact-detail:hover {
    transform: translateX(6px);
    border-color: var(--color-teal);
    box-shadow: var(--shadow-medium);
}
.contact-detail i {
    font-size: 1.6rem;
    color: var(--color-teal);
    min-width: 40px;
    text-align: center;
    margin-top: 4px;
}
.contact-detail h4 {
    font-weight: 600;
}
.contact-detail p {
    margin: 0;
}

/* ---------- CONTACT : ACTIONS (3 cartes) ---------- */
.contact-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.contact-action-card {
    text-align: center;
    padding: 32px;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-gray-200);
    transition: var(--transition);
}

.contact-action-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.contact-action-card i {
    font-size: 2.6rem;
    color: var(--color-teal);
    margin-bottom: 16px;
}

.contact-action-card h3 {
    margin-bottom: 8px;
}

.contact-action-card p {
    color: var(--color-gray-500);
}

/* ---------- CALENDRIER ---------- */
.calendar-container {
    width: 100%;
    height: 600px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    margin: 24px 0;
}

.calendar-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ---------- EVENT CARDS ---------- */
.event-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid var(--color-gray-200);
    transition: var(--transition);
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--color-teal);
}

.event-date-box {
    background: linear-gradient(135deg, var(--color-blue), var(--color-teal));
    color: var(--color-white);
    padding: 16px 20px;
    border-radius: var(--radius);
    text-align: center;
    min-width: 90px;
}

.event-date-box .day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.event-date-box .month {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero h1 {
        font-size: 3.2rem;
    }
    .contact-grid {
        gap: 30px;
    }
}

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

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.95);
        backdrop-filter: blur(20px);
        padding: 20px 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
    .main-nav.open {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }
    .nav-menu a {
        padding: 14px 18px;
        width: 100%;
        text-align: center;
        white-space: normal;
    }

    .hero h1 {
        font-size: 2.6rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .section {
        padding: 60px 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* CONTACT : passe en colonne */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form-wrapper {
        padding: 20px;
    }

    .contact-info-wrapper {
        padding: 0;
    }

    .contact-actions {
        grid-template-columns: 1fr;
    }

    .contact-action-card {
        padding: 24px;
    }

    .contact-detail {
        padding: 16px;
        gap: 12px;
    }

    .contact-detail i {
        font-size: 1.3rem;
        min-width: 30px;
    }

    .contact-form-wrapper h2,
    .contact-info-wrapper h2 {
        font-size: 1.5rem;
    }

    /* CALENDRIER */
    .calendar-container {
        height: 450px;
    }

    /* EVENT CARD */
    .event-card {
        flex-direction: column;
        padding: 20px;
    }

    .event-date-box {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
    }

    .event-date-box .day {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .btn-primary,
    .btn-secondary {
        padding: 14px 24px;
        width: 100%;
        justify-content: center;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .logo-img {
        height: 38px;
    }
    .company-name {
        font-size: 1rem;
    }
    .company-tagline {
        font-size: 0.6rem;
    }

    /* CONTACT : très petits écrans */
    .contact-form-wrapper {
        padding: 16px;
    }

    .contact-detail {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .contact-detail i {
        margin: 0 auto 8px;
    }

    .contact-action-card {
        padding: 20px;
    }

    .calendar-container {
        height: 300px;
    }
}