diff --git a/index.html b/index.html index 93207b6..548f106 100644 --- a/index.html +++ b/index.html @@ -34,76 +34,49 @@ Rendez vous en ligne -
- Charline Pasteur, Avocate
-
+
-
diff --git a/navigation.css b/navigation.css
index 59cc382..3591303 100644
--- a/navigation.css
+++ b/navigation.css
@@ -1,4 +1,24 @@
-/* Style pour le header */
+
+.header {
+ background-color: #F9E7DB;
+ position: fixed;
+ width: 100%;
+ z-index: 3;
+ align-items: center;
+ display: flex;
+}
+
+.header li a::after {
+ content: "";
+ position: absolute;
+ left: 0;
+ bottom: 0;
+ width: 0%;
+ height: 2px;
+ background-color: #CC4331;
+ transition: width 0.3s ease;
+}
+
.contact {
top: 0;
position: fixed;
@@ -15,186 +35,204 @@
z-index: 100;
font-size: 11px;
}
-.header {
- background-color: #F9E7DB;
- position: fixed;
- width: 100%;
- z-index: 3;
- align-items: center;
- display : flex;
-}
-.header li a::after {
- content: "";
- position: absolute;
- left: 0;
- bottom: 0;
- width: 0%;
- height: 2px;
- background-color: #CC4331;
- transition: width 0.3s ease;
+
+.navigation {
+ display:flex;
+ width: 100%;
}
+
li a:hover::after {
width: 100%;
}
-li a:hover,
-.menu-btn:hover {
- background-color: #F9E7DB;
-}
+
.logo {
- width:100%
+ width: 100%;
}
+
.logo img {
- display: inline-block;
- max-height: 40px;
- padding: 8px 4px 8px 12px;
- vertical-align: middle;
+ display: inline-block;
+ max-height: 40px;
+ padding: 8px 4px 8px 12px;
+ vertical-align: middle;
}
+
nav {
- margin-left: auto;
+ margin-left: auto;
}
-/* menu caché par défaut, on affiche ensuite en fonction de la taille du média*/
+
+/* === Menus === */
+#menuXL {
+ display: inline-block;
+}
+
+/* === Menus === */
+#menuM {
+ display: none;
+}
+
.menu {
list-style: none;
padding: 0;
margin: 0;
- display: none;
gap: 1rem;
align-items: center;
}
+
.menu li {
position: relative;
white-space: nowrap;
+ padding: 0.1rem;
}
+
+/* Sous-menu en hover */
.dropdown {
position: relative;
}
+
.dropdown .submenu {
+ display: none;
position: fixed;
- right: 0;
+ top: 6rem;
+ /* ajuster si nécessaire selon hauteur header */
+ right: 1rem;
z-index: 10;
- display: none;
- padding-right: 1rem;
background-color: #F9E7DB;
-}
-/* Cacher la case à cocher */
-.toggle-submenu {
- display: none;
-}
-/* Afficher le sous-menu si l’input est coché */
-.toggle-submenu:checked + label + .submenu {
- display: flex;
flex-direction: column;
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
+ padding: 0.5rem;
+ min-width: 180px;
}
-/* Style du label 'Autre' */
-.dropdown label {
+
+.dropdown:hover .submenu {
+ display: flex;
+}
+
+/* Style du bouton 'Autre' */
+.dropdown-label {
cursor: pointer;
padding: 0.5rem;
display: inline-block;
color: #333;
background-color: transparent;
}
-/* Grand écran : menu complet */
-@media (min-width: 1500px) {
+
+/* Sous-menu items */
+.submenu li a {
+ display: block;
+ padding: 0.5rem;
+ text-decoration: none;
+ color: #333;
+}
+
+@media (max-width: 1299px) and (min-width: 100px) {
#menuXL {
- display: flex;
+ display: none;
}
-}
-/* Moyen écran */
-@media (max-width: 1499px) and (min-width: 1300px) {
- #menuL {
- display: flex;
- }
-}
-/* Petit écran */
-@media (max-width: 1299px) and (min-width: 1099px) {
#menuM {
display: flex;
}
}
-/* Mobile (burger menu géré ailleurs) */
-@media (max-width: 1100px) and (min-width: 750px){
- .menu {
- clear: none;
- float: right;
- max-height: none;
+
+@media (max-width: 999px) and (min-width: 850px) {
+ .logo span {
+ display: none;
}
- #menuS {
- display: flex;
- }
}
-@media (max-width: 749px) {
+/* menu sandwish */
+@media (max-width: 849px) {
+ .logo span {
+ display: inline-flex;
+ }
+
+ #menuXL {
+ max-height: 0;
+ max-width: 0;
+ overflow: hidden;
+ display: flex;
+ flex-direction: column;
+ transition: max-height 0.3s ease;
+ }
+
+ #menuM {
+ display: none;
+ }
+
.header {
- display:flex
- }
+ display: flex;
+ }
+
.menu {
clear: both;
max-height: 0;
transition: max-height .2s ease-out;
}
+
.menu-icon {
display: inline-block !important;
}
}
-
-/* ---------------------------
-/* Menu accordéon
-/* --------------------------*/
+/* === Menu mobile burger === */
.menu-icon {
- cursor: pointer;
- display: none;
- float: right;
- padding: 28px 20px;
- position: relative;
- user-select: none;
+ cursor: pointer;
+ display: none;
+ float: right;
+ padding: 28px 20px;
+ position: relative;
+ user-select: none;
}
+
.menu-icon .navicon {
- background: #333;
- display: block;
- height: 2px;
- position: relative;
- transition: background .2s ease-out;
- width: 18px;
+ background: #333;
+ display: block;
+ height: 2px;
+ position: relative;
+ transition: background .2s ease-out;
+ width: 18px;
}
+
.menu-icon .navicon:before,
.menu-icon .navicon:after {
- background: #333;
- content: '';
- display: block;
- height: 100%;
- position: absolute;
- transition: all .2s ease-out;
- width: 100%;
-}
-.menu-icon .navicon:before {
- top: 5px;
-}
-.menu-icon .navicon:after {
- top: -5px;
-}
-.menu-btn {
- display: none;
+ background: #333;
+ content: '';
+ display: block;
+ height: 100%;
+ position: absolute;
+ transition: all .2s ease-out;
+ width: 100%;
}
-.menu-btn:checked~nav .menu {
- max-height: 240px;
+.menu-icon .navicon:before {
+ top: 5px;
+}
+
+.menu-icon .navicon:after {
+ top: -5px;
+}
+
+.menu-btn {
+ display: none;
+}
+
+.menu-btn:checked~nav #menuXL {
+ max-height: 300px;
+ max-width: 100%;
}
.menu-btn:checked~.menu-icon .navicon {
- background: transparent;
+ background: transparent;
}
.menu-btn:checked~.menu-icon .navicon:before {
- transform: rotate(-45deg);
+ transform: rotate(-45deg);
}
.menu-btn:checked~.menu-icon .navicon:after {
- transform: rotate(45deg);
+ transform: rotate(45deg);
}
.menu-btn:checked~.menu-icon:not(.steps) .navicon:before,
.menu-btn:checked~.menu-icon:not(.steps) .navicon:after {
- top: 0;
-}
-
+ top: 0;
+}
\ No newline at end of file
diff --git a/style.css b/style.css
index 80a4a3c..6e3c28c 100644
--- a/style.css
+++ b/style.css
@@ -6,10 +6,12 @@ body {
padding: 0;
background-color: #F9E7DB;
color: #333;
+ font-family: Times New Roman;
}
main {
padding: 0 1rem;
margin: 0 auto;
+ max-width: 1280px;
}
section {
margin-bottom: 2rem;