/* Styles de base */
body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0 20px;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* En-tête */
header {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

/* Pied de page */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #2c3e50;
    color: #ecf0f1;
    font-size: 0.9rem;
}

footer a {
    color: #ecf0f1;
    text-decoration: none;
}

/* Contenu principal */
main {
    flex: 1;
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Titres */
h2, h3 {
    color: #2c3e50;
}

h1 {
    color: white;
}

h2 {
    color: #2980b9;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #2980b9;
    padding-bottom: 0.5rem;
}

h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Paragraphes */
p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Sections */
section {
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease-in;
}

/* Tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

table, th, td {
    border: 1px solid #bdc3c7;
}

th, td {
    padding: 8px;
    text-align: left;
}

/* Texte préformaté */
pre {
    background: #ecf0f1;
    padding: 10px;
    overflow: auto;
}

/* Labels */
label {
    font-weight: bold;
}

/* Champs de saisie */
input[type="text"], input[type="number"] {
    width: 100%;
    padding: 8px;
    margin: 5px 0 15px 0;
    box-sizing: border-box;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    transition: border-color 0.3s;
}

input[type="text"]:focus, input[type="number"]:focus {
    border-color: #2980b9;
    outline: none;
}

/* Boutons */
button {
    background: #2980b9;
    color: #fff;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s, transform 0.2s;
}

button:hover {
    background: #3498db;
    transform: translateY(-2px);
}

/* Liens */
a {
    color: #2980b9;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #1c5980;
}

/* Diagrammes */
.diagram {
    text-align: center;
    margin: 20px 0;
}

.diagram canvas, .diagram img, .diagram svg {
    max-width: 100%;
    height: auto;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Styles existants pour le fil d'Ariane (breadcrumb) */
.breadcrumb {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding-left: 20px;
}

.breadcrumb a {
    color: #007acc;
    text-decoration: none;
    padding: 8px 12px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: white;
    background-color: #007acc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.breadcrumb span {
    color: #333;
    padding: 0 8px;
    font-size: 1.2rem;
}

.breadcrumb span.separator {
    margin-right: 10px;
    margin-left: 10px;
    color: #999;
}

.breadcrumb a:after {
    content: '';
    display: inline-block;
    margin-left: 10px;
    border-left: 8px solid #007acc;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.breadcrumb a:last-child:after {
    content: none;
}
/* Fin des styles du fil d'Ariane */

/* Styles CTA Améliorés */
.cta-container {
    display: flex;
    flex-direction: column; /* Empilement vertical des boutons */
    gap: 20px; /* Espace entre les boutons */
    margin-bottom: 2rem; /* Espace sous les boutons */
    align-items: center; /* Centrer les boutons horizontalement */
}

.cta, .cta-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer; /* Assurer le curseur pointeur */
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 400px; /* Limiter la largeur maximale pour les grands écrans */
}

/* Effet d'onde au survol */
.cta::before, .cta-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    pointer-events: none;
}

.cta:hover::before, .cta-secondary:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

/* CTA Principal */
.cta {
    background: linear-gradient(45deg, #ff6b6b, #f06595);
}

.cta:hover {
    background: linear-gradient(45deg, #f06595, #ff6b6b);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* CTA Secondaire */
.cta-secondary {
    background: linear-gradient(45deg, #6b6bff, #9595f0);
}

.cta-secondary:hover {
    background: linear-gradient(45deg, #9595f0, #6b6bff);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Effet de clic */
.cta:active, .cta-secondary:active {
    transform: translateY(0px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    main {
        padding: 1rem;
    }

    .breadcrumb {
        font-size: 0.8rem;
        padding-left: 10px;
    }

    h2 {
        font-size: 1.5rem;
    }

    .cta-container {
        gap: 10px;
    }
}
