/*	Less Framework 4
  http://lessframework.com
  by Joni Korpi
  License: http://opensource.org/licenses/mit-license.php	*/


/*	Resets
  ------	*/

html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6,
p, blockquote, pre, a, abbr, address, cite, code, del, dfn, em,
img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, hr,
dl, dt, dd, ol, ul, li, fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figure, figcaption, hgroup,
menu, footer, header, nav, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
}

article, aside, canvas, figure, figure img, figcaption, hgroup,
footer, header, nav, section, audio, video {
  display: block;
}

a img {border: 0;}



/*	Typography presets
  ------------------	*/

.huge, h1 {
  font-size: 68px;
  line-height: 72px;
  letter-spacing: -1px;
}

body {
  font: 16px/24px Georgia, serif;
}

/* Selection colours (easy to forget) */
:root {
  --body-bg: #222;
  --article: floralwhite;
  --button: linear-gradient(180deg, rgba(245,197,58,1) 0%, rgba(255,252,224,1) 15%, rgba(245,197,58,1) 28%, rgba(255,174,0,1) 100%);
}

::selection 	 	{background: rgb(255,255,158);}
::-moz-selection 	{background: rgb(255,255,158);}
img::selection 		{background: transparent;}
img::-moz-selection	{background: transparent;}
body {-webkit-tap-highlight-color: rgb(255,255,158);}

a[href*=".pdf"],
a[href*=".PDF"] {
  display: block;
  height: 60px;
  margin: 0 auto 5%;
  padding-left: 60px;
  background: url('/img/pdf.png') no-repeat;
}
a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

nav a:hover {
  text-decoration: none;
}

/*		Default Layout: 320px */
/*		Mobile Layout: 320px.
    Gutters: 24px.
    Outer margins: 34px.
    Inherits styles from: Default Layout.
---------------------------------------------
cols    1     2      3
px      68    160    252    */
  body {
    margin:0 auto;
    color: rgb(60,60,60);
    background: var(--body-bg);
    -webkit-text-size-adjust: 100%; /* Stops Mobile Safari from auto-adjusting font-sizes */

    text-align: center;
    font-family:Verdana, Arial, Helvetica, sans-serif;
  }

  #conteneur_principal {
    display: grid;
  }

  article {
    background-color: var(--article);
    padding: 1rem 3% 5%;
    line-height: 2rem;
    font-size: 1.2rem;
    text-align:left;
  }

  nav {
    background-position:0 -50px;
    background-color:black;
  }

  footer {
    color: var(--article);
    background-color: var(--body-bg);
  }

  img {
    max-width:100%;
    height: auto;
  }

  article p {
    margin-top: 1em;
    text-indent: 1em;
    text-align: justify;
    hyphens: auto;
  }

  .chapo {
    margin-top: 0;
    margin-left: 1rem;
    font-size:1.5rem;
    font-weight: bold;
    font-style:italic;
    text-indent: 0;
    text-align: left;
    hyphens: none;
    text-shadow: 3px 3px 4px #999;
  }

  article .texte img {
    margin:0 10px 10px 20px;
  }

  article .parcours,
  article .parcours img {
    margin:0;
  }

  article .texte {
    margin:0;
    border: none;
  }

  #liste-raids {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    margin-left: 0;
  }

  #liste-raids li {
    align-self: center;
    width: 8em;
    padding: 0.3em 1em 0.1em;
    border: thin outset #FFCC99;
    border-radius: 25px;
    list-style: none;
    background: var(--button);
    text-decoration: none;
  }

  #liste-raids li a {
    text-decoration: none;
    color: #7D5442;
  }

  #liste-raids li:hover {
    box-shadow: 9px 10px 21px -8px rgba(123,54,54,0.75);
  }

  #liste-raids li:hover a { color: var(--body-bg); }

  label,
  input[type="submit"] {
    font-size: 1.25rem;
  }

  input[type="submit"] {
    margin-bottom: 1rem;
    padding: 0.2em 0.4em;
    border: none;
    background: rgba(255,204,85,1);
    background: var(--button);
    border-radius: 25px;
    background-origin: border-box;
    text-align: center;
  }

  input {
    padding: .5em;
    border-radius: 4px;
  }

  input#cp { width: 5em; }

  /*
   * Disposition a l'ecran : colonnes, encarts, cartouches
   */
  #skip, #main {position: absolute; left: -1000em; width: 20em;}

  nav ul {
    margin:0 0 0 0;
    font-size: 0.7em;
    list-style:none;
  }

  nav li {
    display:inline-block;
    width: 90%;
    background: rgba(255,204,85,1);
    background: var(--button);
    border-radius: 25px;
    background-origin: border-box;
    list-style: none;
    text-align: center;
  }

  nav li.fb {
    width: auto;
    background: none;
    text-align: right;
  }

  nav a {
    display: block;
    padding: 1.2rem;
    font-size: 0.7rem;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    color:#3c3728;
  }
  nav a:hover { color: #000; }

  a.inscriptionenligne {
    margin: 5em;
    padding: 1em 3.5em;
    background:url("fd_bouton.png") no-repeat;
    background-size: cover;
    color: #2e2711;
    text-align:center;
    text-decoration: none;
    color: black;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
  }
  a.inscriptionenligne:hover {
    color: #666;
  }

  nav .fb {
    width:154px;
    text-align:right;
  }

  nav .fb a {
    color:white;
    font-size: 85%;
  }

  h1, h2 {
    margin-bottom: .5rem;
    padding: 0 1em;
    color: white;
    background: #3c3c3c url(/images/fd_h1.png);
    line-height:40px;
    font-size: 1.5em;
  }

  div.texte p { margin:0 0 1em; }
  ul { margin-left: 2.5em; }
  li {margin:0.7em 0}
  td {vertical-align:top}

  table.recap {
    margin: 0 1% 3rem 0;
    background: #f0e1cc;
    box-shadow: 9px 10px 21px -8px rgba(123,54,54,0.75);
  }

  .recap tr:nth-child(2n) {
    background: antiquewhite;
  }

  .recap tr > td:first-child {
    text-transform: uppercase;

    &:after {
      content: " :"
    }
  }

  .recap td.pays {
    text-transform: capitalize;
  }

  td {
    padding: 0 .5em;
    font-weight: bold;
    font-size: .8rem;
  }

  a img { border: none; }
  .wrapper.lassociation {
    img {
      transform: rotate(3deg);
    }
  }

  div.texte ul {
    margin-left:0px;
    padding-left:1em;
  }

  .documents {
    margin-top: 2em;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
  }

  .spip_documents{
    margin:0;
  }
  .spip_documents_left img {
    margin:0 10px 10px 20px;
  }

  .spip_documents_right img {
    margin:0 0 25px 2vw;
    float: right;
    width: 36%;
      border: 6px solid white;
    box-shadow: 6px 6px 16px 2px rgba(179, 156, 127, 0.9);
  }

  .spip_documents img {
    display: block;
  }

  article .spip_documents_center img {
    margin:20px 0;
    width:100%;
    height:100%;
  }

  .pj {
    display: flex;
    margin: 4rem 0 1rem;

    a{ margin: 0 -2px; }
    img { height: 100%; }
  }

  #lightbox-container-image { width: fit-content; }
  #lightbox-image { max-width: 95vw; }

  #bourse {
    float: left;
    width: 100%;
    margin-top: 3rem;
    border: 1px solid gray;
    background: beige;
  }

  #bourse caption { font-weight: bold; }

  table#bourse th,
  table#bourse td {
    text-align:center;
    padding:.6em .3em;
  }

  table#bourse th {
    background:#fdd14b;
    color:#444;
  }

  table#bourse td.date {
    background:transparent;
    color:black;
    font-weight:normal;
  }

  .aide-connexion {
    font-size: 1rem;
  }

  .aide-connexion a.inscription {
    display: inline-block;
    padding:.5rem 1em;
    border: 2px outset gray;
    text-decoration: none;
    background: gold;
  }

  .aide-connexion a.inscription:hover {
    background: #ccc;
    border: 2px inset gray;
  }

  .aide-connexion img {
    border: 1px solid black;
    display: block;
    padding-top: .5em;
    box-shadow: 5px 5px 10px 0 rgba(50, 50, 50, 0.3);
  }

  .aide-connexion ol {
    margin-left: 1rem;
  }

  .aide-connexion ol > li:first {
    margin-left: 1rem;
  }

  .aide-connexion ol ol {
    list-style: inside lower-alpha;
    margin-left: 1.5rem;
    padding: .5rem 1rem;
    background: #ddd;
  }

  #les-raids { text-align: center; }
  #assistance p {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #ddd;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, .2);
    text-indent: 0;
  }

/*		Small Mobile Layout Landscape: 480px. */
@media only screen and (min-width: 321px) and (max-width: 480px) {
}

/*		Wide Mobile Layout: 480px.
    Gutters: 24px.
    Outer margins: 22px.
    Inherits styles from: Default Layout, Mobile Layout.
------------------------------------------------------------
cols    1     2      3      4      5
px      68    160    252    344    436    */

@media only screen and (min-width: 481px) and (max-width: 767px) {

  body {
    margin:0 auto;
  }

  #conteneur_principal {}

  a#logo{
    height: 100px;
    width: 150px;
  }

  nav {
    background-position:0 -50px;
  }

  nav ul {
    margin-top: 0;
    margin-left: 0;
  }

}

@media only screen and (max-width: 768px) {
  #conteneur_principal {
    max-width: 1000px;
    margin: 0 auto;
    grid-template-rows: 60px auto;
    grid-template-areas:
      "header"
      "article"
      "footer"
  }

  nav { background-color: var(--body-bg); }

  #logo { display: none; }

  .logo {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--body-bg);
  }

  .logo a { padding: 0; }

  nav ul {
    /* we want to make the top navigation items not visible while the input is not :checked. */
    position: fixed;
    overflow-y: scroll;
    top: 64px;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: -1;
    background: var(--body-bg);
    padding: 1rem 40px 40px;
    transform: translate(100vw) translate(100vh) rotate(90deg);
    transition: 0.2s ease;
  }

  nav li { list-style: none; }
  nav a { font-size: 1.1rem; }
  nav .fb a { font-size: 1rem; }

  .nav__trigger-finger {
    /* The visible part of the trigger, this will be your "nav is closed!"-state */
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    width: 2rem;
    height: 1.5rem;
    margin: 20px;
    color: white;
  }

  .nav__trigger-finger::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    bottom: -5px;
    right: -5px;
    background: var(--body-bg);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
  }

  .nav__trigger-finger span {
    display: block;
    width: 100%;
    height: 2px;
    transition: transform 1s ease;
    background: currentColor;
  }

  /* Create the hamburger lines */
  .nav__trigger-finger span::before,
  .nav__trigger-finger span::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    display: block; /* Labels are inline elements, it needs a display property that allows it it's own set height like block; */
    height: 2px;
    background: currentColor; /* inherits color set on parent */
    transition: transform 0.4s ease, top 0.4s 0.4s ease, background 0.2s ease;
  }
  .nav__trigger-finger span::before { top: 0; }
  .nav__trigger-finger span::after  { top: calc(100% - 2px); }

  .nav__trigger-input {
    /* We  want to make the input invisible without using display: none;, because that will remove functionality. */
    opacity: 0;
    width: 0;
    height: 0;
    appearance: none;
    position: fixed;
  }

  .nav__trigger-input:focus + label { color: white; }
  .nav__trigger-input:focus + label::before { opacity: 1; }

  .nav__trigger-input:checked + label {
    /* change the label if the input is checked, this will be your "nav is open!"-state */
    height: 10px;
    color: white;
  }

  .nav__trigger-input:checked +  label span { transform: rotate(45deg); }

  .nav__trigger-input:checked +  label  span::before,
  .nav__trigger-input:checked +  label  span::after {
    top: calc(50% - 1px);
    transition: transform 0.4s 0.4s ease, top 0.4s ease, background 0.2s ease;
  }

  .nav__trigger-input:checked  +  label span::after { transform: rotate(90deg); }

  .nav__trigger-input:checked ~ ul {
    /* We use a general sibling because it's less work, + label + ul would work as well */
    z-index: 9;
    transform: none;
    transition: 0.5s ease;
  }

  form { margin-top: 1.5rem; }
  label { display: block; }

  textarea {
    width: 95%;
    height: 6em;
  }

  input[type="submit"] {
    padding: .5em 1em;
    margin-top: 1rem;
  }
}

/*		Layout: 992px.
    Gutters: 24px.
    Outer margins: 48px.
    Leftover space for scrollbars @1024px: 32px.
-------------------------------------------------------------------------------
cols    1     2      3      4      5      6      7      8      9      10
px      68    160    252    344    436    528    620    712    804    896    */


@media only screen and (min-width: 768px) {
  #conteneur_principal {
    max-width: 1000px;
    margin: 0 auto;
    grid-template-columns: auto 1fr;
    grid-template-rows: 275px minmax(100vh, auto) 5em;
    grid-template-areas:
      "nav header"
      "nav article"
      "nav footer"
  }

  nav {
    grid-area: nav;
    background: black url("/images/bandeau_g.png") no-repeat 0 -50px;
  }

  header {
    grid-area: header;
    background: rgba(0, 0, 0, 0) url("/images/bandeau_h.jpg") no-repeat scroll -1px 0;
  }

  article {
    grid-area: article;
    background-image: url("/images/fd_bloc_d.png");
    background-repeat: repeat-y;
  }

  footer {
    grid-area: footer;
    padding: 1rem;
  }

  .logo { display: none; }
  .nav__trigger-finger { display: none; }

  nav ul {
    display: block;
    width: auto;
    margin: 0 0.5rem;
  }

  nav li {
    display: block;
    width: inherit;
    margin: 0.7rem 0;
    padding: 0.4em 0;
  }

  nav a { padding: 0.01rem 0 0; }
  nav input { display: none; }

  li.special { margin-top: 1.5rem; }

  article {
    padding: 1rem 25px 0;
  }

  #logo {
    display: block;
    width: 180px;
    height: 100px;
  }

  h1 {
    margin-top: 235px;
    margin-left: 40px;
    width: fit-content;
  }

  .texte p { text-indent: 1em; }
  .texte p.parcours { text-indent: 0; }

  .chapo {
    font-weight: bold;
    text-indent: 0;
  }

  form {
    display: grid;
    grid-template-columns: 14rem 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }

  label {
    text-align: right;
  }
}

/*
    Gutters: 24px.
    Outer margins: 28px.
    Inherits styles from: Default Layout.
-----------------------------------------------------------------
cols    1     2      3      4      5      6      7      8
px      68    160    252    344    436    528    620    712    */

@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .spip_documents_right img {
    margin:0 0 10px 10px;
    width: 40%;
  }

  div.texte p{
    text-indent:2em;
  }
}


/*
    Gutters: 24px.
    Outer margins: 28px.
    Inherits styles from: Default Layout.
-----------------------------------------------------------------
cols    1     2      3      4      5      6      7      8
px      68    160    252    344    436    528    620    712    */

@media only screen and (min-width: 1024px) {
}
