@font-face {
    font-family: 'Darling';
    src: url(../font/Darling.ttf);
    font-weight: 400;
}

/* Style global */

body {
    background-color: #262734;
    color: white;
    margin: 1rem;
}

h1 {
    font-family: 'Darling', 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    color: white;
    font-size: 2.3rem;
    text-align: center;
    padding: 1.5rem;
}

h2 {
    font-family: 'Darling', 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    color: #e94065;
    font-size: 2rem;
    text-align: left;
    padding: 1.5rem 0 1rem 0;
    margin-left: 1rem;
}

h3 {
    font-size: 1.2rem;
    color: #e94065;
}

p {
    margin: 0 1rem 1rem 1rem;
    font-size: 1rem;
    text-align: justify;
    line-height: 1.2rem;
}

ul, ol, li {
    font-size: 1rem;
    line-height: 1.1rem;
}

ol, ul {
    list-style-type: decimal;
    list-style-position: outside;
    padding: 0 4rem 0 4rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

ul {
    list-style-type: disc;
}

li {
    margin-bottom: 1rem;
}

.greenText {
    color: #52d871;
}

.whiteText {
    color: white;
}

.title {
    font-family: 'Darling', 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 3.2rem;
    text-align: center;
    padding: 1rem;
    line-height: 3rem;
}

a {
    color:#52d871;
    text-decoration: none;
}

a:hover {
    color: white;
}

.wrapper {
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
}

footer {
    border-top: 2px solid #e94065;
    padding: 1rem 0;
    margin-top: 3rem;
}

footer p {
    text-align: center;
}

button {
    display: block;
    margin: 1rem auto;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    background: #e94065;
    color: #155a25;
    font-weight: 600;
}

button:hover {
    background: white;
    color:#155a25;
}

button a:hover {
    color: #155a25;
    font-weight: 700;
}

.btnMulti {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

button.btnMulti {
    margin: 1rem;
}

/* Navigation */

nav {
    border-bottom: 2px solid rgb(82, 216, 113);
    margin: 1rem 0;
}

nav ul {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-decoration: none;
    list-style-type: none;
    padding: 0;
}

ul.navigation {
    margin-bottom: 0.2rem;
}

nav li {
    padding-right: 1rem;
    font-weight: bold;
    font-size: 1.3rem;
}
nav li.icons {
    display: none;
}

/* Page d'accueil - Section image mise en avant */

.orchid-of-the-month {
    position: relative;
    margin: 30px auto;
}

.big-orchid {
    box-sizing: border-box;
    width: 300px;
    max-width: 900px;
    border: 3px solid white;
}

.orchid-legend {
    position: absolute;
    width: 250px;
    left: 5px;
    top: -15px;
    padding: 0.5rem;
    background-color: #e94065;
    color: black;   
}

p.credit {
    text-align: center;
    font-style: italic;
    color: #52d871;
}

/* Page d'accueil - Section grille */

.down-section {
    display: flex;
    flex-direction: column;
    margin: 1.5rem 0 5rem 0;
}

.photoGrid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
}

.photoGrid img {
    width: 90%;
    height: 90%;
    max-width: 330px;
    border: 1px solid white;
    margin: 5px auto;
}

/* Page accueil - Section aside right */

.right {
    width: 100%;
    margin: 0 1rem;
}

.right h2 {
    font-size: 1.8rem;
    padding-bottom: 0.5rem;
}

.right li {
    list-style-type: none;
}

.right ul {
    padding: 0 1rem 0.5rem 1rem;
}

.links {
    color: rgb(82, 216, 113);
}


/* Page aboutMe */

.roundPicture {
    max-width: 300px;
    border: 1px solid white;
    border-radius: 250px;
    display: block;
    margin: 1rem auto;
}

blockquote {
    display: block;
    margin: 10px auto;
    color: #52d871;
    text-align: center;
    font-style: italic;
    max-width: 600px;
    border-left: 8px solid #e94065;
    border-right: 8px solid #e94065;
}

/* Page behind the code - Mise en forme de tableau */

table {
    border-collapse: collapse;
    border: 3px solid rgb(82, 216, 113);
    min-width: 300px;
    max-width: 500px;
    margin: 1rem auto;
}

caption {
    caption-side: top;
    padding: 10px;
    font-weight: bold;
}

thead {
    color: #e94065;
    font-size: 1.2rem;
}

th, td {
    border: 1px solid white;
    padding: 8px 10px;
}

td:last-of-type {
    text-align: center;
}

.snapCode {
    display: block;
    max-width: 400px;
    margin: 2rem auto;
    margin-top: 1rem;
}

/* Page classification - Grille des cartes de classification */

.grid-card {
    margin: 1.5rem 0 5rem 0;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    justify-items: center;
}

figure {
    display: flex;
    flex-direction: column;
    padding: 5px;
    max-width: 300px;
}

figure img {
    max-width: 100%;
    max-height: 100%;
    border: 1px solid white;
    margin: 5px auto;
}

figure p {
    text-align: center;
    font-size: 1rem;
}

figcaption {
    color: white;
    font: italic smaller sans-serif;
    padding: 3px;
    text-align: center;
}

/* Page story - image */
.borderWhite {
    border: 1px solid white;
    display: block;
    margin: 0 auto;
}


/* MEDIA QUERIES POUR LES ECRANS DE 900PX ET PLUS */

@media (min-width: 900px) {
    h1 {
        font-size: 3rem;
        padding: 1.5rem;
    }

    h2 {
        font-size: 2.5rem;
        padding: 1.5rem 0 1rem 0;
    }

    h3 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 1.2rem;
        margin-bottom: 1.4rem;
        line-height: 1.3rem;
    }

    ul, ol, li {
        font-size: 1.2rem;
        line-height: 1.3rem;
    }

    ul {
        margin-bottom: 3rem;
    }
    
    nav a::after {
        padding: 0 6px;
        content: '🌱'; 
    }

    nav li.icons {
        display: inline-flex;
        margin-left: auto;
        margin-right: 0;
    }
    
    nav a.link::after {
        padding: 0 6px;
        content: ''; 
    }
    
    .icon {
        width: 40px;
        height: 40px;
    }
    
    .title {
        font-size: 5rem;
        padding: 1.5rem;
    }

    .orchid-of-the-month {
        margin: 0;
    }
    
    .big-orchid {
        display: block;
        width: 900px;
    }

    .orchid-legend {
        top: 10px;
        border-bottom-right-radius: 5px;  
    }

    .down-section {
        flex-direction: row;
    }

    .photoGrid {
        width: 70%;
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }

    .photoGrid img {
        width: 100%;
        height: 100%;
    }

    .photoGrid img:first-child {
        grid-row: 1 / 3;
        grid-column: 1 / 3;
    }

    .photoGrid img:last-child {
        grid-row: 5 / 7;
        grid-column: 3 / 5;
    }

    .photoGrid img:hover {
        transform: scale(2, 2);
    }

    .right {
        width: 30%;
    }

    .grid-card {
        width: 100%;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .grid-card img:hover {
        transform: scale(2, 2);
    }
        
    .col {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .leftCol {
        width: 50vw;
        max-width: 430px;
    }

    .rightCol {
        width: 50vw;
        max-width: 430px;
    }
    .btnMulti {
        flex-direction: row;
    }
    
    button.btnMulti {
        margin: 2rem;
    }

    img.snapCode {
        max-width: 700px;
    }
}