:root {
    --noir: #000000;
    --gris-texte: #333333;
    --gris-spec: rgb(166, 166, 166);
    --gris-bandeau: rgb(217, 217, 217);
    --bleu-electrique: rgb(4, 50, 255);
    --blanc: #FFFFFF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gris-texte);
    background-color: var(--blanc);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background-color: var(--gris-bandeau);
    z-index: 1000;
    border-bottom: 1px solid #ccc;
}

.text-blue {
    color: var(--bleu-electrique);
    font-weight: bold;
}

.logo img {
    height: 60px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--noir);
    font-weight: normal;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--bleu-electrique);
}

nav a.active {
    font-weight: bold;
    color: var(--bleu-electrique);
}

main {
    padding-top: 90px;
    width: 100%;
    background-color: var(--white);
}

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

.column p,li {
    font-size: 18px;
}

.column ul {
    list-style-position: inside;
    padding-left: 20px;
}

.container ul {
    list-style-position: inside;
    padding-left: 20px;
}

.timeline {
    font-size: 18px;
}

.page-title h1 {
    font-size: 2.5em;
    color: var(--noir);
    border-bottom: 3px solid var(--bleu-electrique);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.page-title h3 {
    border-bottom: 3px solid var(--bleu-electrique);
}

h2 { font-size: 1,5em; margin-bottom: 20px; color: var(--noir); }
h3 { font-size: 1.5em; margin-bottom: 15px; color: var(--noir); }
h4 { font-size: 1.2em; margin-bottom: 10px; }
p { margin-bottom: 15px; }

.hero-accueil {
    background-image: url('images/homepage_background.jpg');
    background-size: cover;
    background-position: center;
    height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-text {
    padding: 30px;
    max-width: 800px;
    border-radius: 5px;
}

.hero-text h1 {
    font-size: 1.8em;
    color: var(--noir);
}

.convictions-list {
    position: relative;
    margin-top: 40px;
    padding-left: 80px;
}

.conviction-item {
    position: relative;
    margin-bottom: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

.conviction-number {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: var(--bleu-electrique);
    color: var(--blanc);
    font-size: 1.8em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    z-index: 2;
}

.conviction-text {
    flex: 1;
}

.conviction-text p {
    margin-bottom: 0;
    font-size: 18px;
}

.conviction-text ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
    font-size: 18px;
}

.conviction-text li {
    padding-left: 15px;
    position: relative;
    margin-bottom: 5px;
}

.conviction-text li::before {
    content: '-';
    position: absolute;
    left: 0;
    font-weight: bold;
}

.auredi-meaning {
    text-align: center;
    margin-top: 40px;
    font-size: 1.2em;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    position: relative;
}
.modal-content h2 {
    margin-top: 0;
}
.modal-content h3 {
    margin-top: 20px;
    border-bottom: 1px solid var(--gris-bandeau);
    padding-bottom: 5px;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
#cgu-link {
    cursor: pointer;
    text-decoration: underline;
    color: var(--gris-texte);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-logo img {
    width: 400px;
    height: auto;
    margin-bottom: 30px;
}

.hero-text h1 {
    font-size: 2em;
    color: var(--noir);
    line-height: 1.4;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.va-container-modern {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 40px;
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 10px;
}

.va-column-modern {
    flex: 1;
    min-width: 0;
    animation: fadeIn 0.6s ease-out forwards;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 8px;
}

.va-separator-modern {
    flex: 0 0 auto;
    padding-top: 15px;
}

.va-separator-modern img {
    width: 35px;
    height: auto;
    margin-top: 20px;
    filter: invert(15%) sepia(95%) saturate(4575%) hue-rotate(226deg) brightness(102%) contrast(106%);
}

.va-title-modern {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--noir);
    padding-bottom: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--gris-bandeau);
}

.va-title-modern .blue-text {
    color: var(--bleu-electrique);
}

.va-content-modern p {
    margin-bottom: 1em;
    font-size: 18px;
}

.va-content-modern h3 {
    font-weight: bold;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.va-content-modern ul {
    list-style: none;
    padding-left: 0;
}

.va-content-modern li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
    font-size: 18px;
}

.va-content-modern li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--bleu-electrique);
    font-size: 1.2em;
}

.pme-grid-container {
    display: flex;
    width: 100%;
    padding-top: 30px;
}

.pme-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--col-color, #f0f0f0);
    color: var(--blanc);
    margin: 0 7.5px;
    border-radius: 10px !important;
    overflow: hidden;
}

.pme-header {
    padding: 25px;
}

.pme-header h3 {
    font-size: 2em;
    text-transform: uppercase;
    color: var(--blanc);
    margin-bottom: 25px;
}

.pme-header h4 {
    font-size: 1.3em;
    color: var(--noir);
    margin-bottom: 15px;
    font-weight: bold;
    background-color: var(--blanc);
    border-radius: 5px;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 5px;
    padding-top: 5px;
}

.pme-header ul {
    list-style: none;
    padding: 0;
}

.pme-header li {
    border-left: 3px solid rgba(255, 255, 255, 0.7);
    padding-left: 15px;
    margin-bottom: 10px;
}

.pme-footer {
    padding: 20px;
    margin-left: 10px;
    margin-right: 10px;
}

.pme-footer .service-card {
    color: var(--blanc);
    padding-top: 15px;
    position: relative;
}

.pme-footer .service-card h4 {
    color: var(--white);
    font-size: 1.1em;
    margin-bottom: 8px;
    padding-left: 25px;
    border-radius: 8px !important;
}

.pme-footer .service-card p {
    font-size: 0.95em;
    margin-bottom: 0;
    padding-left: 25px;
}

.pme-footer .service-number {
    position: absolute;
    top: 10px;
    left: -15px;
    background-color: var(--col-color, var(--noir));
    color: var(--blanc);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
    border: 3px solid rgba(255, 255, 255, 0.95);
}

main.contact-main {
    display: flex;
    padding-top: 90px;
    height: 100vh;
    background-color: var(--gris-bandeau);
}

.contact-text-wrapper {
    flex: 1;
    padding: 0 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-image-column {
    flex: 1;
    height: 100%;
}

.contact-image-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-details,
.legal-mentions {
    background-color: var(--blanc);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}

.contact-details p {
    font-size: 18px;
}

.legal-mentions p {
    font-size: 18px;
}

.contact-details h2 {
    font-size: 1.4em;
}

.legal-mentions h2 {
    font-size: 1.4em;
}

.cgu-link-container {
    text-align: center;
}
