/* Réinitialisation des styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables globales */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --accent-color: #4cc9f0;
    --dark-color: #2b2d42;
    --light-color: #f8f9fa;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --gradient-start: #4361ee;
    --gradient-end: #4cc9f0;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --box-shadow-hover: 0 15px 35px rgba(67, 97, 238, 0.3);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-border: 1px solid rgba(255, 255, 255, 0.2);
    --backdrop-blur: blur(10px);
}

/* Styles de base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="%234361ee" opacity="0.05"/><circle cx="30" cy="40" r="1" fill="%234361ee" opacity="0.05"/><circle cx="70" cy="20" r="1" fill="%234361ee" opacity="0.05"/><circle cx="90" cy="60" r="1" fill="%234361ee" opacity="0.05"/><circle cx="50" cy="80" r="1" fill="%234361ee" opacity="0.05"/></svg>');
    background-size: 200px;
    opacity: 0.5;
    z-index: -1;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-end), var(--gradient-start));
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

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

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.3);
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: var(--card-border);
}

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

header h1 {
    color: var(--primary-color);
    font-size: 32px;
    font-weight: 700;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Section Hero */
.hero {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    margin: 0 15px 30px;
    box-shadow: var(--box-shadow);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 22px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    opacity: 0.9;
}

.hero .btn {
    background: white;
    color: var(--primary-color);
    font-size: 18px;
    padding: 15px 30px;
    position: relative;
}

.hero .btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Section Achat */
.buy-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.buy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="10" cy="10" r="2" fill="%234361ee" opacity="0.03"/><circle cx="30" cy="40" r="3" fill="%234361ee" opacity="0.03"/><circle cx="70" cy="20" r="4" fill="%234361ee" opacity="0.03"/><circle cx="90" cy="60" r="2" fill="%234361ee" opacity="0.03"/><circle cx="50" cy="80" r="3" fill="%234361ee" opacity="0.03"/></svg>');
    background-size: 300px;
    opacity: 0.5;
    z-index: -1;
}

.buy-section h2 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 40px;
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.buy-section p {
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
}

/* Nouvelle mise en page pour la section d'achat */
.buy-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-top: 40px;
}

.steps-container {
    flex: 1 1 500px;
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--box-shadow);
    border: var(--card-border);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    transition: var(--transition);
}

.steps-container:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-5px);
}

.steps-container h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--primary-color);
    text-align: center;
    position: relative;
}

.steps-container h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 3px;
}

.steps-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 15px;
    margin-top: 30px;
}

.step-cell {
    width: 33.33%;
    text-align: center;
    vertical-align: top;
    position: relative;
    padding-top: 50px;
    padding-bottom: 20px;
    animation: fadeIn 0.8s ease-out forwards;
    animation-fill-mode: both;
}

.step-cell:nth-child(2) {
    animation-delay: 0.2s;
}

.step-cell:nth-child(3) {
    animation-delay: 0.4s;
}


.step-img {
    width: 250px;
    height: 180px;
    border-radius: 20px;
    margin: 15px auto;
    display: block;
    object-fit: contain;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background-color: #f8f9fa;
}

.step-cell:hover .step-img {
    transform: scale(1.05);
}

.step-cell h4 {
    font-size: 16px;
    margin: 10px 0;
    color: var(--dark-color);
}

.step-cell p {
    color: #666;
    font-size: 14px;
    margin-bottom: 0;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .steps-table, .steps-table tbody, .steps-table tr, .step-cell {
        display: block;
        width: 100%;
    }
    
    .step-cell {
        margin-bottom: 40px;
    }
    
    .step-img {
        margin: 15px auto;
    }
}

.widget-container {
    flex: 1 1 400px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background: var(--card-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: var(--card-border);
    padding: 20px;
    transition: var(--transition);
}

.widget-container:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-5px);
}

.widget-container iframe {
    width: 100%;
    border: none;
}

#widget:focus {
    outline: none;
}

#widget:target {
    outline: none;
    box-shadow: none;
}

@media (max-width: 992px) {
    .buy-content {
        flex-direction: column;
    }
    
    .steps-container,
    .widget-container {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Moyens de paiement */
.payment-methods {
    margin-top: 30px;
    text-align: center;
}

.payment-methods h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
    font-size: 22px;
    position: relative;
    display: inline-block;
}

.payment-methods h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 3px;
}

.payment-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.payment-option {
    cursor: pointer;
    position: relative;
    margin-bottom: 15px;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-icon {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background-color: white;
    width: 100%;
    height: 60px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.payment-icon img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .payment-icons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .payment-icons {
        grid-template-columns: 1fr;
    }
}

.payment-option input[type="radio"]:checked + .payment-icon {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(67, 97, 238, 0.3);
    transform: translateY(-5px);
}

.payment-option:hover .payment-icon {
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Section À propos */
.about-section {
    background: linear-gradient(135deg, #f5f9ff 0%, #eef1f5 100%);
    padding: 100px 0;
    position: relative;
    border-radius: var(--border-radius-lg);
    margin: 30px 15px;
    box-shadow: var(--box-shadow);
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><circle cx="10" cy="10" r="2" fill="rgba(67, 97, 238, 0.05)"/><circle cx="30" cy="40" r="3" fill="rgba(67, 97, 238, 0.05)"/><circle cx="70" cy="20" r="4" fill="rgba(67, 97, 238, 0.05)"/><circle cx="90" cy="60" r="2" fill="rgba(67, 97, 238, 0.05)"/><circle cx="50" cy="80" r="3" fill="rgba(67, 97, 238, 0.05)"/></svg>');
    background-size: 300px;
    opacity: 0.5;
}

.about-section h2 {
    text-align: center;
    color: var(--dark-color);
    margin-bottom: 40px;
    font-size: 36px;
    font-family: var(--font-heading);
    position: relative;
}

.crypto-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    position: relative;
}

.info-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 35px;
    box-shadow: var(--box-shadow);
    flex: 1 1 300px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    border: var(--card-border);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
}

.info-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--box-shadow-hover);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 26px;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.info-card p {
    color: #666;
}

/* Section Contact */
.contact-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(to bottom, #fff, #f5f9ff);
    position: relative;
    border-radius: var(--border-radius-lg);
    margin: 30px 15px;
    box-shadow: var(--box-shadow);
}

.contact-section h2 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 36px;
    font-family: var(--font-heading);
}

.contact-section p {
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border: var(--card-border);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    transition: var(--transition);
}

.contact-form:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-5px);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 16px;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.8);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color), #1a1c27);
    color: white;
    padding: 60px 0 40px;
    text-align: center;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    margin: 30px 15px 0;
    position: relative;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
    text-align: left;
}

.footer-section {
    flex: 1 1 300px;
    margin-bottom: 30px;
    padding: 0 20px;
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    display: inline-block;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

footer p {
    margin-bottom: 10px;
}

footer strong {
    color: var(--accent-color);
}

/* Impression */
@media print {
    .hero,
    .contact-section,
    footer {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .btn,
    .payment-icons,
    .contact-form {
        display: none !important;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    p, h2, h3 {
        orphans: 3;
        widows: 3;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .crypto-info {
        flex-direction: column;
    }
    
    .info-card {
        margin-bottom: 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.hero h2 {
    animation: fadeIn 0.8s ease-out forwards, float 6s ease-in-out infinite;
}

.hero p {
    animation: fadeIn 0.8s ease-out forwards 0.2s;
    animation-fill-mode: both;
}

.hero .btn {
    animation: fadeIn 0.8s ease-out forwards 0.4s;
    animation-fill-mode: both;
}

.info-card {
    animation: fadeIn 0.8s ease-out forwards;
    animation-fill-mode: both;
}

.info-card:nth-child(1) {
    animation-delay: 0.1s;
}

.info-card:nth-child(2) {
    animation-delay: 0.3s;
}

.info-card:nth-child(3) {
    animation-delay: 0.5s;
}

.hero p {
    animation-delay: 0.2s;
}

.hero .btn {
    animation-delay: 0.4s;
}

/* Accessibilité */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

:focus {
    outline: none;
}

/* Supprimer le contour bleu pour les éléments ciblés par une ancre */
:target {
    outline: none !important;
    box-shadow: none !important;
}

/* Supprimer spécifiquement le contour pour le widget */
.widget-container,
.widget-container iframe,
.widget-container:target,
.widget-container iframe:target,
#widget,
#widget:target {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}