/* ============================================================
   Pivox - Feuille de styles principale
   Palette : bleu nuit #0F274F, violet #8C46E6, rose lavande #E6C8FA
   ============================================================ */

/* ----- VARIABLES ----- */
:root {
    --color-bg-dark: #0F274F;
    --color-bg-darker: #0A1E3F;
    --color-bg-medium: #282D6C;
    --color-violet: #8C46E6;
    --color-violet-light: #A56BF0;
    --color-violet-dark: #6A2EC9;
    --color-lavender: #E6C8FA;
    --color-lavender-light: #F5E6FF;
    --color-white: #FFFFFF;
    --color-text-light: #F5E6FF;
    --color-text-muted: #B8B8D4;
    --color-text-dark: #1A1A2E;
    --color-text-body: #4A4A6E;
    --color-bg-light: #FAFAFC;
    --color-border: #E0E0EC;

    --font-script: 'Pacifico', cursive;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    --container-width: 1200px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;

    --shadow-sm: 0 2px 8px rgba(15, 39, 79, 0.08);
    --shadow-md: 0 8px 24px rgba(15, 39, 79, 0.12);
    --shadow-lg: 0 16px 48px rgba(15, 39, 79, 0.18);
}

/* ----- POLICE SCRIPT POUR LE LOGO (Pacifico via Google Fonts) ----- */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

/* ----- RESET DE BASE ----- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-body);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-violet);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-violet-dark);
}

/* ----- ACCESSIBILITÉ : lien d'évitement ----- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-violet);
    color: white;
    padding: 8px 16px;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}

/* ----- CONTENEUR ----- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
    background: var(--color-bg-dark);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.site-logo img {
    height: 90px;
    width: auto;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.site-nav a {
    color: var(--color-lavender);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    display: block;
}

.site-nav a:hover,
.site-nav a.active {
    background: rgba(140, 70, 230, 0.2);
    color: white;
}

.site-nav a.btn-cta-header {
    background: var(--color-violet);
    color: white;
    padding: 10px 20px;
}

.site-nav a.btn-cta-header:hover {
    background: var(--color-violet-light);
}

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

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-lavender);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================================
   SECTIONS GÉNÉRIQUES
   ============================================================ */

section {
    padding: 80px 0;
}

.section-light {
    background: var(--color-bg-light);
}

.section-dark {
    background: var(--color-bg-dark);
    color: var(--color-text-light);
}

.section-dark h2,
.section-dark h3 {
    color: white;
}

/* ----- TITRES ----- */
h1, h2, h3, h4 {
    color: var(--color-text-dark);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 0.5em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

p {
    margin-bottom: 16px;
}

p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   HERO (page d'accueil et headers de pages)
   ============================================================ */

.hero {
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-medium) 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(140, 70, 230, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

.hero h1 {
    color: white;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-lavender);
    line-height: 1.6;
    margin-bottom: 40px;
}

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

/* ============================================================
   BOUTONS
   ============================================================ */

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
    line-height: 1.4;
}

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

.btn-primary:hover {
    background: var(--color-violet-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(140, 70, 230, 0.4);
}

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

.btn-secondary:hover {
    background: var(--color-lavender);
    color: var(--color-bg-dark);
}

.btn-light {
    background: white;
    color: var(--color-bg-dark);
    border: 2px solid var(--color-border);
}

.btn-light:hover {
    background: var(--color-bg-light);
    color: var(--color-violet-dark);
    border-color: var(--color-violet);
}

/* ============================================================
   CARTES (offres, bénéfices, etc.)
   ============================================================ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.card {
    background: white;
    border-radius: var(--radius-md);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

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

.card h3 {
    color: var(--color-violet-dark);
}

.card-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.card-link {
    display: inline-block;
    margin-top: 16px;
    font-weight: 600;
    color: var(--color-violet);
}

.card-link::after {
    content: ' →';
    transition: margin-left 0.2s ease;
}

.card-link:hover::after {
    margin-left: 4px;
}

/* ============================================================
   SECTION CONTENU TEXTE STANDARD (pages produits, légales)
   ============================================================ */

.content-section {
    padding: 60px 0;
}

.content-section h2 {
    margin-top: 48px;
    padding-top: 8px;
    border-top: 3px solid var(--color-violet);
    display: inline-block;
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section h3 {
    margin-top: 32px;
    color: var(--color-violet-dark);
}

.content-section ul,
.content-section ol {
    margin: 16px 0 16px 24px;
}

.content-section li {
    margin-bottom: 8px;
}

.content-narrow {
    max-width: 800px;
    margin: 0 auto;
}

/* ----- ENCART INFO ----- */
.info-box {
    background: var(--color-lavender-light);
    border-left: 4px solid var(--color-violet);
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    margin: 24px 0;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   PAGE TARIFS
   ============================================================ */

.pricing-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--color-border);
    text-align: center;
}

.pricing-card.featured {
    border-color: var(--color-violet);
    transform: scale(1.03);
}

.pricing-price {
    font-size: 2.5rem;
    color: var(--color-violet-dark);
    font-weight: 700;
    margin: 16px 0;
}

.pricing-price small {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    text-align: left;
}

.pricing-features li {
    padding: 8px 0 8px 28px;
    position: relative;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-violet);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ============================================================
   FORMULAIRE
   ============================================================ */

.form-container {
    max-width: 640px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-dark);
}

.form-group .required {
    color: var(--color-violet);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: var(--font-body);
    transition: border-color 0.2s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-violet);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.form-checkbox input {
    margin-top: 4px;
    flex-shrink: 0;
}

.form-error {
    background: #FEE;
    border-left: 4px solid #C44;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    color: #722;
}

.form-success {
    background: #EFE;
    border-left: 4px solid #4A4;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    color: #272;
}

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

.site-footer {
    background: var(--color-bg-darker);
    color: var(--color-text-light);
    padding: 60px 0 0;
    margin-top: 80px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: white;
    font-size: 1.05rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-violet);
    display: inline-block;
}

.footer-col p {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 8px;
}

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

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--color-text-muted);
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--color-lavender);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 13px;
    margin: 0;
}

/* ============================================================
   RESPONSIVE - TABLETTES & MOBILES
   ============================================================ */

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

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg-dark);
        padding: 16px 0;
        box-shadow: var(--shadow-md);
    }

    .site-nav.open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 24px;
    }

    .site-nav a {
        padding: 14px 16px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-nav a.btn-cta-header {
        margin-top: 12px;
        text-align: center;
        border-radius: var(--radius-sm);
    }
}

@media (max-width: 640px) {
    section {
        padding: 56px 0;
    }

    .hero {
        padding: 60px 0 56px;
    }

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

    .btn {
        width: 100%;
    }

    .form-container {
        padding: 24px;
    }
}
