/* ==========================
   VARIABLES
   ========================== */
:root {
    --primary: #043D5F;
    --secondary: #0E5077;
    --accent: #00A3C6;
    --light: #ffffff;
    --text: #444;
    --bg-body: #f5f7fa;
    --shadow: 0 8px 25px rgba(0,0,0,.12);
    --whatsapp: #25D366;
    --facebook: #1877F2;
    --instagram: #E4405F;
    --youtube: #FF0000;
}

/* ==========================
   RESET & BASE
   ========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: var(--bg-body);
    color: var(--text);
    line-height: 1.6;
}

h1, h2, h3 {
    font-weight: 700;
}

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

a {
    text-decoration: none;
}

/* ==========================
   HEADER
   ========================== */
header {
    background: var(--light);
    border-bottom: 1px solid #e5e7eb;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 12px 8%;
    background: var(--light);
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    max-width: 270px;
    height: 80px;
    width: auto;
    display: block;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item i {
    color: #007BFF;
    font-size: 18px;
}

.contact-item a {
    color: var(--text);
    font-size: 15px;
    transition: .25s;
}

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

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    border-radius: 30%;
    background: var(--secondary);
    color: #fff;
    transition: .25s;
}

.social-icons a:hover {
    background: var(--accent);
}

.fa-whatsapp { color: var(--whatsapp); }
.fa-facebook-f { color: var(--facebook); }
.fa-instagram { color: var(--instagram); }
.fa-youtube { color: var(--youtube); }

.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.btn-order,
.btn-client {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    transition: .25s;
}

.btn-order {
    background: #FF6A00;
    color: #fff;
}

.btn-order:hover {
    background: #e55d00;
}

.btn-client {
    background: var(--secondary);
    color: #fff;
}

.btn-client:hover {
    background: #032d47;
}

/* ==========================
   NAVBAR (DESKTOP)
   ========================== */
.navbar {
    background: var(--secondary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
}

.nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: block;
    padding: 9px 0;
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    transition: .25s;
}

.nav-list > li > a:hover {
    color: var(--accent);
}

/* ==========================
   SOUS-MENUS (DESKTOP)
   ========================== */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    background: var(--primary);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    display: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    z-index: 9999;
}

.dropdown:hover > .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 11px 20px;
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
    transition: .25s;
}

.dropdown-menu a:hover {
    background: var(--secondary);
    color: #fff;
}

.arrow {
    font-size: 12px;
    margin-left: 3px;
    transition: transform .25s;
}

/* ==========================
   MENU TOGGLE (mobile - caché par défaut)
   ========================== */
.menu-toggle {
    display: none;
}

.mobile-client {
    display: none;
}

/* ==========================
   HERO
   ========================== */
.hero {
    padding: 120px 20px;
    text-align: center;
    background: linear-gradient(to right, var(--secondary), var(--primary));
    color: #fff;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero span {
    color: #38bdf8;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #cbd5e1;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    background: #38bdf8;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,.15);
    transition: .25s;
}

.btn:hover {
    background: #0ea5e9;
    transform: translateY(-2px);
}

/* ==========================
   PAGE CONTENT (générique)
   ========================== */
.page-content {
    background: var(--light);
    color: var(--text);
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px;
}

.page-content h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 20px;
}

.page-content p {
    text-align: justify;
    line-height: 1.9;
    color: var(--text);
    margin-bottom: 20px;
}

.page-content ul {
    margin: 20px 0 20px 40px;
}

.page-content li {
    margin-bottom: 12px;
}

/* ==========================
   SERVICES
   ========================== */
.services {
    padding: 80px 20px;
    background: var(--light);
    color: var(--text);
}

.services h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 20px;
}

.services h3 {
    color: var(--secondary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.services p {
    text-align: justify;
    line-height: 1.9;
    margin-bottom: 20px;
    color: var(--text);
}

.services ul {
    width: fit-content;
    margin: 20px auto;
    padding-left: 30px;
}

.services li {
    text-align: left;
    margin-bottom: 12px;
    color: var(--text);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 80px;
}

.card {
    background: var(--light);
    color: var(--text);
    text-align: center;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: .25s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,.18);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--secondary);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.feature {
    background: var(--light);
    color: var(--text);
    text-align: center;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: .25s;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,.18);
}

.feature h3 {
    margin-bottom: 15px;
    color: var(--secondary);
}

/* ==========================
   FAQ MODERNE
   ========================== */

.faq {
    padding: 80px 20px;
    background: #f5f7fa;
}

.faq .container {
    max-width: 900px;
    margin: 0 auto;
}

.faq h2 {
    text-align: center;
    color: var(--primary);
    font-size: 32px;
    margin-bottom: 12px;
}

.faq-intro {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 40px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 22px;
    cursor: pointer;
    list-style: none;
    color: var(--primary);
    font-size: 17px;
    font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 20px;
    transition: 0.3s ease;
}

.faq-item[open] summary span {
    transform: rotate(45deg);
    background: var(--accent);
}

.faq-answer {
    padding: 0 22px 20px;
    border-top: 1px solid #eee;
}

.faq-answer p {
    margin: 15px 0 0;
    color: var(--text);
    line-height: 1.8;
    font-size: 15px;
}



/* ==========================
   NOS RÉALISATIONS
   ========================== */

.portfolio {
    padding: 70px 20px;
    background: var(--light);
    text-align: center;
}

.portfolio h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.portfolio-intro {
    color: var(--text);
    margin-bottom: 40px;
}


/* Grille des projets */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.portfolio-item {
    background: #1e293b;
    padding: 60px 20px;
    border-radius: 12px;
}

/* Carte */

.portfolio-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: .3s;
    text-align: center;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,.18);
}


/* Image */

.portfolio-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #1e293b;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: .4s;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}


/* Contenu */

.portfolio-content {
    padding: 20px;
}

.portfolio-content h3 {
    color: var(--secondary);
    margin-bottom: 10px;
}

.portfolio-content p {
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 20px;
}


/* Bouton Voir le projet */

.portfolio-btn {
    display: inline-block;
    padding: 10px 18px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: .3s;
}

.portfolio-btn:hover {
    background: var(--secondary);
}


/* Bouton toutes les réalisations */

.portfolio-more {
    margin-top: 40px;
}

/* ==========================
   CONTACT
   ========================== */
.contact {
    padding: 80px 20px;
    background: #1e293b;
    text-align: center;
    color: #fff;
}

/* ==========================
   FOOTER
   ========================== */
footer {
    background: var(--primary);
    padding: 30px 20px;
    text-align: center;
    color: var(--light);
}

/* ==========================
   DOMAIN SEARCH
   ========================== */
.domain-box {
    margin-top: 40px;
}

.domain-box h3 {
    margin-bottom: 15px;
    color: #cbd5e1;
}

.domain-box form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.domain-box input {
    padding: 14px;
    width: 300px;
    border: none;
    border-radius: 6px 0 0 6px;
    outline: none;
}

.domain-box button {
    padding: 14px 25px;
    border: none;
    background: #38bdf8;
    color: white;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-weight: bold;
    transition: .25s;
}

.domain-box button:hover {
    background: #0ea5e9;
}

.domain-search {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.domain-search input {
    padding: 14px;
    width: 300px;
    border: none;
    border-radius: 6px 0 0 6px;
}

.domain-search button {
    padding: 14px 20px;
    border: none;
    background: #38bdf8;
    color: white;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: .25s;
}

.domain-table {
    width: 100%;
    margin-top: 40px;
    border-collapse: collapse;
}

.domain-table th,
.domain-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.domain-table th {
    background: #1e293b;
    color: white;
}

/* ==========================
   HOSTING PLANS
   ========================== */
.hosting-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 80px;
}

.hosting-plans + p,
.services > .container > p {
    text-align: center;
}

.plan-card {
    background: var(--light);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: .25s;
    padding: 20px;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,.18);
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.plan-card li {
    text-align: left;
    margin: 10px 0;
    padding-left: 15px;
}

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

.plan-card .btn {
    margin-top: 15px;
    background: #FF6A00;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-block;
    transition: .25s;
    box-shadow: 0 5px 15px rgba(0,0,0,.15);
}

.plan-card .btn:hover {
    background: #e55d00;
    transform: translateY(-2px);
}

/* ==========================
   RESPONSIVE (MOBILE)
   ========================== */
@media (max-width: 992px) {
    .top-header {
        flex-wrap: wrap;
        justify-content: center;
        padding: 15px 5%;
        gap: 15px;
    }

    .logo img {
        max-width: 210px;
        height: 70px;
    }

    .contact-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .header-buttons {
        justify-content: center;
    }

    .btn-order,
    .btn-client {
        padding: 5px 12px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .desktop-buttons {
        display: none;
    }

    .mobile-client {
        display: block;
        margin-right: auto;
        color: #fff;
        font-weight: 600;
        font-size: 16px;
    }

    .mobile-client:hover {
        color: var(--accent);
    }
    


    .navbar {
        position: relative;
        padding: 0;
    }

    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 50px;
        padding: 0 15px;
        width: 100%;
    }

    .menu-toggle {
        display: block;
        font-size: 28px;
        color: #fff;
        cursor: pointer;
        line-height: 1;
        margin-left: auto;
        user-select: none;
        background: none;
        border: none;
    }

    .nav-list {
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        margin: 0;
        background: var(--primary);
        z-index: 9999;
        box-shadow: 0 8px 20px rgba(0,0,0,.25);
    }

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

    .nav-list > li {
        width: 100%;
    }

    .nav-list > li > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 20px;
        border-top: 1px solid rgba(255,255,255,.10);
        font-size: 15px;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        min-width: 0;
        display: none;
        padding: 0;
        margin: 0;
        background: var(--secondary);
        border-radius: 0;
        box-shadow: none;
    }

    .dropdown.open > .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 12px 35px;
        font-size: 14px;
        white-space: normal;
        border-top: 1px solid rgba(255,255,255,.08);
    }

    .dropdown.open > .dropdown-toggle .arrow {
        transform: rotate(180deg);
    }

/* Réalisations sur mobile */

.portfolio {
    padding: 50px 15px;
}

.portfolio-grid {
    grid-template-columns: 1fr;
    gap: 25px;
}

.portfolio-image {
    height: 200px;
}

.portfolio-content {
    padding: 20px;
}

    .domain-box input {
        width: 100%;
        border-radius: 6px;
        margin-bottom: 10px;
    }

    .domain-box button {
        width: 100%;
        border-radius: 6px;
    }

    .domain-search input,
    .domain-search button {
        width: 100%;
        border-radius: 6px;
        margin-bottom: 5px;
    }
}

.faq {
    padding: 55px 15px;
}

.faq h2 {
    font-size: 26px;
}

.faq-intro {
    font-size: 15px;
    margin-bottom: 30px;
}

.faq-item summary {
    padding: 17px 15px;
    font-size: 15px;
}

.faq-answer {
    padding: 0 15px 17px;
}

.faq-answer p {
    font-size: 14px;
    line-height: 1.7;
}


/* ==========================================
   BOUTONS HERO - E-COMMERCE
   ========================================== */

section.hero .hero-buttons {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 30px !important;
    margin-top: 30px !important;
    width: 100% !important;
}

section.hero .hero-buttons > a {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 220px !important;
    min-width: 220px !important;
    height: 55px !important;
    padding: 0 20px !important;
    margin: 0 !important;

    border-radius: 8px !important;
    color: #ffffff !important;
    text-decoration: none !important;

    font-size: 16px !important;
    font-weight: 700 !important;

    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
}

/* Créer ma boutique */
section.hero .hero-buttons > a.btn-primary {
    background-color: #38b6ed !important;
}

/* Demander un devis */
section.hero .hero-buttons > a.btn-orange {
    background-color: #FF6A00 !important;
}

/* Survol bouton bleu */
section.hero .hero-buttons > a.btn-primary:hover {
    background-color: #249ed3 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Survol bouton orange */
section.hero .hero-buttons > a.btn-orange:hover {
    background-color: #e55d00 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}


/* ==========================================
   VERSION MOBILE
   ========================================== */

@media (max-width: 768px) {

    section.hero .hero-buttons {
        flex-direction: column !important;
        gap: 16px !important;
        margin-top: 30px !important;
    }

    section.hero .hero-buttons > a {
        width: 85% !important;
        min-width: 0 !important;
        max-width: 370px !important;
        height: 55px !important;
    }
}