@media (max-device-width:768px) and (orientation: landscape) {
  html {
   -webkit-text-size-adjust: 100%;
   -ms-text-size-adjust: 100%;
  }
}

@media (max-width: 640px) {
	* {
		box-sizing: border-box;
	}
	
	/* passer body (et tous les éléments de largeur fixe) en largeur automatique */

	body {
		width: auto;
		margin: 0;
		padding: 0;
		overflow-x: hidden;
	}
	
	/* fixer une largeur maximale de 100% aux éléments potentiellement problématiques */

	img,
	table,
	td,
	blockquote,
	code,
	pre,
	textarea,
	input,
	iframe,
	object,
	embed,
	video {
		max-width: 100%;
	}
	
	/* conserver le ratio des images */

	img {
		height: auto;
	}
	
	/* gestion des mots longs */

	textarea,
	table,
	td,
	th,
	code,
	pre,
	samp {
		-webkit-hyphens: auto; /* césure propre */
		-moz-hyphens: auto;
		hyphens: auto;
		word-wrap: break-word; /* passage à la ligne forcé */
	}
	
	code,
	pre,
	samp {
		white-space: pre-wrap; /* passage à la ligne spécifique pour les éléments à châsse fixe */
	}
	
	/* Passer à une seule colonne (à appliquer aux éléments multi-colonnes) */

	.element1,
	.element2 {
		float: none;
		width: auto;
	}
	
	/* masquer les éléments superflus */

	.hide_mobile {
		display: none !important;
	}
	
	body:before {
		display: block;
		text-align: center;
		font-style: italic;
		color: #777;
	}

	.pages {
	    scroll-behavior: smooth;
	    -webkit-overflow-scrolling: touch;
	}

	/**
	 * HEADER
	 */

	header {
		flex-direction: column;
	}

	nav {
		flex-direction: column;
		display: flex;
	}

	#header-nav {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 0;
		margin: 0;
        font-weight: 600;
        font-size: 18px;
	}

	.joomla-nav li {
		padding: 10px 0;
	}

	.joomla-nav li:hover {
		letter-spacing: 4px;
	}

	.joomla-nav li:not(:last-child)::after {
		content:initial;
	}

	#www-shapes > p {
		margin: 10px 0;
	}

	.big-text {
		font-size: 20px;
		letter-spacing: 2px;
	}

    .big-white-logo {
        width: 150px;
    }

    .moduletable-search .search-search input.button-search {
        display: none;
    }

    input#mod-search-searchword {
        width: 250px;
    }

    /**
     * CONTENT
     */

	.moduletable-search {
		margin-top: 10px;
	}

	#countdown {
		padding:0;
	}

	#countdown > p, #countdown > #final-countdown {
		width: auto;
	}

    .tiles {
        margin-top: 20px;
        flex-direction: column;
        align-content: center;
        width: auto;
    }

	.tiles .wrapper {
        width: auto;
        height: auto;

        position: relative;
        padding: .75rem 1.25rem;
        margin-bottom: 1rem;
        border: 1px solid transparent;
        border-radius: .25rem;

        text-align: center;
        text-transform: uppercase;
        letter-spacing: 10px;
        font-size: 25px;
        font-weight: 100;

        background-color: #fefefe;
        border-color: #fdfdfe;
	}

	.tiles .wrapper img {
		display: none;
	}

	.wrapper .corner-link-new {
		display: none;
	}

	.wrapper .corner-link {
		opacity: 1;
		font-size: 19px;
		transition: unset;
		letter-spacing: 4px;
        position: relative;
        left: unset;
        top: unset;
        right: unset;
        bottom: unset;
        color: #818182;
	}

	.wrapper:hover .corner-link {
		letter-spacing: 4px;
		transition: unset;
	}

    /**
     * WWW page content
     */

    .item-page > #what-what-what {
        padding: 1px;
        margin: 10px 0;
    }

    .item-page > #what-what-what > #bios > .full-bio {
        flex-direction: column;
    }

    article h2 {
        text-align: center;
        margin-bottom: 0;
    }

    #pierre {
        flex-direction: column-reverse !important;
    }

    .item-page > #what-what-what > #bios > .full-bio > .bio {
        max-width: 100%;
        text-align: justify;
    }

    /**
     * MAIN CONTENT
     */

    h1 {
        text-align: center;
        margin-bottom: 0;
    }

    section#main-content {
        flex-direction: column-reverse;
    }

    aside,
    .empty-content {
        width: auto;
        max-width: none;
    }

    aside, .moduletable-comments {
        height: auto;
    }

    .empty-content {
        margin-bottom: 10px;
    }

    .pages .dot {
        display: none;
    }

    .pages {
        height: auto;
        width: auto;
        flex-direction: column;
    }

    img.mod_emm_gallery_image {
        height: auto;
        margin: 5px;
    }

    /**
     * COMMENTS
     */
    .moduletable-comments {
        margin-right: 0;
    }

    #moduletable-comments, #disqus_thread {
        width: auto;
    }

    /**
     * SEARCH
     */

    .search #searchForm fieldset {
        display: none;
    }
}
