* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cooper Hewitt Book', sans-serif;
    background-color: #FBDCD1;
    font-size: 16px;
    color: #222;
    line-height: 1.4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    padding: 20px 20px 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    margin-left: 70px;
}

.logo-image {
    max-width: 100px;
    height: auto;
}

.menu-button {
    display: none;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #F6B6A2;
    color: #222;
    border: 1px solid #F6B6A2;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

.menu-toggle {
    display: none;
}

.nav-container {
    width: 100%;
    transition: all 0.3s ease;
}

.main-container {
    display: flex;
    width: 95%;
    padding-left: 40px;
    padding-right: 40px;
    flex: 1; 
}

.sidebar {
    width: 210px;
    padding: 20px;
    border-radius: 5px;
    margin-right: 60px;
    margin-left: 11px;
}

.sidebar h3 {
    margin-top: -15px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: normal;
    text-transform: none;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 10px;
}

.sidebar-nav a {
    display: block;
    padding: 10px 7px;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    background-color: transparent;
    color: #222;
    text-decoration: none;
    margin-bottom: 15px;
    border: 1px solid #F6B6A2;
    border-radius: 5px;
}

.sidebar-nav a:hover {
    transform: scale(1.02);
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    padding-right: 50px;
}

.intro-section {
    margin-bottom: 20px;
    padding: 0px;
    width: 108%;
}

.intro-section h1 {
    margin-bottom: 25px;
    text-transform: uppercase;
    font-weight: bold;
    display: inline;
    box-shadow: inset 0 -15px 0 0 #F6B6A2;
}

.intro-section .body {
    margin-top: 10px; 
}

.intro-section .body p + p {
    margin-top: 5px; 
}

.intro-apps {
    margin-bottom: 50px;
}

.intro-apps h1 {
    margin-bottom: 25px;
    text-transform: uppercase;
    font-weight: bold;
    display: inline;
    box-shadow: inset 0 -15px 0 0 #F6B6A2;
}

.intro-apps .body {
    margin-top: 10px; 
}

.intro-apps .body p + p {
    margin-top: 5px; 
}

.images-section {
    margin-bottom: 40px;
    padding: 20px 0;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 12px;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
}

.image-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 200px;
    background-color: transparent;
    border: 2px solid #F6B6A2;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: gray;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
}

.image-placeholder img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
    cursor: pointer;
}


.lightbox-toggle {
    display: none;
}

.lightbox-trigger {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-toggle:checked + .lightbox-trigger + .lightbox-overlay {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    width: 85vw;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-height: 65vh;
    max-height: 85vh;
}

.lightbox-close {
    position: absolute;
    top: -15px;
    right: -15px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.lightbox-close:hover {
    background-color: #F6B6A2;
    color: #222;
}

.image-text {
    font-size: 16px;
    line-height: 1.4;
    color: #222;
    margin: 0;
    text-align: center;
    max-width: 100%;
}

.proposition-section {
    margin-bottom: 7px;
}

.proposition-section h1 {
    text-transform: uppercase;
    font-weight: bold;
    display: inline;
    box-shadow: inset 0 -15px 0 0 #F6B6A2;
}

.section, .section-content {
    margin-bottom: 5px;
}

.section h2, .section-content h1 {
    font-size: 20px;
    font-weight: bold;
    display: inline;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-right: -180px;
}

.grid-item {
    background-color: #FBDCD1;
    border-radius: 5px;
    padding: 0;
    margin-right: 130px;
}

.grid-item p {
    margin-top: 5px;
}

.section {
    margin-bottom: 20px;
    padding: px;
}

.subsections-container {
    display: flex;
    flex-wrap: wrap;
    gap: 90px;
    width: 108%;
    margin-bottom: 25px;
}

.subsection {
    flex: 0 0 calc(50% - 50px);
    box-sizing: border-box;
    margin-bottom: -45px;
}

.subsection h2 {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 24px;
    text-align: left; 
}

.subsection-content {
    margin-top: 5px;
}

.app-blocks-section {
    padding: 10px 0 40px 0;
    width: 100%;
}

.app-blocks-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 100px;
    width: 107%;
}

.app-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: -10px;
}

.app-block-title {
    line-height: 1;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
    display: inline;
    box-shadow: inset 0 -12px 0 0 #FFB0A0;
}

.app-block-content {
    background-color: #FBDCD1;
    border-radius: 5px;
    padding: 0px;
    margin-bottom: 25px;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-block-action {
    display: flex;
    justify-content: center; 
    width: 100%;
    margin-top: auto;
}

.app-block-button {
    background-color: #FBDCD1;
    border: 2px solid #F6B6A2;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 16px;
    text-decoration: none;
    color: #222;
}

.app-block-button:hover {
    background-color: #F6B6A2;
}

.personnes-blocks-section {
    padding: 10px 0 40px 0;
    width: 100%;
}

.personnes-blocks-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 100px;
    width: 107%;
}

.personne-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: -30px;
}

.personne-block-title {
    line-height: 1;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: left;
}

.personne-block-content {
    background-color: #FBDCD1;
    border-radius: 5px;
    padding: 0px;
    margin-bottom: 25px;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.personne-block-action {
    display: flex;
    justify-content: center; 
    width: 100%;
    margin-top: auto;
}

.personne-block-button {
    background-color: #FBDCD1;
    border: 2px solid #F6B6A2;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 16px;
    text-decoration: none;
    color: #222;
}

.personne-block-button:hover {
    background-color: #F6B6A2;
}

.ecosysteme-section {
    padding: 10px 0 40px 0;
    width: 108%;
}

.ecosysteme-container {
    display: grid;
    grid-template-columns: repeat(3, 400px);
    gap: 50px;
    width: 100%;
    justify-content: center;

}

.coeur-projet-section {
    padding: 10px 0 40px 0;
    width: 108%;
}

.coeur-projet-container {
    display: grid;
    grid-template-columns: repeat(3, 400px);
    gap: 50px;
    width: 100%;
    justify-content: center;

}

.structure-card {
    background-color: #FBDCD1;
    border: 2px solid #F6B6A2;
    border-radius: 5px;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

.structure-card a {
    display: inline-block;
    background-color: #FBDCD1;
    border: 2px solid #F6B6A2;
    border-radius: 5px;
    padding: 8px 10px;
    text-decoration: none;
    margin: 15px auto 0 auto;
    margin-top: 15px;
    width: auto;
    max-width: max-content;
}

.structure-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.structure-description {
    margin-bottom: 15px;
    flex-grow: 1;
}

.structure-link {
    color: #222;
    text-decoration: underline;
}

.structure-link:hover {
    color: #444;
}

.structure-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -5px;
    padding-top: 15px;
}

.structure-logo img {
    max-width: 150px;
    max-height: 120px;
    width: auto;
    height: auto;
}

.trombinoscope-section {
    padding: 10px 0 40px 0;
}

.trombinoscope-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    padding-left: 8%;
    justify-content: center;
}

.trombi-card {
    background: #FBDCD1;
    border: 3px solid #F6B6A2;
    border-radius: 12px;
    padding: 25px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 250px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.trombi-name {
    font-size: 22px;
    font-weight: bold;
    color: #222;
    margin: 15px 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 8px;
    border-bottom: 2px solid #F6B6A2;
}

.trombi-description {
    color: #333;
    font-size: 16px;
    text-align: left;
    margin-top: 15px;
}

.trombi-description p {
    margin-bottom: 12px;
}

.trombi-description p:last-child {
    margin-bottom: 0;
}

.trombi-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.trombi-avatar img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid #F6B6A2;
}

.map-section {
    margin-top: 55px;
    margin-bottom: 40px;
}

.map-section h2 {
    font-size: 20px;
    text-align: center;
    font-weight: normal;
    margin-bottom: 15px;
}

.personne-section {
    padding: 20px 0 50px 0;
    width: 100%;
}

.personne-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 70px;
    width: 110%;
}

.personne {
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.personne-title {
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
    width: 100%; 
}

.personne-content {
    background-color: #FBDCD1;
    border-radius: 8px;
    padding: 0px;
    margin-bottom: 15px;
    position: relative;
    width: 100%;
    height: 100%;  
    display: flex;
    flex-direction: column;
}

.personne-action {
    display: flex;
    justify-content: left;
    margin-top: auto; 
}

.personne-button {
    background-color: transparent;
    border: 2px solid #F6B6A2;
    border-radius: 8px;
    font-size: 16px;
    padding: 8px 16px;
    text-decoration: none;
    color: #222;
}

.personne-button:hover {
    background-color: #FFB0A0;
}

.contact-section {
    width: 108%;
    padding-top: 20px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.map-container {
    background-color: #FBDCD1;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #F6B6A2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.map-container h2 {
    font-size: 18px;
    text-align: center;
    font-weight: normal;
    margin-bottom: 10px;
    margin-top: 10px;
}

.map-container p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #222;
}

.map-container iframe {
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    min-height: 400px;
}

.form-container {
    background-color: #FBDCD1;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #F6B6A2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.form-container h1 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.required {
    color: #d32f2f;
}

.form-group input[type="submit"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #F6B6A2;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    background-color: #FFB0A0;
    transition: border-color 0.3s ease;
}

.form-group select,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #F6B6A2;
    border-radius: 6px;
    font-size: 16px;
    background-color: #FFFFFF;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
}

.form-actions input[type="submit"] {
    background-color: #F6B6A2;
    color: #222;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #F6B6A2;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
}

.form-actions input[type="submit"]:hover {
    background-color: #FF9080;
    border-color: #FF9080;
}

.form-container fieldset legend {
    display: none;
}

.form-container fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

.form-container input[type="hidden"] {
    display: none;
}

footer {
    background-color: #FFB0A0;
    padding: 10px 20px;
    margin-left: 70px; 
    margin-right: 70px;
    width: calc(100% - 140px); 
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    line-height: 1.2;
    border-radius: 5px;
}

footer > div:last-child {
    text-align: right;
}

.footer-right {
    text-align: right;
}

footer a {
    color: #222;
}

@media (max-width: 768px) {
    body {
        font-size: 18px;
    }

    .logo {
        margin-left: 0;
    }
    
    .menu-button {
        display: block; 
        font-size: 18px;
    }
    
    .main-container {
        flex-direction: column;
        padding: 0 20px 20px 20px;
        width: 100%;
    }
    
    .sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .sidebar h3 {
        display: none;
    }
    
    .nav-container {
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
    }
    
    .menu-toggle:checked ~ .nav-container {
        max-height: 500px;
        visibility: visible;
        margin-top: 15px;
    }
    
    .menu-toggle:checked ~ .menu-button {
        background-color: #FFB0A0;
        color: #222;
    }
    
    .content {
        padding-right: 0;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .intro-section, .intro-apps, .proposition-section {
        text-align: left;
        padding: 5px 0;
        width: 100%;
    }

    .grid-container {
        grid-template-columns: 1fr;
        margin-right: 0;
        margin-left: 0;
        width: 100%;
        gap: 15px;
    }
    
    .grid-item {
        margin-right: 0;
        width: 100%;
    }
    
    .section {
        text-align: left;
        padding: 5px 0;
    }

    .subsections-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        margin-bottom: 25px;
    }
    
    .subsection {
        flex: none;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 0;
        padding: 15px 0;
        text-align: left;
    }
    
    .subsection h2 {
        margin-bottom: 10px;
        font-weight: bold;
        font-size: 20px;
        text-align: left;
    }
    
    .subsection-content {
        margin-top: 10px;
        text-align: left;
    }

    .app-blocks-container {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 20px;
    }
    
    .app-block-action {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: auto;
    }

    .app-block {
        align-items: flex-start;
        margin-bottom: 5px;
    }
    
    .app-block:last-child {
        margin-bottom: 0;
    }

    .personnes-blocks-container {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 20px;
    }
    
    .personne-block-action {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: auto;
    }

    .personne-block {
        align-items: flex-start;
        margin-bottom: 5px;
        text-align: left;
    }

    .personne-block-content {
        text-align: left;
    }
    
    .personne-block-title {
        display: inline-block; 
    }
    
    .personne-block:last-child {
        margin-bottom: 0;
    }

    .personne-container {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 20px;
    }
    
    .personne {
        width: 100%;
        margin: 0 auto 20px auto;
        align-items: flex-start;
    }
    
    .personne:last-child {
        margin-bottom: 0;
    }
    
    .ecosysteme-section {
        width: 100%;
        padding: 10px 0 30px 0;
    }
    
    .ecosysteme-container {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 20px;
        justify-content: normal;
    }
    
    .coeur-projet-section {
        width: 100%;
        padding: 10px 0 30px 0;
    }
    
    .coeur-projet-container {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 20px;
        justify-content: normal;
    }

    .images-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        justify-items: center;
    }
    
    .image-item {
        text-align: center;
    }

    .lightbox-content {
        padding: 10px;
        max-width: 98%;
        max-height: 98%;
    }
    
    .structure-card {
        padding: 15px;
        margin-bottom: 5px;
    }
    
    .structure-name {
        font-size: 20px;
    }
    
    .structure-logo img {
        max-width: 120px;
        max-height: 80px;
    }

    .contact-section {
        width: 100%;
        padding: 0 10px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .map-container,
    .form-container {
        padding: 15px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .map-container iframe {
        height: 450px;
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions input[type="submit"] {
        width: 100%;
    }

    .trombinoscope-section {
        width: 100%;
        padding: 10px 0 30px 0;
    } 

    .trombinoscope-container {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 20px;
        padding-left: 0;
        justify-content: normal;
    } 

    .trombi-card {
        padding: 20px;
        margin-bottom: 5px;
        min-height: 200px;
    }  

     .trombi-avatar {
        margin-bottom: 10px;
    }

     .trombi-avatar img {
        width: 60px;
        height: 60px;
        border: 2px solid #F6B6A2;
    }

     .trombi-name {
        font-size: 20px;
        margin: 10px 0 5px 0;
    }

    .trombi-description {
       font-size: 14px;
       margin-top: 10px;
    }
    
    footer {
        margin-left: 20px;
        margin-right: 20px;
        width: calc(100% - 40px);
        flex-direction: column;
        text-align: center;
    }
    
    .footer-right {
        margin-top: 10px;
        text-align: center;
    }
}