@font-face {
    font-family: 'Raleway';
    src: url('../fonts/Raleway-VariableFont_wght.ttf');
    font-weight: normal;
    font-style: normal;
}

html { 
    background-color: #210752;
    color: white;
}

body{ margin: 0; }

* {
    font-family: 'Raleway', sans-serif;
}

footer {
    background-color: #f12e83;
    height: 120px;
    padding: 1px 10px;
    margin-top: 20px;
    border-top-width: 15px;
    border-top-style: groove;
    border-top-color: #f12e83;
}

footer div { display: inline-block; }

#main {
    max-width: 1500px;
    margin: auto;
    padding: 0 30px;
}

#main img { width: 100%; }

.page-title { 
    background-color: #f12e83;
    text-align: center;
    padding: 20px 0;
}

.g-container {
    position: relative;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    grid-auto-rows: 100px;
    grid-template-areas:
        "a a a a b b b b"
        "a a a a b b b b"
        "c c c c d d d d"
        "c c c c d d d d"
        "e e e e f f f f"
        "e e e e f f f f"
        "g g g g h h h h"
        "g g g g h h h h";
    align-items: start;
    align-items: center;
}
#card1 { grid-area: a;}
#card2 { grid-area: b;}
#card3{ grid-area: c;}
#card4 { grid-area: d;}
#card5 { grid-area: e;}
#card6 { grid-area: f;}
#card7{ grid-area: g;}
#card8 { grid-area: h;}

.card-title {
    text-align: center;
    font-size: 4rem;
    margin-bottom: 10px;
    color: #f22e84;
}

.card ul {
    margin-bottom: 0;
}

a, a:hover, a:visited, a:focus, a:focus-visible,
a:active { 
    text-decoration: none;
}

.text-center { text-align: center; }

.btn {
    padding: 10px 20px;
    background-color: #f22e84;
    color: white;
    border-radius: 6px;
}

.btn-invert {
    color: #210852;
    background-color: #fedd53;
}

#bloc-agir { 
    position: relative;
    margin-top: 50px;
    margin-bottom: 30px;
    padding: 10px 30px;
    line-height: 2.5rem;
    color: #210852;
    background-color: #fedd53;
}

#bloc-agir h1 {
    width: 300px;
    
    padding: 15px;
    margin: auto;
}

#bloc-agir ul {
    font-size: 1.5rem;
}

ul {
    --icon-space: 1.3em;
    list-style: none;
    padding: 0;
}

li {
    padding-left: var(--icon-space);
}

li:before {
    content: "\f00c"; 
    font-family: FontAwesome;
    display: inline-block;
    margin-left: calc( var(--icon-space) * -1 );
    width: var(--icon-space);
}

/* SVG */

.path {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  
  path {
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: var(--path-length);
    stroke-dashoffset: var(--path-length);
    animation: draw 2.5s ease forwards;
  }
  
  @keyframes draw {
    to {
      stroke-dashoffset: 0;
    }
  }

/* RESPONSIVE */
@media (max-width: 800px) {
    .f-container {
      flex-direction: column;
      align-items: center;
        font-size: 1.5rem;
    }

    footer{
        position: relative;
    }

    .g-container {
        position: relative;
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        gap: 15px;
        grid-auto-rows: 100px;
        grid-template-areas:
            "a a a a a a a a"
            "b b b b b b b b"
            "b b b b b b b b"
            "c c c c c c c c"
            "d d d d d d d d"
            "d d d d d d d d"
            "e e e e e e e e"
            "f f f f f f f f"
            "f f f f f f f f"
            "g g g g g g g g"
            "h h h h h h h h"
            "h h h h h h h h";
        align-items: start;
        align-items: center;
        margin-top: 40px;
    }

    #card1 { grid-area: a;}
    #card2 { grid-area: b;}
    #card3{ grid-area: d;}
    #card4 { grid-area: c;}
    #card5 { grid-area: e;}
    #card6 { grid-area: f;}
    #card7{ grid-area: h;}
    #card8 { grid-area: g;}
}
