/*
CSS created by Ori Gross @ Ori Designz
https://www.oridesignz.com
Concept 2024
Launch 2025 01
*/
/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kalam', cursive;
    line-height: 1.6;
    background-color: #f6fcff;
    color: #333;
}

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

/* Header and Navigation */
header {
    background-color: #ffffff;
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo a{
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease-in-out;
}

.logo a:hover{
    color: #3a8cba;
    transition: color 0.3s ease-in-out;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li {
    position: relative;
}

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

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    font-size: large;
    color: #333;
    transition: color 0.3s ease-in-out;
}

.nav-links a:hover {
    color: #3a8cba;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    top: 100%;
    left: 0;
    width: 200px;
}

.dropdown-content li {
    display: block;
}

.dropdown-content a {
    padding: 10px 20px;
    display: block;
    color: #333;
}

.dropdown-content a:hover {
    background-color: #f4f4f9;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;
    background-image: url(../images/header.webp);
    /*background-size: 100%;*/
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: #ffffff;
    padding: 0 20px;
    margin-top: 3em;
    flex-direction: column;
}

.hero-title {
    display: none;
    text-wrap-style: balance;
}

.hero h1 {
    font-size: 4em;
    font-weight: 700;
    color: #3a8cba;
}

.hero h2 {
    color: #cc9966;
    font-size: 2.26em;
}

.hero h3 {
    color: #106290;
    font-size: 1.58em;
}

.hero p {
    font-size: 18px;
    margin-top: 10px;
}

/* Section Headings */
h2 {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

/* Article Section */
article {
    margin-bottom: 40px;
}

article h3 {
    font-size: 1.75em;
    margin-bottom: 10px;
    color: #333;
}

article h3.subitem {
    font-size: 1.4em;
}

article h4.targetaudience {
    margin-block-start: -1em;
    margin-bottom: 10px;
}

article .subtitle {
    font-size: 20px;
    color: #3a8cba;
    margin-bottom: 20px;
}

article h4.subtitle {
    font-size: 1.25em;
    color: #3a8cba;
    margin: 20px 0;
}

article h4.modalite {
    font-size: 1em;
}

article p {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 20px;
    text-indent: 3em;
    font-family: 'Poppins', sans-serif;
}

article p a {
    color: #3a8cba;
    text-decoration: none;
    transition: color 0.5s ease;
}

article p a:hover {
    color: #106290;
}

article p.intro {
    text-indent: 0em;
}

#presentation .actualites {
    margin-top: 6em;
}

#presentation .actualites h4 {
    color: #6b4745;
}

#presentation .actualites p {
    text-indent: 0em;
    font-family: 'Poppins', sans-serif;
    font-size: 1em;

}

article p.modalite{
    text-indent: 0em;
}

#presentation p {
    font-family: 'Kalam', cursive;
    font-size: 1.2em;
}

#relecture-tapuscrits p{
    text-indent: 0;
}

/* Image Styles for Articles */
.article-image {
    text-align: center;
    margin: 20px 0;
}

.article-image img {
    max-width: 50%;
    max-height: 15em;
    height: auto;
    border-radius: 10px;
}

.intitule {
    font-family: 'Kalam', cursive;
    font-size: 0.8em;
    margin: -1em 0 0 0;
}

/* Tariffs Table Styling */
.tariffs-table {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
    color: #333;
}

.tariffs-table thead th {
    background-color: #3a8cba;
    color: white;
    padding: 15px;
    font-size: 18px;
    text-align: left;
}

.tariffs-table tbody td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
}

.tariffs-table tbody td a {
    color: #3a8cba;
    text-decoration: none;
    font-weight: 600;
}

.tariffs-table tbody a:hover {
    color: #106290;
    text-decoration: none;
    transition: color 0.5s ease;
}

.tariffs-table tbody tr:hover {
    background-color: #f9f9f9;
}

.tariffs-table tbody tr:last-child td {
    border-bottom: none;
}

/* Témoignages Section */
#temoignages {
    /*padding: 40px 20px;*/
    padding: 2.52em 1.26em 1.26em;
    /*background-color: #f9f9f9;*/
    max-width: 1200px; /* Match the maximum width of other sections */
    margin: 0 auto; /* Center the section */
}

#temoignages h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
}

.testimonial {
    margin-bottom: 30px;
    padding: 20px;
    border-left: 5px solid #106290;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease-in-out;
}

.testimonial blockquote {
    margin: 0;
    padding: 0;
    font-style: italic;
    font-size: 1.1em;
    line-height: 1.6;
}

.testimonial .author {
    margin-top: 10px;
    font-weight: bold;
    font-size: 1em;
    text-align: right;
    font-style: initial;
}

/* Hide hidden testimonials initially */
.hidden-testimonial {
    display: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.5s ease;
}

/* Show hidden testimonials with animation NEW */
.hidden-testimonial.visible {
    opacity: 1;
    max-height: 500px;
}

/* Button Styling */
.toggle-testimonials {
    display: inline-block;
    margin: 1.26em auto;
    padding: 0.2em 0.6em;
    background-color: #3a8cba;
    color: #ffffff;
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-testimonials:hover {
    background-color: #106290;
}

/* Publications */
.publication-list {
    list-style-type: none;
    padding-left: 0;
    font-family: 'Kalam', cursive;
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
}

.publication-list a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 10px 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.publication-list a:hover {
    background-color: #e8e8ed;
    color: #106290;
}

/* Hover effect for the list items */
.publication-list li:hover {
    background-color: #e8e8ed;
    transition: background-color 0.3s ease;
}

.publication-list li {
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.publication-title {
    font-weight: bold;
    font-size: 1.25em;
    color: #3a8cba;
}

.publication-author {
    font-style: italic;
    color: #444;
}

.publication-year {
    color: #999;
    margin-left: 5px;
}

.publication-article{
    padding-top: 1.3em;
}

.publication-wrap p {
    padding: 1em 0 0.5em 0;
}

.publication-top {
    margin-top: 6em;
}

/* Footnotes from publications */
ol.footnotes {
    margin-left: 1.5em;
    margin-top: 1em;
    font-size: smaller;
}

.publication-details h1 {
    font-size: 1.5em;
    margin-bottom: 0.42em;
}

.publication-details h3 {
    margin-top: -1em;
}

.publication-details .date {
    font-size: 1.1em;
    color: #3a8cba;
    margin-bottom: 15px;
}

.publication-details .author {
    font-size: 1em;
    margin-bottom: 20px;
    font-style: italic;
}

.publication-content {
    margin-bottom: 40px;
    font-size: 1.1em;
}

.publication-content h1 {
    font-size: 1.5em;
    margin: 1.5em 0 0 0;
}

.publication-separator-quote {
    text-align: center;
}

.publication-brouillon {
    margin: 0 3em 0;
    padding: 0 2em 0;
    background-color: #fff;
}

.interview {
    margin-top: 40px;
    border-top: 2px solid #3a8cba;
    padding-top: 20px;
}

.interview .interviewer,
.interview .interviewee {
    margin-bottom: 15px;
}

.interview .interviewer {
    font-weight: bold;
    color: #333;
}

.interview .interviewee {
    font-style: italic;
    color: #444;
}

/* Back buton from mini-pages */
.back-button {
    background-color: #3a8cba;
    color: white;
    padding: 0.2em 0.6em;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.back-button:hover {
    background-color: #106290;
}

/* Contact Section */
.contact-details-cols {
    overflow: hidden;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
}

.contact-details-cols a {
    color: #3a8cba;
    text-decoration: none;
}

.contact-details-cols a:hover { 
    text-decoration: none;
    color: #444;
    transition: color 0.5s ease;
}

.contact-col {
    float: left;
    min-width: 50%;
    text-align: center;
}

.contact-col-details {
    padding-top: 3em;   
    text-align: left;
}

.contact-col-details p {
    margin-bottom: 0.6em;
}

.contact-col-details a {
    font-weight: 600;
}

.icons {
    color: #3a8cba;
    height: 1em;
    margin-right: 1em;
    vertical-align: middle;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer p {
    margin: 0;
    font-size: 14px;
}

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

footer a:hover {
    color: #3a8cba;
    transition: color 0.3s ease;
}

/* Mentions Legales */
.mentions-legales-content p {
    font-family: 'Poppins', sans-serif;
}

.mentions-legales-content a {
    font-family: 'Poppins', sans-serif;
    color: #3a8cba;
    text-decoration: none;
    font-weight: 600;
}

.mentions-legales-content a:hover {
    color: #444;
    transition: color 0.3s ease;
}

.credits-photos {
    margin-top: 2em;
}

.hebergeur {
    margin-top: 2em;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        background-image: none;
        margin-top: 0;
    }

    .hero-title {
        display: block;
    }

    .hero-title h1 {
        font-size: 3em;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        background-color: #fff;
        top: 60px;
        right: 0;
        width: 200px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }

    .nav-links li {
        text-align: center;
        padding: 15px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links.show {
        display: flex;
    }
    .dropdown-content {
        position: static; /* Make submenus appear under their parent */
        box-shadow: none; /* Remove shadow for dropdown items */
        /*padding-left: 20px; /*Indentation for submenu items;*/
    }
    .dropdown-content a {
        padding: 8px 0; /* Less padding on smaller screens */
    }
    .tariffs-table thead {
        display: none;
    }

    .tariffs-table tbody, .tariffs-table tr, .tariffs-table td {
        display: block;
        width: 100%;
    }

    .tariffs-table td {
        padding: 10px;
        position: relative;
        text-align: right;
    }

    .tariffs-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: bold;
        text-align: left;
    }

    .tariffs-table td:last-child {
        border-bottom: 1px solid #ddd;
    }
    /* ALT CONTACT TEST */
    /* Contact Section */
    .contact-col {
        float: none;
    }
}