/*
Theme Name: un_enfant_un_cartable
Theme URI: http://www.emandarine.com
Author: emandarine
Author URI: emandarine
Description: Association Un Enfant, Un Cartable
Version: 2.1
License URI: emandarine
Tags: emandarine
*/


/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html{
    box-sizing: border-box;
}
*, *:before, *:after{
    box-sizing: inherit;
}

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
/* GENERAL */

body{
    font-family: 'Raleway', sans-serif;
    background: #f5f5f5;
    color: #555555;
}
img.aligncenter{
    display: block;
    margin:  0 auto;
}
img{
    width: 75%;
    height: 75%;
}
iframe{
    width: 80%;
    height: 80%;
    display: block;
    margin: 0 auto;
}

/* HEADER */

header{
    background: #ffffff;
}
header .wrapper{
    padding: 0 30px;
}
header .wrapper, .main .wrapper, footer .wrapper{
    max-width: 1272px;
    margin: 0 auto;
}
.logo_header{
    width: 200px;
    display: block;
    margin: 0 auto;
    padding: 10px 0;
}
.photo_header{
    height: 400px;
    background-image : url('img/photo_header.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

/* MENU */

.menu-menu-1-container{
    font-family: 'Grand Hotel', cursive;
}
ul#menu-menu-1{
    display: none;
    padding: 0;
    list-style: none;
}
ul#menu-menu-1 li{
    display: block;
    margin: 0;
    padding: 0;
    position: relative;
    max-width: 200px;
}
ul#menu-menu-1 li a{
    padding: 10px;
    text-decoration: none;
    color: #555555;
    font-size: 30px;
    text-align: left;
}
ul#menu-menu-1 ul.sub-menu{
    padding: 0 0 0 40px;
    list-style: none;
    background: #fff;
}
ul#menu-menu-1 ul.sub-menu li{
    margin: 0 0 10px 0;
    padding: 0;
}
ul#menu-menu-1 ul.sub-menu li a{
    font-family: 'Raleway', sans-serif;
    line-height: 24px;
    padding: 0;
    font-size: 16px;
    text-align: left;
}
ul#menu-menu-1 a:hover{
    color: #ffbe00;
}
.hamburger{
    background: none;
    position: absolute;
    top: 0;
    left: 0;
    line-height: 1;
    padding: 15px;
    margin: 50px 0 0 0;
    color: #555555;
    border: 0;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    z-index: 999999;
}
.cross{
    background: none;
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 15px;
    margin: 50px 0 0 0;
    color: #555555;
    border: 0;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    z-index: 999999;
}

/* CONTENU - MID */

.mid{
    padding: 30px;
    background: #ffffff;
    width: 100%; 
}
h1{
    font-family: 'Grand Hotel', cursive;
    color: #2d5b78;
    font-size: 48px;
    font-weight: normal;
}
.mid p{
    font-size: 18px;
    margin: 0;
}
.savoir_plus, a.revenir_actus{
    margin: 20px 0;
    display: block;
    text-decoration: none;
    color: #ffbe00;
    font-size: 18px;
    text-align: right;
    padding: 20px;
}
a.savoir_plus:hover, a.revenir_actus:hover{
    color: #2d5b78;
}
.bloc_actualites, .bloc_actualites_actus{
    padding: 0 0 30px 0;
}
.actu, .actu_actus{
    margin: 0 0 40px 0;
}
.photo_actu, .photo_actu_actus{
    display: block;
    margin: 0 auto;
}
.bloc_texte_actu, .bloc_texte_actu_actus{
    margin: 20px 0 0 0;
}
.titre_actu{
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 15px 0;
}
.date_actu{
    font-style: italic;
}


/* CONTENU - SIDEBAR */

.sidebar{
    margin: 0 0 30px 0;
}
.adhesion, .lettre_info{
    background: #eaeaea;
    max-width: 300px;
    padding: 30px;
    text-align: center;
    margin: 30px auto 0 auto;
}
.sidebar p{
    font-weight: 300;
    font-size: 30px;
}
.sidebar span{
    font-weight: 700;
    font-size: 48px;
}
.sidebar a{
    display: block;
    text-decoration: none;
    color: #fff;
    font-family: 'Grand Hotel', cursive;
    font-size: 30px;
    background: #ffbe00;
    padding: 10px 20px;
    width: 215px;
    border-radius: 10px; 
    margin: 0 auto;
}
.sidebar a:hover{
    background: #2d5b78;
}

/* FOOTER */

footer{
    background: #2d5b78;
    color: #fff;
    text-align: center;
    font-size: 18px;
}
footer .wrapper{
    padding: 30px;
}
footer img{
    display: block;
    width: 150px;
    margin: 0 auto;
}
footer .wrapper p{
    margin: 20px auto;
}
footer a.bouton{
    display: block;
    text-decoration: none;
    color:#fff;
    font-family: 'Grand Hotel', cursive;
    font-size: 30px;
    background: #818181;
    padding: 10px 20px;
    width: 215px;
    border-radius: 10px; 
    margin: 0 auto;
}
footer a.bouton:hover{
    background: #ffbe00;
}
a.mentions{
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #fff;
    margin: 0 auto; 
}
a.mentions:hover{
    color: #ffbe00;
}

/* FORMULAIRE DE CONTACT */

form.wpcf7-form input, form.wpcf7-form textarea{
    display: block;
    margin: 0 auto;
    border: none;
    background: #eaeaea;
    color: #555555;
    padding: 0 0 0 10px;
    width: 300px;
}
form.wpcf7-form input{
    height: 30px;
}
form.wpcf7-form label{
    display: block;
    width: 380px;
    margin: 0 auto;
    padding: 0 0 5px 5px;
}
#bouton_envoyer{
    height: 60px;
    display: block;
    text-decoration: none;
    color: #fff;
    font-family: 'Grand Hotel', cursive;
    font-size: 30px;
    background: #ffbe00;
    padding: 10px;
    width: 215px;
    border: none;
    border-radius: 10px; 
    margin: 20px auto 0 auto;
}
#connection{
    display: block;
    text-decoration: none;
    color: #fff;
    font-family: 'Grand Hotel', cursive;
    font-size: 30px;
    background: #ffbe00;
    padding: 10px 20px;
    width: 200px;
    border: none;
    border-radius: 10px;
    margin: 20px auto 0 auto;
    text-align: center;
}
#bouton_envoyer:hover, #connection:hover{
    background: #2d5b78;
}


/* PAGINATION PAGE ACTUALITES */

div.pagination a{
    display: block;
    height: 60px;
    text-decoration: none;
    text-align: center;
    color: #fff;
    font-family: 'Grand Hotel', cursive;
    font-size: 24px;
    background: #ffbe00;
    padding: 10px;
    width: 250px;
    border: none;
    border-radius: 10px; 
    margin: 20px auto 0 auto;
}
div.pagination a:hover{
    background: #2d5b78;
}



/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
@media only screen and (min-width: 900px) {
    .main .wrapper, footer .wrapper{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    footer .wrapper{
        padding: 75px 30px;
    }
    .main .wrapper{
        align-items: flex-start;
    }
    .mid{
        margin: 30px 0;
        padding: 0 30px 30px 30px;
        min-height: 696px;
        width: 75% 
    }
    .bloc_actualites_actus{
        display: flex;
        flex-wrap: wrap;
    }
    .actu_actus{
        width: 50%;
    }
    .photo_actu a{
        display: block;
        margin: 0 auto;
    }
    .bloc_texte_actu_actus{
        margin: 30px 40px 0 0;
    }
    .actu{
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
    }
    .bloc_texte_actu{
        margin: 0 30px;
    }
    .titre_actu{
        font-size: 18px;
        font-weight: bold;
        margin: 0 0 15px 0;
    }
    .date_actu{
        font-style: italic;
    }
    .adhesion, .lettre_info{
        margin: 30px 0px 0 30px;
    }
    form.wpcf7-form input, form.wpcf7-form textarea{
        width: 380px;
    }
    
}

@media only screen and (min-width: 1230px) {
    img{
        width: initial;
        height: initial;
    }
    iframe{
        width: 560px;
        height: 315px;
    }
    header .wrapper{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    ul#menu-menu-1{
        display: flex;
    }
    ul#menu-menu-1 li{
        margin: 50px 8px;
    }
    ul#menu-menu-1 li a{
        font-size: 36px;
        text-align: center;
    }
    ul#menu-menu-1 ul.sub-menu{
        display: none;
        padding: 0 10px;
        position: absolute;
        top: 60px;
        left: 0;
        width: 200px;
    }
    ul#menu-menu-1 li:hover ul.sub-menu{
        display: block;
    }
    .hamburger{
        display: none;
    }
    



}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
