/* ============================================
   CT-Composite — Design System
   ============================================ */

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

:root {
    /* Palette CT-Composite */
    /* 1) Orange:   rgb(240,130,24)  -> #F08218 */
    /* 2) Bleu:     rgb(143,159,209) -> #8F9FD1 */
    /* 3) Beige:    rgb(249,222,198) -> #F9DEC6 */
    /* 4) Fond:     rgb(20,17,39)    -> #141127 */

    --bg: #141127;
    --bg-surface: #191632;
    --bg-card: #1f1b3d;
    --bg-card-hover: #27234c;

    --accent: #8F9FD1;
    --accent-light: #B7C4F0;
    --cta: #F08218;
    --cta-hover: #d36f14;

    --text: #fdf7f2;
    --text-muted: #d2c6bc;
    --text-heading: #ffffff;

    --border: rgba(249, 222, 198, 0.2);
    --border-hover: rgba(143, 159, 209, 0.5);

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(143, 159, 209, 0.18);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

/* ---- Layout ---- */

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

section {
    position: relative;
}

/* ---- Typography ---- */

h1, h2, h3, h4 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); text-align: center; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

.about h1 {
    text-align: center;
}

p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

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

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

/* Accessibility helpers */
.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;
}

:focus-visible {
    outline: 3px solid rgba(96, 165, 250, 0.65);
    outline-offset: 3px;
}

/* ---- Buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--cta);
    color: #fff;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    background: var(--cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid rgba(249, 222, 198, 0.7);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: rgba(143, 159, 209, 0.14);
}

.btn:focus-visible {
    outline-color: rgba(249, 115, 22, 0.8);
}

/* ---- Section utilities ---- */

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #141127;
    background: rgba(249, 222, 198, 0.95);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.section-tag--center {
    display: block;
    margin: 0 auto 1rem;
    text-align: center;
    margin-left: 0;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.95rem 0;
    background: rgba(20, 17, 39, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(20, 17, 39, 1);
    border-bottom-color: var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.logo img {
    height: 64px;
    transition: var(--transition);
}

.logo:hover img {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.4rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hamburger span {
    width: 22px;
    height: 2px;
    background-color: var(--text-muted);
    border-radius: 2px;
    transition: var(--transition);
}

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

.hero {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(143, 159, 209, 0.20) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 70% 80%, rgba(240, 130, 24, 0.10) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero h1 {
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--accent-light), var(--cta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    max-width: 560px;
    margin: 0 auto 2.5rem;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

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

.hero-stat .value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-light);
    letter-spacing: -0.02em;
}

.hero-stat .label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ============================================
   Cards (shared)
   ============================================ */

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

.card {
    background: var(--bg-card);
    border: 1px solid rgba(249, 222, 198, 0.15);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.04), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

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

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

.card h3 {
    color: var(--text-heading);
    margin-bottom: 0.75rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.1);
    margin-bottom: 1.25rem;
}

.card-icon svg,
.icon-svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-light);
}

/* ============================================
   About Section
   ============================================ */

.about {
    padding: 100px 24px;
    background: var(--bg);
}

.about > .container > p {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

/* Coextrusion: stack the three cards vertically, keep their width */
.coex-visual .about-grid {
    grid-template-columns: 1fr;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
}

.about-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.about-card h3 {
    color: var(--accent-light);
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.about-card p {
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================
   Services Section
   ============================================ */

.services {
    padding: 100px 24px;
    background: var(--bg-surface);
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(249, 222, 198, 0.15);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    margin: 0 auto 1.5rem;
}

.service-card h3 {
    color: var(--text-heading);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================
   Fiber / Benefits Section
   ============================================ */

.fiber {
    padding: 100px 24px;
    background: var(--bg);
}

.fiber-content {
    margin-top: 2rem;
}

.fiber-text h3 {
    color: var(--accent-light);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.benefits-list {
    list-style: none;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.benefits-list li {
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid rgba(249, 222, 198, 0.2);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.benefits-list li:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

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

.contact {
    padding: 100px 24px;
    background: var(--bg);
}

.contact .container {
    max-width: 960px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    margin-top: 2.5rem;
}

.contact-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
}

.contact-info h3 {
    color: var(--text-heading);
    margin-bottom: 2rem;
    font-size: 1.3rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item h4 {
    color: var(--text-heading);
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-item p {
    margin: 0;
}

.info-item a {
    color: var(--cta);
    font-weight: 600;
    text-decoration: none;
}

.info-item a:hover {
    color: var(--accent-light);
}

/* Contact Form */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-form input,
.contact-form textarea {
    padding: 14px 16px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

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

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    background: rgba(59, 130, 246, 0.03);
}

.contact-form textarea {
    resize: vertical;
    min-height: 130px;
}

.contact-form .btn {
    align-self: flex-start;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    padding: 80px 24px;
    text-align: center;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(249, 115, 22, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section h2 {
    color: var(--text-heading);
    margin-bottom: 0.75rem;
}

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

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

.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 2.5rem 24px;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--accent-light);
}

/* ============================================
   Coextrusion page
   ============================================ */

.coex-diagram {
    position: relative;
    margin: 1.5rem auto 2rem;
    max-width: 700px;
}

.coex-diagram img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.coex-diagram-text {
    position: absolute;
    left: 1.2rem;
    bottom: 1.2rem;
    max-width: 42%;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    background: #fff;
    color: #111827;
    font-size: 0.8rem;
    line-height: 1.5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.coex-visual {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 2.5rem;
}

.coex-visual figure {
    margin: 0;
}

.coex-visual img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

/* ============================================
   Material / Data Sections
   ============================================ */

.material-properties {
    padding: 100px 24px;
    background: var(--bg);
}

.section-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.property {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.property h4 {
    color: var(--accent-light);
    margin-bottom: 0.5rem;
}

.property .value {
    font-size: 1.3rem;
    color: var(--cta);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.property p {
    font-size: 0.9rem;
    margin: 0;
}

/* Spec cards */

.spec-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}

.spec-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.spec-card h4 {
    color: var(--accent-light);
    margin-bottom: 0.5rem;
}

.spec-card p {
    font-size: 1.3rem;
    color: var(--cta);
    font-weight: 700;
    margin: 0;
}

/* ============================================
   Stats (portfolio / vision)
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 2.2rem;
    color: var(--cta);
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

/* ============================================
   Tables
   ============================================ */

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

thead {
    background: var(--bg-surface);
}

th {
    padding: 1rem;
    text-align: left;
    color: var(--accent-light);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.95rem;
}

tbody tr {
    transition: background var(--transition);
}

tbody tr:hover {
    background: rgba(59, 130, 246, 0.04);
}

/* ============================================
   Page header (sub-pages)
   ============================================ */

.page-header {
    margin-top: 60px;
    padding: 80px 24px;
    text-align: center;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.page-header h1 {
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.15rem;
}

/* ============================================
   Animations
   ============================================ */

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */

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

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 56px;
        flex-direction: column;
        background: rgba(13, 19, 33, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 0;
        border-bottom: 1px solid var(--border);
        max-height: calc(100vh - 56px);
        overflow-y: auto;
        z-index: 999;
        display: flex;
        padding: 0.5rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 0;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .hero {
        min-height: auto;
        padding: 60px 24px 80px;
    }

    .hero-stats {
        gap: 2rem;
    }

    .hero-stat .value {
        font-size: 1.6rem;
    }

    .about,
    .services,
    .fiber,
    .contact {
        padding: 70px 24px;
    }

    .contact-wrapper,
    .coex-visual {
        grid-template-columns: 1fr;
    }

    .coex-visual .about-grid {
        grid-template-columns: 1fr;
    }

    .coex-diagram {
        margin: 1.5rem auto 0;
        max-width: 320px;
    }

    .coex-diagram-text {
        position: static;
        max-width: 100%;
        margin-top: 0.75rem;
        box-shadow: none;
    }

    .benefits-list {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.35rem; }

    .hero {
        padding: 40px 20px 60px;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.2rem;
    }

    .about-grid,
    .services-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .card,
    .about-card,
    .service-card,
    .stat-card {
        padding: 1.5rem;
    }

    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
