:root {
    --primary: #EE9111;
    --secondary: #007A7B;
    --background: #EFEFEF;
    --card-bg: #ffffff;
    --text: #333333;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

h3 {
    font-size: 0.7rem;
    font-weight: normal;
}

.header {
    width: 100%;
    background-color: var(--card-bg);
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px var(--shadow);
}

.header img {
    max-width: 100%;
    max-height: 200px;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.tuile-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.tuile-section {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px var(--shadow);
    transition: transform 0.3s ease;
    text-align: center;
}

.link-section img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 10px;
 }

.tuile-image {
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    border-radius: 0.5rem;
}

.section-title {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.tool {
    background: var(--background);
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    word-break: break-word;
    hyphens: auto;
}

.tool:hover {
    transform: scale(1.05);
}

.tool img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.ressources-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lien {
    padding: 1rem;
    background: var(--background);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.3s ease;
    text-align: center;
}

.lien:hover {
    transform: scale(1.07);
}

.guide-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.guide-option {
    padding: 0.75rem;
    background: var(--background);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text);
    text-align: center;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.guide-option:hover {
    transform: scale(1.05);
}

.guide-image {
    max-width: 200px;
    height: auto;
    margin: 1rem auto;
    display: block;
}

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

    .guide-options {
        grid-template-columns: 1fr;
    }

}

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