/* ==========================================================================
   GLOBAL VARIABLES & RESETS
   ========================================================================== */
:root {
    --primary-plum: #711b4b;
    --accent-cyan: #00aeef;
    --light-bg: #ffffff;
    --section-gray: #f4f7f6;
    --dark-text: #2d2d2d;
    --transition-speed: 0.3s;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header {
    background: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-container img {
    height: 75px;
    width: auto;
    display: block;
}

.header-separator {
    width: 1px;
    height: 60px;
    background-color: #ddd;
}

.header-tagline {
    color: var(--primary-plum);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    white-space: nowrap;
}

nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav a, .nav-drop-btn {
    text-decoration: none;
    color: var(--primary-plum);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 12px 18px;
    border-radius: 50px;
    border: 2px solid var(--primary-plum);
    text-transform: uppercase;
    transition: 0.3s ease;
    background: none;
    cursor: pointer;
    line-height: 1;
}

nav a:hover, .nav-drop-btn:hover {
    background: var(--primary-plum);
    color: white;
    transform: translateY(-2px);
}

/* Language Switch Button */
a.lang-switch {
    background: #e8e8e8 !important;
    color: #555 !important;
    border: none !important;
    font-size: 0.7rem;
    margin-left: 40px;
}

a.lang-switch:hover {
    background: #d0d0d0 !important;
    color: #333 !important;
    transform: translateY(-2px);
}

/* CURRENT PAGE HIGHLIGHT */
body.home-page #nav-home,
body.contact-page #nav-contact {
    background: var(--accent-cyan) !important;
    color: white !important;
}

body.systemes-page #nav-systemes,
body.telephones-page #nav-telephones,
body.tel-heberges-page #nav-tel-heberges,
body.intercom-page #nav-intercom,
body.accessoires-page #nav-accessoires,
body.nuagique-page #nav-nuagique,
body.lignes-ip-page #nav-lignes-ip,
body.telecopieurs-page #nav-telecopieurs,
body.enregistrements-page #nav-enregistrements {
    background: var(--accent-cyan) !important;
    color: white !important;
}

body.systemes-page #nav-produits,
body.telephones-page #nav-produits,
body.tel-heberges-page #nav-produits,
body.intercom-page #nav-produits,
body.accessoires-page #nav-produits {
    background: var(--accent-cyan) !important;
    color: white !important;
}

body.nuagique-page #nav-services,
body.lignes-ip-page #nav-services,
body.telecopieurs-page #nav-services,
body.enregistrements-page #nav-services {
    background: var(--accent-cyan) !important;
    color: white !important;
}

/* ==========================================================================
   DROPDOWN MENU
   ========================================================================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: block;
    position: absolute;
    background: white;
    min-width: 260px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    top: calc(100% + 5px);
    left: 0;
    z-index: 1000;
    border-radius: 12px;
    border-left: 5px solid var(--primary-plum);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover Bridge for Breathing Space */
.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px;
}

.dropdown-content a {
    display: block;
    color: var(--dark-text) !important;
    padding: 10px 15px !important;
    text-decoration: none;
    font-size: 0.80rem !important;
    font-weight: 700 !important;
    text-align: left;
    margin: 2px 0;
    border: none !important;
    border-radius: 8px !important;
    background: transparent !important;
    transition: 0.3s ease;
}

.dropdown-content a:hover {
    background: #f8f9fa !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateX(8px);
    color: var(--accent-cyan) !important;
}

/* ==========================================================================
   HERO SLIDESHOW
   ========================================================================== */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #f4f7f6;
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slideshow-badges {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    padding: 8px 12px;
    border-radius: 10px;
}

.slideshow-badges img {
    height: 50px;
    width: auto;
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    z-index: 20;
    max-width: 600px;
}

.hero-overlay h1 {
    font-size: 3.0rem;
    color: var(--primary-plum);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-overlay p {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 4px;
}

.btn-appointment {
    background: var(--accent-cyan);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-appointment:hover {
    background: var(--primary-plum);
    transform: translateY(-2px);
}

/* ==========================================================================
   HERO VIDEO THUMBNAIL & MODAL
   ========================================================================== */
.hero-bottom-row {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.hero-video-thumb {
    position: relative;
    width: 200px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-video-thumb:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.hero-video-thumb img {
    width: 100%;
    display: block;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.65);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    padding-left: 3px;
}

.video-thumb-label {
    background: rgba(113,27,75,0.85);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    padding: 5px 8px;
    text-transform: uppercase;
}

/* Modal */
.video-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.video-modal-overlay.active {
    display: flex;
}

.video-modal-box {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    max-width: 90vw;
}

.video-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

/* ==========================================================================
   NOS SOLUTIONS
   ========================================================================== */
.categories-section {
    padding: 60px 5%;
    text-align: center;
    isolation: isolate;
}

.categories-section h2 {
    color: var(--primary-plum);
    font-size: 2.0rem;
    margin-bottom: 40px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 40px auto;
}

.category-card {
    background: #fff;
    min-height: 140px;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none !important;
    border-left: 6px solid var(--primary-plum);
    border-top: 3px solid var(--accent-cyan);
    box-shadow: 0 6px 20px rgba(0,0,0,0.09);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.13);
}

.category-card h3 {
    color: var(--dark-text);
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-main-wrapper {
    width: 100%;
    background-color: var(--section-gray);
    padding: 80px 0;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.contact-info {
    flex: 1;
    min-width: 320px;
}

.contact-info h1 {
    color: var(--primary-plum);
    font-size: 3rem;
    margin-top: 0;
}

.contact-form-wrapper {
    flex: 1.2;
    min-width: 340px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-left: 6px solid var(--primary-plum);
}

/* ==========================================================================
   FORM ELEMENTS
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--primary-plum);
    text-transform: uppercase;
    font-size: 0.8rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

.btn-submit {
    background: var(--primary-plum);
    color: white;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: var(--accent-cyan);
}

/* ==========================================================================
   CONSTRUCTION BANNER
   ========================================================================== */
.construction-banner {
    background: var(--section-gray);
    border-bottom: 2px solid var(--accent-cyan);
    border-top: 2px solid var(--primary-plum);
    padding: 10px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.construction-banner img {
    height: 32px;
    width: auto;
}

.construction-banner-text {
    text-align: center;
}

.construction-banner-text p {
    margin: 0;
    line-height: 1.5;
}

.construction-banner-text p.banner-title {
    font-weight: 800;
    color: var(--primary-plum);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.construction-banner-text p.banner-sub {
    color: #666;
    font-size: 0.78rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 5% 20px;
    margin-top: 50px;
}

main + footer {
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 40px;
}

/* Unclicked / Initial State */
.footer-column a:link,
.footer-column a {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Clicked / Visited State */
.footer-column a:visited {
    color: #bbbbbb !important;
}

/* Hover State */
.footer-column a:hover {
    color: var(--accent-cyan) !important;
    text-decoration: underline;
}

/* ==========================================================================
   PAGE BANNER (shared - service & product pages)
   ========================================================================== */
.page-banner {
    background: var(--primary-plum);
    padding: 25px 5%;
    text-align: center;
}

.page-banner h1 {
    color: white;
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0 0 10px 0;
}

.page-banner p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   PAGE INTRO (shared - service & product pages)
   ========================================================================== */
.page-intro {
    background: var(--section-gray);
    padding: 20px 5%;
    text-align: center;
}

.page-intro p {
    max-width: 1200px;
    margin: 0 auto 10px;
    font-size: 1.05rem;
    color: var(--dark-text);
    text-align: justify;
}

.page-intro p.note {
    font-weight: 700;
    color: var(--primary-plum);
}

.page-intro p.note-italic {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    font-weight: 400;
}

.page-intro a {
    color: var(--accent-cyan);
    text-decoration: underline;
}

/* ==========================================================================
   SHARED BUTTONS
   ========================================================================== */
.btn-soumission {
    display: inline-block;
    margin-top: 20px;
    background: var(--primary-plum);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: background 0.3s ease;
    text-align: center;
}

.btn-soumission:hover {
    background: var(--accent-cyan);
}

/* ==========================================================================
   CONTACT CTA BANNER (shared - product & service pages)
   ========================================================================== */
.contact-cta {
    background: var(--primary-plum);
    padding: 50px 5%;
    text-align: center;
}

.contact-cta p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-cta a {
    background: var(--accent-cyan);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-block;
    transition: background 0.3s ease, transform 0.3s ease;
}

.contact-cta a:hover {
    background: white;
    color: var(--primary-plum);
    transform: translateY(-2px);
}

/* ==========================================================================
   NUAGIQUE - FORFAITS
   ========================================================================== */
.forfaits-section {
    padding: 60px 5%;
    background: white;
}

.forfaits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.forfait-card {
    background: #fff;
    border-radius: 12px;
    border-left: 6px solid var(--primary-plum);
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.forfait-card-header {
    margin-bottom: 15px;
}

.forfait-card-header h2 {
    color: var(--primary-plum);
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.forfait-card-subheader {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.forfait-description {
    color: var(--primary-plum);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.forfait-price {
    background: var(--accent-cyan);
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    padding: 10px 18px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.forfait-price:hover {
    background: var(--primary-plum);
    transform: translateY(-2px);
}

.forfait-card ul {
    list-style: disc;
    padding-left: 20px;
    margin: 15px 0;
    flex: 1;
}

.forfait-card ul li {
    font-size: 0.9rem;
    color: var(--dark-text);
    margin-bottom: 6px;
    line-height: 1.4;
}

.forfait-card ul li a {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.forfait-card-note {
    font-size: 0.85rem;
    color: var(--primary-plum);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    line-height: 1.5;
}

.forfait-card-note a {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.forfaits-footnotes {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 0 5%;
    font-size: 0.82rem;
    color: #666;
    line-height: 1.8;
}

/* ==========================================================================
   NUAGIQUE - GARDER NUMÉRO
   ========================================================================== */
.garder-numero-section {
    background: var(--section-gray);
    padding: 60px 5%;
}

.garder-numero-section h2 {
    color: var(--primary-plum);
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
}

.garder-numero-section p {
    text-align: center;
    color: var(--dark-text);
    margin-bottom: 30px;
    font-size: 1rem;
}

.iframe-wrapper {
    max-width: 960px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 6px solid var(--primary-plum);
}

.iframe-wrapper iframe {
    width: 100%;
    height: 560px;
    border: none;
    display: block;
}

/* ==========================================================================
   SYSTEMES - PRODUCT SECTIONS
   ========================================================================== */
.product-section {
    padding: 60px 0;
    background: white;
}

.product-section.alt {
    background: var(--section-gray);
}

.product-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.product-section-inner h2 {
    color: var(--primary-plum);
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-cyan);
    display: inline-block;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.product-left-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: end;
}

.product-images img {
    height: auto;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

.product-images img.img-300et {
    grid-column: 1 / -1;
    margin: 0 auto;
}

.product-images img.img-small {
    width: 180px;
}

.product-features ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0 0 25px 0;
}

.product-features ul li {
    font-size: 0.95rem;
    color: var(--dark-text);
    margin-bottom: 7px;
    line-height: 1.5;
}

.product-features ul ul {
    margin-top: 5px;
    margin-bottom: 5px;
}

.product-features ul ul li {
    font-size: 0.9rem;
}

.product-licences {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.product-licences ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-licences ul li {
    font-size: 0.9rem;
    color: var(--primary-plum);
    font-weight: 700;
    margin-bottom: 6px;
    padding-left: 18px;
    position: relative;
}

.product-licences ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

/* ==========================================================================
   SYSTEMES - MODEL TABLE
   ========================================================================== */
.model-table-wrapper {
    margin-top: 35px;
}

.model-table-wrapper h3 {
    color: var(--primary-plum);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.model-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.model-table th {
    background: var(--primary-plum);
    color: white;
    padding: 10px 15px;
    text-align: left;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.model-table td {
    padding: 9px 15px;
    border-bottom: 1px solid #eee;
    color: var(--dark-text);
}

.model-table tr:nth-child(even) td {
    background: #f9f9f9;
}

.model-table tr:hover td {
    background: #f0f7fc;
}

/* ==========================================================================
   SYSTEMES - DATASHEET LINKS
   ========================================================================== */
.datasheet-links {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #ddd;
}

.datasheet-links h3 {
    color: var(--primary-plum);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.datasheet-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.datasheet-links ul li {
    margin-bottom: 8px;
}

.datasheet-links ul li a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.datasheet-links ul li a::before {
    content: "↗";
    font-size: 0.85rem;
}

.datasheet-links ul li a:hover {
    color: var(--primary-plum);
    text-decoration: underline;
}

/* ==========================================================================
   PHONE CARDS (telephones.php, tel-heberges.php)
   ========================================================================== */
.phone-section {
    padding: 50px 5%;
    background: white;
}

.phone-section.alt {
    background: var(--section-gray);
}

.phone-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.phone-section-inner h2 {
    color: var(--primary-plum);
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 25px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent-cyan);
    display: inline-block;
}

.phone-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.phone-card {
    background: white;
    border-radius: 12px;
    border-top: 3px solid var(--accent-cyan);
    border-left: 4px solid var(--primary-plum);
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.phone-card img {
    width: 140px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.phone-card h3 {
    color: var(--primary-plum);
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 6px 0;
}

.phone-card p {
    font-size: 0.82rem;
    color: var(--dark-text);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.phone-card .datasheet-link {
    margin-top: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
}

.phone-card .datasheet-link::before {
    content: "↗";
    font-size: 0.75rem;
}

.phone-card .datasheet-link:hover {
    color: var(--primary-plum);
    text-decoration: underline;
}
